
void elf_copy_symbol_attributes(symbolS *dest,symbolS *src)

{
  byte bVar1;
  byte bVar2;
  symbolS *psVar3;
  undefined2 uVar4;
  ushort uVar5;
  undefined4 uVar6;
  elf_obj_sy *peVar7;
  elf_obj_sy *peVar8;
  asymbol *paVar9;
  asymbol *paVar10;
  expressionS *peVar11;
  expressionS *peVar12;
  
  peVar7 = symbol_get_obj(src);
  peVar8 = symbol_get_obj(dest);
  peVar12 = peVar7->size;
  if (peVar12 == (expressionS *)0x0) {
    if (peVar8->size != (expressionS *)0x0) {
      free(peVar8->size);
    }
    peVar8->size = (expressionS *)0x0;
  }
  else {
    peVar11 = peVar8->size;
    if (peVar11 == (expressionS *)0x0) {
      peVar11 = (expressionS *)xmalloc(0x20);
      peVar8->size = peVar11;
      peVar12 = peVar7->size;
    }
    psVar3 = peVar12->X_op_symbol;
    peVar11->X_add_symbol = peVar12->X_add_symbol;
    peVar11->X_op_symbol = psVar3;
    uVar4 = *(undefined2 *)&peVar12->field_0x18;
    uVar5 = peVar12->X_md;
    uVar6 = *(undefined4 *)&peVar12->field_0x1c;
    peVar11->X_add_number = peVar12->X_add_number;
    *(undefined2 *)&peVar11->field_0x18 = uVar4;
    peVar11->X_md = uVar5;
    *(undefined4 *)&peVar11->field_0x1c = uVar6;
  }
  paVar9 = symbol_get_bfdsym(src);
  paVar10 = symbol_get_bfdsym(dest);
  paVar10[1].name = paVar9[1].name;
  paVar9 = symbol_get_bfdsym(dest);
  bVar1 = *(byte *)((long)&paVar9[1].flags + 1);
  paVar9 = symbol_get_bfdsym(src);
  bVar2 = *(byte *)((long)&paVar9[1].flags + 1);
  paVar9 = symbol_get_bfdsym(dest);
  *(byte *)((long)&paVar9[1].flags + 1) = bVar2 & 0xfc | bVar1 & 3;
  return;
}



void FUN_00143580(undefined8 param_1,undefined8 param_2)

{
  byte bVar1;
  byte bVar2;
  undefined8 uVar3;
  long lVar4;
  long lVar5;
  undefined8 *puVar6;
  undefined8 *puVar7;
  
  lVar4 = FUN_0012c310(param_2);
  lVar5 = FUN_0012c310(param_1);
  puVar7 = *(undefined8 **)(lVar4 + 8);
  if (puVar7 == (undefined8 *)0x0) {
    if (*(void **)(lVar5 + 8) != (void *)0x0) {
      free(*(void **)(lVar5 + 8));
    }
    *(undefined8 *)(lVar5 + 8) = 0;
  }
  else {
    puVar6 = *(undefined8 **)(lVar5 + 8);
    if (puVar6 == (undefined8 *)0x0) {
      puVar6 = (undefined8 *)xmalloc(0x20);
      *(undefined8 **)(lVar5 + 8) = puVar6;
      puVar7 = *(undefined8 **)(lVar4 + 8);
    }
    uVar3 = puVar7[1];
    *puVar6 = *puVar7;
    puVar6[1] = uVar3;
    uVar3 = puVar7[3];
    puVar6[2] = puVar7[2];
    puVar6[3] = uVar3;
  }
  lVar4 = FUN_0012c290(param_2);
  lVar5 = FUN_0012c290(param_1);
  *(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);
  lVar4 = FUN_0012c290(param_1);
  bVar1 = *(byte *)(lVar4 + 0x49);
  lVar4 = FUN_0012c290(param_2);
  bVar2 = *(byte *)(lVar4 + 0x49);
  lVar4 = FUN_0012c290(param_1);
  *(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;
  return;
}


PUSH R13
MOV R13,RSI
PUSH R12
PUSH RBP
MOV RBP,RDI
MOV RDI,RSI
PUSH RBX
SUB RSP,0x8
CALL 0x0012c310
MOV RDI,RBP
MOV R12,RAX
CALL 0x0012c310
MOV RDX,qword ptr [R12 + 0x8]
MOV RBX,RAX
TEST RDX,RDX
JZ 0x00143628
MOV RAX,qword ptr [RAX + 0x8]
TEST RAX,RAX
JZ 0x00143640
MOVDQU XMM0,xmmword ptr [RDX]
MOVUPS xmmword ptr [RAX],XMM0
MOVDQU XMM1,xmmword ptr [RDX + 0x10]
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOV RDI,R13
CALL 0x0012c290
MOV RDI,RBP
MOV RBX,RAX
CALL 0x0012c290
MOV RDX,qword ptr [RBX + 0x38]
MOV RDI,RBP
MOV qword ptr [RAX + 0x38],RDX
CALL 0x0012c290
MOV RDI,R13
MOVZX EBX,byte ptr [RAX + 0x49]
CALL 0x0012c290
MOV RDI,RBP
AND EBX,0x3
MOV R12D,EBX
MOVZX EBX,byte ptr [RAX + 0x49]
CALL 0x0012c290
AND EBX,0xfffffffc
OR EBX,R12D
MOV byte ptr [RAX + 0x49],BL
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
MOV RDI,qword ptr [RAX + 0x8]
TEST RDI,RDI
JZ 0x00143636
CALL 0x00108740
MOV qword ptr [RBX + 0x8],0x0
JMP 0x001435cd
MOV EDI,0x20
CALL 0x00108748
MOV qword ptr [RBX + 0x8],RAX
MOV RDX,qword ptr [R12 + 0x8]
JMP 0x001435bd
(translation_unit "void FUN_00143580(undefined8 param_1,undefined8 param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  \n  lVar4 = FUN_0012c310(param_2);\n  lVar5 = FUN_0012c310(param_1);\n  puVar7 = *(undefined8 **)(lVar4 + 8);\n  if (puVar7 == (undefined8 *)0x0) {\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }\n  else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }\n  lVar4 = FUN_0012c290(param_2);\n  lVar5 = FUN_0012c290(param_1);\n  *(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);\n  lVar4 = FUN_0012c290(param_1);\n  bVar1 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_2);\n  bVar2 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_1);\n  *(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;\n  return;\n}\n\n" (function_definition "void FUN_00143580(undefined8 param_1,undefined8 param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  \n  lVar4 = FUN_0012c310(param_2);\n  lVar5 = FUN_0012c310(param_1);\n  puVar7 = *(undefined8 **)(lVar4 + 8);\n  if (puVar7 == (undefined8 *)0x0) {\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }\n  else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }\n  lVar4 = FUN_0012c290(param_2);\n  lVar5 = FUN_0012c290(param_1);\n  *(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);\n  lVar4 = FUN_0012c290(param_1);\n  bVar1 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_2);\n  bVar2 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_1);\n  *(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;\n  return;\n}" primitive_type (function_declarator "FUN_00143580(undefined8 param_1,undefined8 param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  \n  lVar4 = FUN_0012c310(param_2);\n  lVar5 = FUN_0012c310(param_1);\n  puVar7 = *(undefined8 **)(lVar4 + 8);\n  if (puVar7 == (undefined8 *)0x0) {\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }\n  else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }\n  lVar4 = FUN_0012c290(param_2);\n  lVar5 = FUN_0012c290(param_1);\n  *(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);\n  lVar4 = FUN_0012c290(param_1);\n  bVar1 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_2);\n  bVar2 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_1);\n  *(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (expression_statement "lVar4 = FUN_0012c310(param_2);" (assignment_expression "lVar4 = FUN_0012c310(param_2)" identifier = (call_expression "FUN_0012c310(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "lVar5 = FUN_0012c310(param_1);" (assignment_expression "lVar5 = FUN_0012c310(param_1)" identifier = (call_expression "FUN_0012c310(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar7 = *(undefined8 **)(lVar4 + 8);" (assignment_expression "puVar7 = *(undefined8 **)(lVar4 + 8)" identifier = (pointer_expression "*(undefined8 **)(lVar4 + 8)" * (cast_expression "(undefined8 **)(lVar4 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) ))))) ;) (if_statement "if (puVar7 == (undefined8 *)0x0) {\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }\n  else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }" if (parenthesized_expression "(puVar7 == (undefined8 *)0x0)" ( (binary_expression "puVar7 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }" { (if_statement "if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }" if (parenthesized_expression "(*(void **)(lVar5 + 8) != (void *)0x0)" ( (binary_expression "*(void **)(lVar5 + 8) != (void *)0x0" (pointer_expression "*(void **)(lVar5 + 8)" * (cast_expression "(void **)(lVar5 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(*(void **)(lVar5 + 8));\n    }" { (expression_statement "free(*(void **)(lVar5 + 8));" (call_expression "free(*(void **)(lVar5 + 8))" identifier (argument_list "(*(void **)(lVar5 + 8))" ( (pointer_expression "*(void **)(lVar5 + 8)" * (cast_expression "(void **)(lVar5 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined8 *)(lVar5 + 8) = 0;" (assignment_expression "*(undefined8 *)(lVar5 + 8) = 0" (pointer_expression "*(undefined8 *)(lVar5 + 8)" * (cast_expression "(undefined8 *)(lVar5 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }" else (compound_statement "{\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }" { (expression_statement "puVar6 = *(undefined8 **)(lVar5 + 8);" (assignment_expression "puVar6 = *(undefined8 **)(lVar5 + 8)" identifier = (pointer_expression "*(undefined8 **)(lVar5 + 8)" * (cast_expression "(undefined8 **)(lVar5 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) ))))) ;) (if_statement "if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }" if (parenthesized_expression "(puVar6 == (undefined8 *)0x0)" ( (binary_expression "puVar6 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }" { (expression_statement "puVar6 = (undefined8 *)xmalloc(0x20);" (assignment_expression "puVar6 = (undefined8 *)xmalloc(0x20)" identifier = (cast_expression "(undefined8 *)xmalloc(0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "*(undefined8 **)(lVar5 + 8) = puVar6;" (assignment_expression "*(undefined8 **)(lVar5 + 8) = puVar6" (pointer_expression "*(undefined8 **)(lVar5 + 8)" * (cast_expression "(undefined8 **)(lVar5 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar7 = *(undefined8 **)(lVar4 + 8);" (assignment_expression "puVar7 = *(undefined8 **)(lVar4 + 8)" identifier = (pointer_expression "*(undefined8 **)(lVar4 + 8)" * (cast_expression "(undefined8 **)(lVar4 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) ))))) ;) })) (expression_statement "uVar3 = puVar7[1];" (assignment_expression "uVar3 = puVar7[1]" identifier = (subscript_expression "puVar7[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar6 = *puVar7;" (assignment_expression "*puVar6 = *puVar7" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "puVar6[1] = uVar3;" (assignment_expression "puVar6[1] = uVar3" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = puVar7[3];" (assignment_expression "uVar3 = puVar7[3]" identifier = (subscript_expression "puVar7[3]" identifier [ number_literal ])) ;) (expression_statement "puVar6[2] = puVar7[2];" (assignment_expression "puVar6[2] = puVar7[2]" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = (subscript_expression "puVar7[2]" identifier [ number_literal ])) ;) (expression_statement "puVar6[3] = uVar3;" (assignment_expression "puVar6[3] = uVar3" (subscript_expression "puVar6[3]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "lVar4 = FUN_0012c290(param_2);" (assignment_expression "lVar4 = FUN_0012c290(param_2)" identifier = (call_expression "FUN_0012c290(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "lVar5 = FUN_0012c290(param_1);" (assignment_expression "lVar5 = FUN_0012c290(param_1)" identifier = (call_expression "FUN_0012c290(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);" (assignment_expression "*(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38)" (pointer_expression "*(undefined8 *)(lVar5 + 0x38)" * (cast_expression "(undefined8 *)(lVar5 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x38)" ( (binary_expression "lVar5 + 0x38" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(lVar4 + 0x38)" * (cast_expression "(undefined8 *)(lVar4 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x38)" ( (binary_expression "lVar4 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = FUN_0012c290(param_1);" (assignment_expression "lVar4 = FUN_0012c290(param_1)" identifier = (call_expression "FUN_0012c290(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "bVar1 = *(byte *)(lVar4 + 0x49);" (assignment_expression "bVar1 = *(byte *)(lVar4 + 0x49)" identifier = (pointer_expression "*(byte *)(lVar4 + 0x49)" * (cast_expression "(byte *)(lVar4 + 0x49)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x49)" ( (binary_expression "lVar4 + 0x49" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = FUN_0012c290(param_2);" (assignment_expression "lVar4 = FUN_0012c290(param_2)" identifier = (call_expression "FUN_0012c290(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "bVar2 = *(byte *)(lVar4 + 0x49);" (assignment_expression "bVar2 = *(byte *)(lVar4 + 0x49)" identifier = (pointer_expression "*(byte *)(lVar4 + 0x49)" * (cast_expression "(byte *)(lVar4 + 0x49)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x49)" ( (binary_expression "lVar4 + 0x49" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = FUN_0012c290(param_1);" (assignment_expression "lVar4 = FUN_0012c290(param_1)" identifier = (call_expression "FUN_0012c290(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;" (assignment_expression "*(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3" (pointer_expression "*(byte *)(lVar4 + 0x49)" * (cast_expression "(byte *)(lVar4 + 0x49)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x49)" ( (binary_expression "lVar4 + 0x49" identifier + number_literal) )))) = (binary_expression "bVar2 & 0xfc | bVar1 & 3" (binary_expression "bVar2 & 0xfc" identifier & number_literal) | (binary_expression "bVar1 & 3" identifier & number_literal))) ;) (return_statement "return;" return ;) })))
(translation_unit "void elf_copy_symbol_attributes(symbolS *dest,symbolS *src)\n\n{\n  byte bVar1;\n  byte bVar2;\n  symbolS *psVar3;\n  undefined2 uVar4;\n  ushort uVar5;\n  undefined4 uVar6;\n  elf_obj_sy *peVar7;\n  elf_obj_sy *peVar8;\n  asymbol *paVar9;\n  asymbol *paVar10;\n  expressionS *peVar11;\n  expressionS *peVar12;\n  \n  peVar7 = symbol_get_obj(src);\n  peVar8 = symbol_get_obj(dest);\n  peVar12 = peVar7->size;\n  if (peVar12 == (expressionS *)0x0) {\n    if (peVar8->size != (expressionS *)0x0) {\n      free(peVar8->size);\n    }\n    peVar8->size = (expressionS *)0x0;\n  }\n  else {\n    peVar11 = peVar8->size;\n    if (peVar11 == (expressionS *)0x0) {\n      peVar11 = (expressionS *)xmalloc(0x20);\n      peVar8->size = peVar11;\n      peVar12 = peVar7->size;\n    }\n    psVar3 = peVar12->X_op_symbol;\n    peVar11->X_add_symbol = peVar12->X_add_symbol;\n    peVar11->X_op_symbol = psVar3;\n    uVar4 = *(undefined2 *)&peVar12->field_0x18;\n    uVar5 = peVar12->X_md;\n    uVar6 = *(undefined4 *)&peVar12->field_0x1c;\n    peVar11->X_add_number = peVar12->X_add_number;\n    *(undefined2 *)&peVar11->field_0x18 = uVar4;\n    peVar11->X_md = uVar5;\n    *(undefined4 *)&peVar11->field_0x1c = uVar6;\n  }\n  paVar9 = symbol_get_bfdsym(src);\n  paVar10 = symbol_get_bfdsym(dest);\n  paVar10[1].name = paVar9[1].name;\n  paVar9 = symbol_get_bfdsym(dest);\n  bVar1 = *(byte *)((long)&paVar9[1].flags + 1);\n  paVar9 = symbol_get_bfdsym(src);\n  bVar2 = *(byte *)((long)&paVar9[1].flags + 1);\n  paVar9 = symbol_get_bfdsym(dest);\n  *(byte *)((long)&paVar9[1].flags + 1) = bVar2 & 0xfc | bVar1 & 3;\n  return;\n}\n\n" (function_definition "void elf_copy_symbol_attributes(symbolS *dest,symbolS *src)\n\n{\n  byte bVar1;\n  byte bVar2;\n  symbolS *psVar3;\n  undefined2 uVar4;\n  ushort uVar5;\n  undefined4 uVar6;\n  elf_obj_sy *peVar7;\n  elf_obj_sy *peVar8;\n  asymbol *paVar9;\n  asymbol *paVar10;\n  expressionS *peVar11;\n  expressionS *peVar12;\n  \n  peVar7 = symbol_get_obj(src);\n  peVar8 = symbol_get_obj(dest);\n  peVar12 = peVar7->size;\n  if (peVar12 == (expressionS *)0x0) {\n    if (peVar8->size != (expressionS *)0x0) {\n      free(peVar8->size);\n    }\n    peVar8->size = (expressionS *)0x0;\n  }\n  else {\n    peVar11 = peVar8->size;\n    if (peVar11 == (expressionS *)0x0) {\n      peVar11 = (expressionS *)xmalloc(0x20);\n      peVar8->size = peVar11;\n      peVar12 = peVar7->size;\n    }\n    psVar3 = peVar12->X_op_symbol;\n    peVar11->X_add_symbol = peVar12->X_add_symbol;\n    peVar11->X_op_symbol = psVar3;\n    uVar4 = *(undefined2 *)&peVar12->field_0x18;\n    uVar5 = peVar12->X_md;\n    uVar6 = *(undefined4 *)&peVar12->field_0x1c;\n    peVar11->X_add_number = peVar12->X_add_number;\n    *(undefined2 *)&peVar11->field_0x18 = uVar4;\n    peVar11->X_md = uVar5;\n    *(undefined4 *)&peVar11->field_0x1c = uVar6;\n  }\n  paVar9 = symbol_get_bfdsym(src);\n  paVar10 = symbol_get_bfdsym(dest);\n  paVar10[1].name = paVar9[1].name;\n  paVar9 = symbol_get_bfdsym(dest);\n  bVar1 = *(byte *)((long)&paVar9[1].flags + 1);\n  paVar9 = symbol_get_bfdsym(src);\n  bVar2 = *(byte *)((long)&paVar9[1].flags + 1);\n  paVar9 = symbol_get_bfdsym(dest);\n  *(byte *)((long)&paVar9[1].flags + 1) = bVar2 & 0xfc | bVar1 & 3;\n  return;\n}" primitive_type (function_declarator "elf_copy_symbol_attributes(symbolS *dest,symbolS *src)" identifier (parameter_list "(symbolS *dest,symbolS *src)" ( (parameter_declaration "symbolS *dest" type_identifier (pointer_declarator "*dest" * identifier)) , (parameter_declaration "symbolS *src" type_identifier (pointer_declarator "*src" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  symbolS *psVar3;\n  undefined2 uVar4;\n  ushort uVar5;\n  undefined4 uVar6;\n  elf_obj_sy *peVar7;\n  elf_obj_sy *peVar8;\n  asymbol *paVar9;\n  asymbol *paVar10;\n  expressionS *peVar11;\n  expressionS *peVar12;\n  \n  peVar7 = symbol_get_obj(src);\n  peVar8 = symbol_get_obj(dest);\n  peVar12 = peVar7->size;\n  if (peVar12 == (expressionS *)0x0) {\n    if (peVar8->size != (expressionS *)0x0) {\n      free(peVar8->size);\n    }\n    peVar8->size = (expressionS *)0x0;\n  }\n  else {\n    peVar11 = peVar8->size;\n    if (peVar11 == (expressionS *)0x0) {\n      peVar11 = (expressionS *)xmalloc(0x20);\n      peVar8->size = peVar11;\n      peVar12 = peVar7->size;\n    }\n    psVar3 = peVar12->X_op_symbol;\n    peVar11->X_add_symbol = peVar12->X_add_symbol;\n    peVar11->X_op_symbol = psVar3;\n    uVar4 = *(undefined2 *)&peVar12->field_0x18;\n    uVar5 = peVar12->X_md;\n    uVar6 = *(undefined4 *)&peVar12->field_0x1c;\n    peVar11->X_add_number = peVar12->X_add_number;\n    *(undefined2 *)&peVar11->field_0x18 = uVar4;\n    peVar11->X_md = uVar5;\n    *(undefined4 *)&peVar11->field_0x1c = uVar6;\n  }\n  paVar9 = symbol_get_bfdsym(src);\n  paVar10 = symbol_get_bfdsym(dest);\n  paVar10[1].name = paVar9[1].name;\n  paVar9 = symbol_get_bfdsym(dest);\n  bVar1 = *(byte *)((long)&paVar9[1].flags + 1);\n  paVar9 = symbol_get_bfdsym(src);\n  bVar2 = *(byte *)((long)&paVar9[1].flags + 1);\n  paVar9 = symbol_get_bfdsym(dest);\n  *(byte *)((long)&paVar9[1].flags + 1) = bVar2 & 0xfc | bVar1 & 3;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "symbolS *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "undefined2 uVar4;" type_identifier identifier ;) (declaration "ushort uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "elf_obj_sy *peVar7;" type_identifier (pointer_declarator "*peVar7" * identifier) ;) (declaration "elf_obj_sy *peVar8;" type_identifier (pointer_declarator "*peVar8" * identifier) ;) (declaration "asymbol *paVar9;" type_identifier (pointer_declarator "*paVar9" * identifier) ;) (declaration "asymbol *paVar10;" type_identifier (pointer_declarator "*paVar10" * identifier) ;) (declaration "expressionS *peVar11;" type_identifier (pointer_declarator "*peVar11" * identifier) ;) (declaration "expressionS *peVar12;" type_identifier (pointer_declarator "*peVar12" * identifier) ;) (expression_statement "peVar7 = symbol_get_obj(src);" (assignment_expression "peVar7 = symbol_get_obj(src)" identifier = (call_expression "symbol_get_obj(src)" identifier (argument_list "(src)" ( identifier )))) ;) (expression_statement "peVar8 = symbol_get_obj(dest);" (assignment_expression "peVar8 = symbol_get_obj(dest)" identifier = (call_expression "symbol_get_obj(dest)" identifier (argument_list "(dest)" ( identifier )))) ;) (expression_statement "peVar12 = peVar7->size;" (assignment_expression "peVar12 = peVar7->size" identifier = (field_expression "peVar7->size" identifier -> field_identifier)) ;) (if_statement "if (peVar12 == (expressionS *)0x0) {\n    if (peVar8->size != (expressionS *)0x0) {\n      free(peVar8->size);\n    }\n    peVar8->size = (expressionS *)0x0;\n  }\n  else {\n    peVar11 = peVar8->size;\n    if (peVar11 == (expressionS *)0x0) {\n      peVar11 = (expressionS *)xmalloc(0x20);\n      peVar8->size = peVar11;\n      peVar12 = peVar7->size;\n    }\n    psVar3 = peVar12->X_op_symbol;\n    peVar11->X_add_symbol = peVar12->X_add_symbol;\n    peVar11->X_op_symbol = psVar3;\n    uVar4 = *(undefined2 *)&peVar12->field_0x18;\n    uVar5 = peVar12->X_md;\n    uVar6 = *(undefined4 *)&peVar12->field_0x1c;\n    peVar11->X_add_number = peVar12->X_add_number;\n    *(undefined2 *)&peVar11->field_0x18 = uVar4;\n    peVar11->X_md = uVar5;\n    *(undefined4 *)&peVar11->field_0x1c = uVar6;\n  }" if (parenthesized_expression "(peVar12 == (expressionS *)0x0)" ( (binary_expression "peVar12 == (expressionS *)0x0" identifier == (cast_expression "(expressionS *)0x0" ( (type_descriptor "expressionS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (peVar8->size != (expressionS *)0x0) {\n      free(peVar8->size);\n    }\n    peVar8->size = (expressionS *)0x0;\n  }" { (if_statement "if (peVar8->size != (expressionS *)0x0) {\n      free(peVar8->size);\n    }" if (parenthesized_expression "(peVar8->size != (expressionS *)0x0)" ( (binary_expression "peVar8->size != (expressionS *)0x0" (field_expression "peVar8->size" identifier -> field_identifier) != (cast_expression "(expressionS *)0x0" ( (type_descriptor "expressionS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(peVar8->size);\n    }" { (expression_statement "free(peVar8->size);" (call_expression "free(peVar8->size)" identifier (argument_list "(peVar8->size)" ( (field_expression "peVar8->size" identifier -> field_identifier) ))) ;) })) (expression_statement "peVar8->size = (expressionS *)0x0;" (assignment_expression "peVar8->size = (expressionS *)0x0" (field_expression "peVar8->size" identifier -> field_identifier) = (cast_expression "(expressionS *)0x0" ( (type_descriptor "expressionS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    peVar11 = peVar8->size;\n    if (peVar11 == (expressionS *)0x0) {\n      peVar11 = (expressionS *)xmalloc(0x20);\n      peVar8->size = peVar11;\n      peVar12 = peVar7->size;\n    }\n    psVar3 = peVar12->X_op_symbol;\n    peVar11->X_add_symbol = peVar12->X_add_symbol;\n    peVar11->X_op_symbol = psVar3;\n    uVar4 = *(undefined2 *)&peVar12->field_0x18;\n    uVar5 = peVar12->X_md;\n    uVar6 = *(undefined4 *)&peVar12->field_0x1c;\n    peVar11->X_add_number = peVar12->X_add_number;\n    *(undefined2 *)&peVar11->field_0x18 = uVar4;\n    peVar11->X_md = uVar5;\n    *(undefined4 *)&peVar11->field_0x1c = uVar6;\n  }" else (compound_statement "{\n    peVar11 = peVar8->size;\n    if (peVar11 == (expressionS *)0x0) {\n      peVar11 = (expressionS *)xmalloc(0x20);\n      peVar8->size = peVar11;\n      peVar12 = peVar7->size;\n    }\n    psVar3 = peVar12->X_op_symbol;\n    peVar11->X_add_symbol = peVar12->X_add_symbol;\n    peVar11->X_op_symbol = psVar3;\n    uVar4 = *(undefined2 *)&peVar12->field_0x18;\n    uVar5 = peVar12->X_md;\n    uVar6 = *(undefined4 *)&peVar12->field_0x1c;\n    peVar11->X_add_number = peVar12->X_add_number;\n    *(undefined2 *)&peVar11->field_0x18 = uVar4;\n    peVar11->X_md = uVar5;\n    *(undefined4 *)&peVar11->field_0x1c = uVar6;\n  }" { (expression_statement "peVar11 = peVar8->size;" (assignment_expression "peVar11 = peVar8->size" identifier = (field_expression "peVar8->size" identifier -> field_identifier)) ;) (if_statement "if (peVar11 == (expressionS *)0x0) {\n      peVar11 = (expressionS *)xmalloc(0x20);\n      peVar8->size = peVar11;\n      peVar12 = peVar7->size;\n    }" if (parenthesized_expression "(peVar11 == (expressionS *)0x0)" ( (binary_expression "peVar11 == (expressionS *)0x0" identifier == (cast_expression "(expressionS *)0x0" ( (type_descriptor "expressionS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      peVar11 = (expressionS *)xmalloc(0x20);\n      peVar8->size = peVar11;\n      peVar12 = peVar7->size;\n    }" { (expression_statement "peVar11 = (expressionS *)xmalloc(0x20);" (assignment_expression "peVar11 = (expressionS *)xmalloc(0x20)" identifier = (cast_expression "(expressionS *)xmalloc(0x20)" ( (type_descriptor "expressionS *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "peVar8->size = peVar11;" (assignment_expression "peVar8->size = peVar11" (field_expression "peVar8->size" identifier -> field_identifier) = identifier) ;) (expression_statement "peVar12 = peVar7->size;" (assignment_expression "peVar12 = peVar7->size" identifier = (field_expression "peVar7->size" identifier -> field_identifier)) ;) })) (expression_statement "psVar3 = peVar12->X_op_symbol;" (assignment_expression "psVar3 = peVar12->X_op_symbol" identifier = (field_expression "peVar12->X_op_symbol" identifier -> field_identifier)) ;) (expression_statement "peVar11->X_add_symbol = peVar12->X_add_symbol;" (assignment_expression "peVar11->X_add_symbol = peVar12->X_add_symbol" (field_expression "peVar11->X_add_symbol" identifier -> field_identifier) = (field_expression "peVar12->X_add_symbol" identifier -> field_identifier)) ;) (expression_statement "peVar11->X_op_symbol = psVar3;" (assignment_expression "peVar11->X_op_symbol = psVar3" (field_expression "peVar11->X_op_symbol" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar4 = *(undefined2 *)&peVar12->field_0x18;" (assignment_expression "uVar4 = *(undefined2 *)&peVar12->field_0x18" identifier = (pointer_expression "*(undefined2 *)&peVar12->field_0x18" * (cast_expression "(undefined2 *)&peVar12->field_0x18" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&peVar12->field_0x18" & (field_expression "peVar12->field_0x18" identifier -> field_identifier))))) ;) (expression_statement "uVar5 = peVar12->X_md;" (assignment_expression "uVar5 = peVar12->X_md" identifier = (field_expression "peVar12->X_md" identifier -> field_identifier)) ;) (expression_statement "uVar6 = *(undefined4 *)&peVar12->field_0x1c;" (assignment_expression "uVar6 = *(undefined4 *)&peVar12->field_0x1c" identifier = (pointer_expression "*(undefined4 *)&peVar12->field_0x1c" * (cast_expression "(undefined4 *)&peVar12->field_0x1c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&peVar12->field_0x1c" & (field_expression "peVar12->field_0x1c" identifier -> field_identifier))))) ;) (expression_statement "peVar11->X_add_number = peVar12->X_add_number;" (assignment_expression "peVar11->X_add_number = peVar12->X_add_number" (field_expression "peVar11->X_add_number" identifier -> field_identifier) = (field_expression "peVar12->X_add_number" identifier -> field_identifier)) ;) (expression_statement "*(undefined2 *)&peVar11->field_0x18 = uVar4;" (assignment_expression "*(undefined2 *)&peVar11->field_0x18 = uVar4" (pointer_expression "*(undefined2 *)&peVar11->field_0x18" * (cast_expression "(undefined2 *)&peVar11->field_0x18" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&peVar11->field_0x18" & (field_expression "peVar11->field_0x18" identifier -> field_identifier)))) = identifier) ;) (expression_statement "peVar11->X_md = uVar5;" (assignment_expression "peVar11->X_md = uVar5" (field_expression "peVar11->X_md" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)&peVar11->field_0x1c = uVar6;" (assignment_expression "*(undefined4 *)&peVar11->field_0x1c = uVar6" (pointer_expression "*(undefined4 *)&peVar11->field_0x1c" * (cast_expression "(undefined4 *)&peVar11->field_0x1c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&peVar11->field_0x1c" & (field_expression "peVar11->field_0x1c" identifier -> field_identifier)))) = identifier) ;) }))) (expression_statement "paVar9 = symbol_get_bfdsym(src);" (assignment_expression "paVar9 = symbol_get_bfdsym(src)" identifier = (call_expression "symbol_get_bfdsym(src)" identifier (argument_list "(src)" ( identifier )))) ;) (expression_statement "paVar10 = symbol_get_bfdsym(dest);" (assignment_expression "paVar10 = symbol_get_bfdsym(dest)" identifier = (call_expression "symbol_get_bfdsym(dest)" identifier (argument_list "(dest)" ( identifier )))) ;) (expression_statement "paVar10[1].name = paVar9[1].name;" (assignment_expression "paVar10[1].name = paVar9[1].name" (field_expression "paVar10[1].name" (subscript_expression "paVar10[1]" identifier [ number_literal ]) . field_identifier) = (field_expression "paVar9[1].name" (subscript_expression "paVar9[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "paVar9 = symbol_get_bfdsym(dest);" (assignment_expression "paVar9 = symbol_get_bfdsym(dest)" identifier = (call_expression "symbol_get_bfdsym(dest)" identifier (argument_list "(dest)" ( identifier )))) ;) (expression_statement "bVar1 = *(byte *)((long)&paVar9[1].flags + 1);" (assignment_expression "bVar1 = *(byte *)((long)&paVar9[1].flags + 1)" identifier = (pointer_expression "*(byte *)((long)&paVar9[1].flags + 1)" * (cast_expression "(byte *)((long)&paVar9[1].flags + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&paVar9[1].flags + 1)" ( (binary_expression "(long)&paVar9[1].flags + 1" (cast_expression "(long)&paVar9[1].flags" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&paVar9[1].flags" & (field_expression "paVar9[1].flags" (subscript_expression "paVar9[1]" identifier [ number_literal ]) . field_identifier))) + number_literal) ))))) ;) (expression_statement "paVar9 = symbol_get_bfdsym(src);" (assignment_expression "paVar9 = symbol_get_bfdsym(src)" identifier = (call_expression "symbol_get_bfdsym(src)" identifier (argument_list "(src)" ( identifier )))) ;) (expression_statement "bVar2 = *(byte *)((long)&paVar9[1].flags + 1);" (assignment_expression "bVar2 = *(byte *)((long)&paVar9[1].flags + 1)" identifier = (pointer_expression "*(byte *)((long)&paVar9[1].flags + 1)" * (cast_expression "(byte *)((long)&paVar9[1].flags + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&paVar9[1].flags + 1)" ( (binary_expression "(long)&paVar9[1].flags + 1" (cast_expression "(long)&paVar9[1].flags" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&paVar9[1].flags" & (field_expression "paVar9[1].flags" (subscript_expression "paVar9[1]" identifier [ number_literal ]) . field_identifier))) + number_literal) ))))) ;) (expression_statement "paVar9 = symbol_get_bfdsym(dest);" (assignment_expression "paVar9 = symbol_get_bfdsym(dest)" identifier = (call_expression "symbol_get_bfdsym(dest)" identifier (argument_list "(dest)" ( identifier )))) ;) (expression_statement "*(byte *)((long)&paVar9[1].flags + 1) = bVar2 & 0xfc | bVar1 & 3;" (assignment_expression "*(byte *)((long)&paVar9[1].flags + 1) = bVar2 & 0xfc | bVar1 & 3" (pointer_expression "*(byte *)((long)&paVar9[1].flags + 1)" * (cast_expression "(byte *)((long)&paVar9[1].flags + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&paVar9[1].flags + 1)" ( (binary_expression "(long)&paVar9[1].flags + 1" (cast_expression "(long)&paVar9[1].flags" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&paVar9[1].flags" & (field_expression "paVar9[1].flags" (subscript_expression "paVar9[1]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) = (binary_expression "bVar2 & 0xfc | bVar1 & 3" (binary_expression "bVar2 & 0xfc" identifier & number_literal) | (binary_expression "bVar1 & 3" identifier & number_literal))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00143580(undefined8 param_1,undefined8 param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  \n  lVar4 = FUN_0012c310(param_2);\n  lVar5 = FUN_0012c310(param_1);\n  puVar7 = *(undefined8 **)(lVar4 + 8);\n  if (puVar7 == (undefined8 *)0x0) {\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }\n  else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }\n  lVar4 = FUN_0012c290(param_2);\n  lVar5 = FUN_0012c290(param_1);\n  *(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);\n  lVar4 = FUN_0012c290(param_1);\n  bVar1 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_2);\n  bVar2 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_1);\n  *(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;\n  return;\n}\n\n" (function_definition "void FUN_00143580(undefined8 param_1,undefined8 param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  \n  lVar4 = FUN_0012c310(param_2);\n  lVar5 = FUN_0012c310(param_1);\n  puVar7 = *(undefined8 **)(lVar4 + 8);\n  if (puVar7 == (undefined8 *)0x0) {\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }\n  else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }\n  lVar4 = FUN_0012c290(param_2);\n  lVar5 = FUN_0012c290(param_1);\n  *(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);\n  lVar4 = FUN_0012c290(param_1);\n  bVar1 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_2);\n  bVar2 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_1);\n  *(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;\n  return;\n}" primitive_type (function_declarator "FUN_00143580(undefined8 param_1,undefined8 param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  \n  lVar4 = FUN_0012c310(param_2);\n  lVar5 = FUN_0012c310(param_1);\n  puVar7 = *(undefined8 **)(lVar4 + 8);\n  if (puVar7 == (undefined8 *)0x0) {\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }\n  else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }\n  lVar4 = FUN_0012c290(param_2);\n  lVar5 = FUN_0012c290(param_1);\n  *(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);\n  lVar4 = FUN_0012c290(param_1);\n  bVar1 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_2);\n  bVar2 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_1);\n  *(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (expression_statement "lVar4 = FUN_0012c310(param_2);" (assignment_expression "lVar4 = FUN_0012c310(param_2)" identifier = (call_expression "FUN_0012c310(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "lVar5 = FUN_0012c310(param_1);" (assignment_expression "lVar5 = FUN_0012c310(param_1)" identifier = (call_expression "FUN_0012c310(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar7 = *(undefined8 **)(lVar4 + 8);" (assignment_expression "puVar7 = *(undefined8 **)(lVar4 + 8)" identifier = (pointer_expression "*(undefined8 **)(lVar4 + 8)" * (cast_expression "(undefined8 **)(lVar4 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) ))))) ;) (if_statement "if (puVar7 == (undefined8 *)0x0) {\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }\n  else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }" if (parenthesized_expression "(puVar7 == (undefined8 *)0x0)" ( (binary_expression "puVar7 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }" { (if_statement "if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }" if (parenthesized_expression "(*(void **)(lVar5 + 8) != (void *)0x0)" ( (binary_expression "*(void **)(lVar5 + 8) != (void *)0x0" (pointer_expression "*(void **)(lVar5 + 8)" * (cast_expression "(void **)(lVar5 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(*(void **)(lVar5 + 8));\n    }" { (expression_statement "free(*(void **)(lVar5 + 8));" (call_expression "free(*(void **)(lVar5 + 8))" identifier (argument_list "(*(void **)(lVar5 + 8))" ( (pointer_expression "*(void **)(lVar5 + 8)" * (cast_expression "(void **)(lVar5 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) ))) ;) })) (expression_statement "*(undefined8 *)(lVar5 + 8) = 0;" (assignment_expression "*(undefined8 *)(lVar5 + 8) = 0" (pointer_expression "*(undefined8 *)(lVar5 + 8)" * (cast_expression "(undefined8 *)(lVar5 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }" else (compound_statement "{\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }" { (expression_statement "puVar6 = *(undefined8 **)(lVar5 + 8);" (assignment_expression "puVar6 = *(undefined8 **)(lVar5 + 8)" identifier = (pointer_expression "*(undefined8 **)(lVar5 + 8)" * (cast_expression "(undefined8 **)(lVar5 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) ))))) ;) (if_statement "if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }" if (parenthesized_expression "(puVar6 == (undefined8 *)0x0)" ( (binary_expression "puVar6 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }" { (expression_statement "puVar6 = (undefined8 *)xmalloc(0x20);" (assignment_expression "puVar6 = (undefined8 *)xmalloc(0x20)" identifier = (cast_expression "(undefined8 *)xmalloc(0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "*(undefined8 **)(lVar5 + 8) = puVar6;" (assignment_expression "*(undefined8 **)(lVar5 + 8) = puVar6" (pointer_expression "*(undefined8 **)(lVar5 + 8)" * (cast_expression "(undefined8 **)(lVar5 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar7 = *(undefined8 **)(lVar4 + 8);" (assignment_expression "puVar7 = *(undefined8 **)(lVar4 + 8)" identifier = (pointer_expression "*(undefined8 **)(lVar4 + 8)" * (cast_expression "(undefined8 **)(lVar4 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) ))))) ;) })) (expression_statement "uVar3 = puVar7[1];" (assignment_expression "uVar3 = puVar7[1]" identifier = (subscript_expression "puVar7[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar6 = *puVar7;" (assignment_expression "*puVar6 = *puVar7" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "puVar6[1] = uVar3;" (assignment_expression "puVar6[1] = uVar3" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = puVar7[3];" (assignment_expression "uVar3 = puVar7[3]" identifier = (subscript_expression "puVar7[3]" identifier [ number_literal ])) ;) (expression_statement "puVar6[2] = puVar7[2];" (assignment_expression "puVar6[2] = puVar7[2]" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = (subscript_expression "puVar7[2]" identifier [ number_literal ])) ;) (expression_statement "puVar6[3] = uVar3;" (assignment_expression "puVar6[3] = uVar3" (subscript_expression "puVar6[3]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "lVar4 = FUN_0012c290(param_2);" (assignment_expression "lVar4 = FUN_0012c290(param_2)" identifier = (call_expression "FUN_0012c290(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "lVar5 = FUN_0012c290(param_1);" (assignment_expression "lVar5 = FUN_0012c290(param_1)" identifier = (call_expression "FUN_0012c290(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);" (assignment_expression "*(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38)" (pointer_expression "*(undefined8 *)(lVar5 + 0x38)" * (cast_expression "(undefined8 *)(lVar5 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x38)" ( (binary_expression "lVar5 + 0x38" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(lVar4 + 0x38)" * (cast_expression "(undefined8 *)(lVar4 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x38)" ( (binary_expression "lVar4 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = FUN_0012c290(param_1);" (assignment_expression "lVar4 = FUN_0012c290(param_1)" identifier = (call_expression "FUN_0012c290(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "bVar1 = *(byte *)(lVar4 + 0x49);" (assignment_expression "bVar1 = *(byte *)(lVar4 + 0x49)" identifier = (pointer_expression "*(byte *)(lVar4 + 0x49)" * (cast_expression "(byte *)(lVar4 + 0x49)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x49)" ( (binary_expression "lVar4 + 0x49" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = FUN_0012c290(param_2);" (assignment_expression "lVar4 = FUN_0012c290(param_2)" identifier = (call_expression "FUN_0012c290(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "bVar2 = *(byte *)(lVar4 + 0x49);" (assignment_expression "bVar2 = *(byte *)(lVar4 + 0x49)" identifier = (pointer_expression "*(byte *)(lVar4 + 0x49)" * (cast_expression "(byte *)(lVar4 + 0x49)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x49)" ( (binary_expression "lVar4 + 0x49" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = FUN_0012c290(param_1);" (assignment_expression "lVar4 = FUN_0012c290(param_1)" identifier = (call_expression "FUN_0012c290(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;" (assignment_expression "*(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3" (pointer_expression "*(byte *)(lVar4 + 0x49)" * (cast_expression "(byte *)(lVar4 + 0x49)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x49)" ( (binary_expression "lVar4 + 0x49" identifier + number_literal) )))) = (binary_expression "bVar2 & 0xfc | bVar1 & 3" (binary_expression "bVar2 & 0xfc" identifier & number_literal) | (binary_expression "bVar1 & 3" identifier & number_literal))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (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 ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT & LIT) | (binary_expression IDENT & LIT))) ;) (return_statement return ;) })))
(function_definition "void FUN_00143580(undefined8 param_1,undefined8 param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  \n  lVar4 = FUN_0012c310(param_2);\n  lVar5 = FUN_0012c310(param_1);\n  puVar7 = *(undefined8 **)(lVar4 + 8);\n  if (puVar7 == (undefined8 *)0x0) {\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }\n  else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }\n  lVar4 = FUN_0012c290(param_2);\n  lVar5 = FUN_0012c290(param_1);\n  *(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);\n  lVar4 = FUN_0012c290(param_1);\n  bVar1 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_2);\n  bVar2 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_1);\n  *(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00143580(undefined8 param_1,undefined8 param_2)" (identifier "FUN_00143580") (parameter_list "(undefined8 param_1,undefined8 param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  \n  lVar4 = FUN_0012c310(param_2);\n  lVar5 = FUN_0012c310(param_1);\n  puVar7 = *(undefined8 **)(lVar4 + 8);\n  if (puVar7 == (undefined8 *)0x0) {\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }\n  else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }\n  lVar4 = FUN_0012c290(param_2);\n  lVar5 = FUN_0012c290(param_1);\n  *(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);\n  lVar4 = FUN_0012c290(param_1);\n  bVar1 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_2);\n  bVar2 = *(byte *)(lVar4 + 0x49);\n  lVar4 = FUN_0012c290(param_1);\n  *(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "undefined8 *puVar6;" (type_identifier "undefined8") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined8 *puVar7;" (type_identifier "undefined8") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (expression_statement "lVar4 = FUN_0012c310(param_2);" (assignment_expression "lVar4 = FUN_0012c310(param_2)" (identifier "lVar4") (= "=") (call_expression "FUN_0012c310(param_2)" (identifier "FUN_0012c310") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "lVar5 = FUN_0012c310(param_1);" (assignment_expression "lVar5 = FUN_0012c310(param_1)" (identifier "lVar5") (= "=") (call_expression "FUN_0012c310(param_1)" (identifier "FUN_0012c310") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar7 = *(undefined8 **)(lVar4 + 8);" (assignment_expression "puVar7 = *(undefined8 **)(lVar4 + 8)" (identifier "puVar7") (= "=") (pointer_expression "*(undefined8 **)(lVar4 + 8)" (* "*") (cast_expression "(undefined8 **)(lVar4 + 8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar4 + 8)" (( "(") (binary_expression "lVar4 + 8" (identifier "lVar4") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (puVar7 == (undefined8 *)0x0) {\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }\n  else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }" (if "if") (parenthesized_expression "(puVar7 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar7 == (undefined8 *)0x0" (identifier "puVar7") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }\n    *(undefined8 *)(lVar5 + 8) = 0;\n  }" ({ "{") (if_statement "if (*(void **)(lVar5 + 8) != (void *)0x0) {\n      free(*(void **)(lVar5 + 8));\n    }" (if "if") (parenthesized_expression "(*(void **)(lVar5 + 8) != (void *)0x0)" (( "(") (binary_expression "*(void **)(lVar5 + 8) != (void *)0x0" (pointer_expression "*(void **)(lVar5 + 8)" (* "*") (cast_expression "(void **)(lVar5 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar5 + 8)" (( "(") (binary_expression "lVar5 + 8" (identifier "lVar5") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      free(*(void **)(lVar5 + 8));\n    }" ({ "{") (expression_statement "free(*(void **)(lVar5 + 8));" (call_expression "free(*(void **)(lVar5 + 8))" (identifier "free") (argument_list "(*(void **)(lVar5 + 8))" (( "(") (pointer_expression "*(void **)(lVar5 + 8)" (* "*") (cast_expression "(void **)(lVar5 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar5 + 8)" (( "(") (binary_expression "lVar5 + 8" (identifier "lVar5") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined8 *)(lVar5 + 8) = 0;" (assignment_expression "*(undefined8 *)(lVar5 + 8) = 0" (pointer_expression "*(undefined8 *)(lVar5 + 8)" (* "*") (cast_expression "(undefined8 *)(lVar5 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 8)" (( "(") (binary_expression "lVar5 + 8" (identifier "lVar5") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }" (else "else") (compound_statement "{\n    puVar6 = *(undefined8 **)(lVar5 + 8);\n    if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }\n    uVar3 = puVar7[1];\n    *puVar6 = *puVar7;\n    puVar6[1] = uVar3;\n    uVar3 = puVar7[3];\n    puVar6[2] = puVar7[2];\n    puVar6[3] = uVar3;\n  }" ({ "{") (expression_statement "puVar6 = *(undefined8 **)(lVar5 + 8);" (assignment_expression "puVar6 = *(undefined8 **)(lVar5 + 8)" (identifier "puVar6") (= "=") (pointer_expression "*(undefined8 **)(lVar5 + 8)" (* "*") (cast_expression "(undefined8 **)(lVar5 + 8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar5 + 8)" (( "(") (binary_expression "lVar5 + 8" (identifier "lVar5") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (puVar6 == (undefined8 *)0x0) {\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }" (if "if") (parenthesized_expression "(puVar6 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar6 == (undefined8 *)0x0" (identifier "puVar6") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar6 = (undefined8 *)xmalloc(0x20);\n      *(undefined8 **)(lVar5 + 8) = puVar6;\n      puVar7 = *(undefined8 **)(lVar4 + 8);\n    }" ({ "{") (expression_statement "puVar6 = (undefined8 *)xmalloc(0x20);" (assignment_expression "puVar6 = (undefined8 *)xmalloc(0x20)" (identifier "puVar6") (= "=") (cast_expression "(undefined8 *)xmalloc(0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x20)" (identifier "xmalloc") (argument_list "(0x20)" (( "(") (number_literal "0x20") () ")"))))) (; ";")) (expression_statement "*(undefined8 **)(lVar5 + 8) = puVar6;" (assignment_expression "*(undefined8 **)(lVar5 + 8) = puVar6" (pointer_expression "*(undefined8 **)(lVar5 + 8)" (* "*") (cast_expression "(undefined8 **)(lVar5 + 8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar5 + 8)" (( "(") (binary_expression "lVar5 + 8" (identifier "lVar5") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar6")) (; ";")) (expression_statement "puVar7 = *(undefined8 **)(lVar4 + 8);" (assignment_expression "puVar7 = *(undefined8 **)(lVar4 + 8)" (identifier "puVar7") (= "=") (pointer_expression "*(undefined8 **)(lVar4 + 8)" (* "*") (cast_expression "(undefined8 **)(lVar4 + 8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar4 + 8)" (( "(") (binary_expression "lVar4 + 8" (identifier "lVar4") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar3 = puVar7[1];" (assignment_expression "uVar3 = puVar7[1]" (identifier "uVar3") (= "=") (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*puVar6 = *puVar7;" (assignment_expression "*puVar6 = *puVar7" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (pointer_expression "*puVar7" (* "*") (identifier "puVar7"))) (; ";")) (expression_statement "puVar6[1] = uVar3;" (assignment_expression "puVar6[1] = uVar3" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = puVar7[3];" (assignment_expression "uVar3 = puVar7[3]" (identifier "uVar3") (= "=") (subscript_expression "puVar7[3]" (identifier "puVar7") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "puVar6[2] = puVar7[2];" (assignment_expression "puVar6[2] = puVar7[2]" (subscript_expression "puVar6[2]" (identifier "puVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "puVar7[2]" (identifier "puVar7") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "puVar6[3] = uVar3;" (assignment_expression "puVar6[3] = uVar3" (subscript_expression "puVar6[3]" (identifier "puVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (} "}")))) (expression_statement "lVar4 = FUN_0012c290(param_2);" (assignment_expression "lVar4 = FUN_0012c290(param_2)" (identifier "lVar4") (= "=") (call_expression "FUN_0012c290(param_2)" (identifier "FUN_0012c290") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "lVar5 = FUN_0012c290(param_1);" (assignment_expression "lVar5 = FUN_0012c290(param_1)" (identifier "lVar5") (= "=") (call_expression "FUN_0012c290(param_1)" (identifier "FUN_0012c290") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);" (assignment_expression "*(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38)" (pointer_expression "*(undefined8 *)(lVar5 + 0x38)" (* "*") (cast_expression "(undefined8 *)(lVar5 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x38)" (( "(") (binary_expression "lVar5 + 0x38" (identifier "lVar5") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(lVar4 + 0x38)" (* "*") (cast_expression "(undefined8 *)(lVar4 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x38)" (( "(") (binary_expression "lVar4 + 0x38" (identifier "lVar4") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "lVar4 = FUN_0012c290(param_1);" (assignment_expression "lVar4 = FUN_0012c290(param_1)" (identifier "lVar4") (= "=") (call_expression "FUN_0012c290(param_1)" (identifier "FUN_0012c290") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "bVar1 = *(byte *)(lVar4 + 0x49);" (assignment_expression "bVar1 = *(byte *)(lVar4 + 0x49)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(lVar4 + 0x49)" (* "*") (cast_expression "(byte *)(lVar4 + 0x49)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x49)" (( "(") (binary_expression "lVar4 + 0x49" (identifier "lVar4") (+ "+") (number_literal "0x49")) () ")"))))) (; ";")) (expression_statement "lVar4 = FUN_0012c290(param_2);" (assignment_expression "lVar4 = FUN_0012c290(param_2)" (identifier "lVar4") (= "=") (call_expression "FUN_0012c290(param_2)" (identifier "FUN_0012c290") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "bVar2 = *(byte *)(lVar4 + 0x49);" (assignment_expression "bVar2 = *(byte *)(lVar4 + 0x49)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(lVar4 + 0x49)" (* "*") (cast_expression "(byte *)(lVar4 + 0x49)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x49)" (( "(") (binary_expression "lVar4 + 0x49" (identifier "lVar4") (+ "+") (number_literal "0x49")) () ")"))))) (; ";")) (expression_statement "lVar4 = FUN_0012c290(param_1);" (assignment_expression "lVar4 = FUN_0012c290(param_1)" (identifier "lVar4") (= "=") (call_expression "FUN_0012c290(param_1)" (identifier "FUN_0012c290") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;" (assignment_expression "*(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3" (pointer_expression "*(byte *)(lVar4 + 0x49)" (* "*") (cast_expression "(byte *)(lVar4 + 0x49)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x49)" (( "(") (binary_expression "lVar4 + 0x49" (identifier "lVar4") (+ "+") (number_literal "0x49")) () ")")))) (= "=") (binary_expression "bVar2 & 0xfc | bVar1 & 3" (binary_expression "bVar2 & 0xfc" (identifier "bVar2") (& "&") (number_literal "0xfc")) (| "|") (binary_expression "bVar1 & 3" (identifier "bVar1") (& "&") (number_literal "3")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *dest,type_1 *src)

{
  type_2 var_8;
  type_2 var_7;
  type_1 *psVar3;
  type_3 uVar4;
  type_4 uVar5;
  type_5 uVar6;
  type_6 *peVar7;
  type_6 *peVar8;
  type_7 *paVar9;
  type_7 *paVar10;
  type_8 *var_4;
  type_8 *var_2;
  
  peVar7 = var_1(src);
  peVar8 = var_1(dest);
  var_2 = peVar7->size;
  if (var_2 == (type_8 *)0x0) {
    if (peVar8->size != (type_8 *)0x0) {
      var_3(peVar8->size);
    }
    peVar8->size = (type_8 *)0x0;
  }
  else {
    var_4 = peVar8->size;
    if (var_4 == (type_8 *)0x0) {
      var_4 = (type_8 *)var_5(0x20);
      peVar8->size = var_4;
      var_2 = peVar7->size;
    }
    psVar3 = var_2->X_op_symbol;
    var_4->X_add_symbol = var_2->X_add_symbol;
    var_4->X_op_symbol = psVar3;
    uVar4 = *(type_3 *)&var_2->field_0x18;
    uVar5 = var_2->X_md;
    uVar6 = *(type_5 *)&var_2->field_0x1c;
    var_4->X_add_number = var_2->X_add_number;
    *(type_3 *)&var_4->field_0x18 = uVar4;
    var_4->X_md = uVar5;
    *(type_5 *)&var_4->field_0x1c = uVar6;
  }
  paVar9 = var_6(src);
  paVar10 = var_6(dest);
  paVar10[1].name = paVar9[1].name;
  paVar9 = var_6(dest);
  var_8 = *(type_2 *)((long)&paVar9[1].flags + 1);
  paVar9 = var_6(src);
  var_7 = *(type_2 *)((long)&paVar9[1].flags + 1);
  paVar9 = var_6(dest);
  *(type_2 *)((long)&paVar9[1].flags + 1) = var_7 & 0xfc | var_8 & 3;
  return;
}


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

void MASKED(undefined8 param_1,undefined8 param_2)

{
  byte bVar1;
  byte bVar2;
  undefined8 uVar3;
  long lVar4;
  long lVar5;
  undefined8 *puVar6;
  undefined8 *puVar7;
  
  lVar4 = FUN_0012c310(param_2);
  lVar5 = FUN_0012c310(param_1);
  puVar7 = *(undefined8 **)(lVar4 + 8);
  if (puVar7 == (undefined8 *)0x0) {
    if (*(void **)(lVar5 + 8) != (void *)0x0) {
      free(*(void **)(lVar5 + 8));
    }
    *(undefined8 *)(lVar5 + 8) = 0;
  }
  else {
    puVar6 = *(undefined8 **)(lVar5 + 8);
    if (puVar6 == (undefined8 *)0x0) {
      puVar6 = (undefined8 *)xmalloc(0x20);
      *(undefined8 **)(lVar5 + 8) = puVar6;
      puVar7 = *(undefined8 **)(lVar4 + 8);
    }
    uVar3 = puVar7[1];
    *puVar6 = *puVar7;
    puVar6[1] = uVar3;
    uVar3 = puVar7[3];
    puVar6[2] = puVar7[2];
    puVar6[3] = uVar3;
  }
  lVar4 = FUN_0012c290(param_2);
  lVar5 = FUN_0012c290(param_1);
  *(undefined8 *)(lVar5 + 0x38) = *(undefined8 *)(lVar4 + 0x38);
  lVar4 = FUN_0012c290(param_1);
  bVar1 = *(byte *)(lVar4 + 0x49);
  lVar4 = FUN_0012c290(param_2);
  bVar2 = *(byte *)(lVar4 + 0x49);
  lVar4 = FUN_0012c290(param_1);
  *(byte *)(lVar4 + 0x49) = bVar2 & 0xfc | bVar1 & 3;
  return;
}

