
void copy_symbol_attributes(symbolS *dest,symbolS *src)

{
  flagword *pfVar1;
  segT paVar2;
  
  if (((uint)dest->sy_flags & 1) != 0) {
    if ((segT)dest->bsym == reg_section) {
      dest = (dest->sy_value).X_op_symbol;
    }
    else {
      dest = local_symbol_convert((local_symbol *)dest);
    }
  }
  paVar2 = (segT)src->bsym;
  if (((uint)src->sy_flags & 1) != 0) {
    if (reg_section == paVar2) {
      src = (src->sy_value).X_op_symbol;
      paVar2 = (segT)src->bsym;
    }
    else {
      src = local_symbol_convert((local_symbol *)src);
      paVar2 = (segT)src->bsym;
    }
  }
  pfVar1 = &dest->bsym->flags;
  *pfVar1 = *pfVar1 | *(uint *)&paVar2->prev & 0x410008;
  elf_copy_symbol_attributes(dest,src);
  return;
}



void FUN_0012d510(byte *param_1,byte *param_2)

{
  long lVar1;
  
  if ((*param_1 & 1) != 0) {
    if (*(long *)(param_1 + 8) == DAT_00185518) {
      param_1 = *(byte **)(param_1 + 0x18);
    }
    else {
      param_1 = (byte *)FUN_0012d470();
    }
  }
  lVar1 = *(long *)(param_2 + 8);
  if ((*param_2 & 1) != 0) {
    if (DAT_00185518 == lVar1) {
      param_2 = *(byte **)(param_2 + 0x18);
      lVar1 = *(long *)(param_2 + 8);
    }
    else {
      param_2 = (byte *)FUN_0012d470(param_2);
      lVar1 = *(long *)(param_2 + 8);
    }
  }
  *(uint *)(*(long *)(param_1 + 8) + 0x18) =
       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;
  FUN_00140450(param_1,param_2);
  return;
}


PUSH RBX
MOV RBX,RDI
SUB RSP,0x10
TEST byte ptr [RDI],0x1
JZ 0x0012d53c
MOV RAX,qword ptr [0x00185518]
CMP qword ptr [RDI + 0x8],RAX
JZ 0x0012d590
MOV qword ptr [RSP + 0x8],RSI
CALL 0x0012d470
MOV RSI,qword ptr [RSP + 0x8]
MOV RBX,RAX
MOV RAX,qword ptr [RSI + 0x8]
TEST byte ptr [RSI],0x1
JZ 0x0012d55d
CMP qword ptr [0x00185518],RAX
JZ 0x0012d580
MOV RDI,RSI
CALL 0x0012d470
MOV RSI,RAX
MOV RAX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RBX + 0x8]
MOV EAX,dword ptr [RAX + 0x18]
MOV RDI,RBX
AND EAX,0x410008
OR dword ptr [RDX + 0x18],EAX
ADD RSP,0x10
POP RBX
JMP 0x00140450
MOV RSI,qword ptr [RSI + 0x18]
MOV RAX,qword ptr [RSI + 0x8]
JMP 0x0012d55d
MOV RBX,qword ptr [RDI + 0x18]
JMP 0x0012d53c
(translation_unit "void FUN_0012d510(byte *param_1,byte *param_2)\n\n{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }\n  lVar1 = *(long *)(param_2 + 8);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }\n  *(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;\n  FUN_00140450(param_1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_0012d510(byte *param_1,byte *param_2)\n\n{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }\n  lVar1 = *(long *)(param_2 + 8);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }\n  *(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;\n  FUN_00140450(param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0012d510(byte *param_1,byte *param_2)" identifier (parameter_list "(byte *param_1,byte *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }\n  lVar1 = *(long *)(param_2 + 8);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }\n  *(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;\n  FUN_00140450(param_1,param_2);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }" { (if_statement "if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }" if (parenthesized_expression "(*(long *)(param_1 + 8) == DAT_00185518)" ( (binary_expression "*(long *)(param_1 + 8) == DAT_00185518" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0x18);\n    }" { (expression_statement "param_1 = *(byte **)(param_1 + 0x18);" (assignment_expression "param_1 = *(byte **)(param_1 + 0x18)" identifier = (pointer_expression "*(byte **)(param_1 + 0x18)" * (cast_expression "(byte **)(param_1 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      param_1 = (byte *)FUN_0012d470();\n    }" else (compound_statement "{\n      param_1 = (byte *)FUN_0012d470();\n    }" { (expression_statement "param_1 = (byte *)FUN_0012d470();" (assignment_expression "param_1 = (byte *)FUN_0012d470()" identifier = (cast_expression "(byte *)FUN_0012d470()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0012d470()" identifier (argument_list "()" ( ))))) ;) }))) })) (expression_statement "lVar1 = *(long *)(param_2 + 8);" (assignment_expression "lVar1 = *(long *)(param_2 + 8)" identifier = (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((*param_2 & 1) != 0) {\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }" if (parenthesized_expression "((*param_2 & 1) != 0)" ( (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" ( (binary_expression "*param_2 & 1" (pointer_expression "*param_2" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }" { (if_statement "if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }" if (parenthesized_expression "(DAT_00185518 == lVar1)" ( (binary_expression "DAT_00185518 == lVar1" identifier == identifier) )) (compound_statement "{\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }" { (expression_statement "param_2 = *(byte **)(param_2 + 0x18);" (assignment_expression "param_2 = *(byte **)(param_2 + 0x18)" identifier = (pointer_expression "*(byte **)(param_2 + 0x18)" * (cast_expression "(byte **)(param_2 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = *(long *)(param_2 + 8);" (assignment_expression "lVar1 = *(long *)(param_2 + 8)" identifier = (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }" else (compound_statement "{\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }" { (expression_statement "param_2 = (byte *)FUN_0012d470(param_2);" (assignment_expression "param_2 = (byte *)FUN_0012d470(param_2)" identifier = (cast_expression "(byte *)FUN_0012d470(param_2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0012d470(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "lVar1 = *(long *)(param_2 + 8);" (assignment_expression "lVar1 = *(long *)(param_2 + 8)" identifier = (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) }))) })) (expression_statement "*(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;" (assignment_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008" (pointer_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18)" * (cast_expression "(uint *)(*(long *)(param_1 + 8) + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 8) + 0x18)" ( (binary_expression "*(long *)(param_1 + 8) + 0x18" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) = (binary_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008" (pointer_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18)" * (cast_expression "(uint *)(*(long *)(param_1 + 8) + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 8) + 0x18)" ( (binary_expression "*(long *)(param_1 + 8) + 0x18" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) | (binary_expression "*(uint *)(lVar1 + 0x18) & 0x410008" (pointer_expression "*(uint *)(lVar1 + 0x18)" * (cast_expression "(uint *)(lVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) & number_literal))) ;) (expression_statement "FUN_00140450(param_1,param_2);" (call_expression "FUN_00140450(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void copy_symbol_attributes(symbolS *dest,symbolS *src)\n\n{\n  flagword *pfVar1;\n  segT paVar2;\n  \n  if (((uint)dest->sy_flags & 1) != 0) {\n    if ((segT)dest->bsym == reg_section) {\n      dest = (dest->sy_value).X_op_symbol;\n    }\n    else {\n      dest = local_symbol_convert((local_symbol *)dest);\n    }\n  }\n  paVar2 = (segT)src->bsym;\n  if (((uint)src->sy_flags & 1) != 0) {\n    if (reg_section == paVar2) {\n      src = (src->sy_value).X_op_symbol;\n      paVar2 = (segT)src->bsym;\n    }\n    else {\n      src = local_symbol_convert((local_symbol *)src);\n      paVar2 = (segT)src->bsym;\n    }\n  }\n  pfVar1 = &dest->bsym->flags;\n  *pfVar1 = *pfVar1 | *(uint *)&paVar2->prev & 0x410008;\n  elf_copy_symbol_attributes(dest,src);\n  return;\n}\n\n" (function_definition "void copy_symbol_attributes(symbolS *dest,symbolS *src)\n\n{\n  flagword *pfVar1;\n  segT paVar2;\n  \n  if (((uint)dest->sy_flags & 1) != 0) {\n    if ((segT)dest->bsym == reg_section) {\n      dest = (dest->sy_value).X_op_symbol;\n    }\n    else {\n      dest = local_symbol_convert((local_symbol *)dest);\n    }\n  }\n  paVar2 = (segT)src->bsym;\n  if (((uint)src->sy_flags & 1) != 0) {\n    if (reg_section == paVar2) {\n      src = (src->sy_value).X_op_symbol;\n      paVar2 = (segT)src->bsym;\n    }\n    else {\n      src = local_symbol_convert((local_symbol *)src);\n      paVar2 = (segT)src->bsym;\n    }\n  }\n  pfVar1 = &dest->bsym->flags;\n  *pfVar1 = *pfVar1 | *(uint *)&paVar2->prev & 0x410008;\n  elf_copy_symbol_attributes(dest,src);\n  return;\n}" primitive_type (function_declarator "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  flagword *pfVar1;\n  segT paVar2;\n  \n  if (((uint)dest->sy_flags & 1) != 0) {\n    if ((segT)dest->bsym == reg_section) {\n      dest = (dest->sy_value).X_op_symbol;\n    }\n    else {\n      dest = local_symbol_convert((local_symbol *)dest);\n    }\n  }\n  paVar2 = (segT)src->bsym;\n  if (((uint)src->sy_flags & 1) != 0) {\n    if (reg_section == paVar2) {\n      src = (src->sy_value).X_op_symbol;\n      paVar2 = (segT)src->bsym;\n    }\n    else {\n      src = local_symbol_convert((local_symbol *)src);\n      paVar2 = (segT)src->bsym;\n    }\n  }\n  pfVar1 = &dest->bsym->flags;\n  *pfVar1 = *pfVar1 | *(uint *)&paVar2->prev & 0x410008;\n  elf_copy_symbol_attributes(dest,src);\n  return;\n}" { (declaration "flagword *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "segT paVar2;" type_identifier identifier ;) (if_statement "if (((uint)dest->sy_flags & 1) != 0) {\n    if ((segT)dest->bsym == reg_section) {\n      dest = (dest->sy_value).X_op_symbol;\n    }\n    else {\n      dest = local_symbol_convert((local_symbol *)dest);\n    }\n  }" if (parenthesized_expression "(((uint)dest->sy_flags & 1) != 0)" ( (binary_expression "((uint)dest->sy_flags & 1) != 0" (parenthesized_expression "((uint)dest->sy_flags & 1)" ( (binary_expression "(uint)dest->sy_flags & 1" (cast_expression "(uint)dest->sy_flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "dest->sy_flags" identifier -> field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n    if ((segT)dest->bsym == reg_section) {\n      dest = (dest->sy_value).X_op_symbol;\n    }\n    else {\n      dest = local_symbol_convert((local_symbol *)dest);\n    }\n  }" { (if_statement "if ((segT)dest->bsym == reg_section) {\n      dest = (dest->sy_value).X_op_symbol;\n    }\n    else {\n      dest = local_symbol_convert((local_symbol *)dest);\n    }" if (parenthesized_expression "((segT)dest->bsym == reg_section)" ( (binary_expression "(segT)dest->bsym == reg_section" (cast_expression "(segT)dest->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "dest->bsym" identifier -> field_identifier)) == identifier) )) (compound_statement "{\n      dest = (dest->sy_value).X_op_symbol;\n    }" { (expression_statement "dest = (dest->sy_value).X_op_symbol;" (assignment_expression "dest = (dest->sy_value).X_op_symbol" identifier = (field_expression "(dest->sy_value).X_op_symbol" (parenthesized_expression "(dest->sy_value)" ( (field_expression "dest->sy_value" identifier -> field_identifier) )) . field_identifier)) ;) }) (else_clause "else {\n      dest = local_symbol_convert((local_symbol *)dest);\n    }" else (compound_statement "{\n      dest = local_symbol_convert((local_symbol *)dest);\n    }" { (expression_statement "dest = local_symbol_convert((local_symbol *)dest);" (assignment_expression "dest = local_symbol_convert((local_symbol *)dest)" identifier = (call_expression "local_symbol_convert((local_symbol *)dest)" identifier (argument_list "((local_symbol *)dest)" ( (cast_expression "(local_symbol *)dest" ( (type_descriptor "local_symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) }))) })) (expression_statement "paVar2 = (segT)src->bsym;" (assignment_expression "paVar2 = (segT)src->bsym" identifier = (cast_expression "(segT)src->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "src->bsym" identifier -> field_identifier))) ;) (if_statement "if (((uint)src->sy_flags & 1) != 0) {\n    if (reg_section == paVar2) {\n      src = (src->sy_value).X_op_symbol;\n      paVar2 = (segT)src->bsym;\n    }\n    else {\n      src = local_symbol_convert((local_symbol *)src);\n      paVar2 = (segT)src->bsym;\n    }\n  }" if (parenthesized_expression "(((uint)src->sy_flags & 1) != 0)" ( (binary_expression "((uint)src->sy_flags & 1) != 0" (parenthesized_expression "((uint)src->sy_flags & 1)" ( (binary_expression "(uint)src->sy_flags & 1" (cast_expression "(uint)src->sy_flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "src->sy_flags" identifier -> field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (reg_section == paVar2) {\n      src = (src->sy_value).X_op_symbol;\n      paVar2 = (segT)src->bsym;\n    }\n    else {\n      src = local_symbol_convert((local_symbol *)src);\n      paVar2 = (segT)src->bsym;\n    }\n  }" { (if_statement "if (reg_section == paVar2) {\n      src = (src->sy_value).X_op_symbol;\n      paVar2 = (segT)src->bsym;\n    }\n    else {\n      src = local_symbol_convert((local_symbol *)src);\n      paVar2 = (segT)src->bsym;\n    }" if (parenthesized_expression "(reg_section == paVar2)" ( (binary_expression "reg_section == paVar2" identifier == identifier) )) (compound_statement "{\n      src = (src->sy_value).X_op_symbol;\n      paVar2 = (segT)src->bsym;\n    }" { (expression_statement "src = (src->sy_value).X_op_symbol;" (assignment_expression "src = (src->sy_value).X_op_symbol" identifier = (field_expression "(src->sy_value).X_op_symbol" (parenthesized_expression "(src->sy_value)" ( (field_expression "src->sy_value" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "paVar2 = (segT)src->bsym;" (assignment_expression "paVar2 = (segT)src->bsym" identifier = (cast_expression "(segT)src->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "src->bsym" identifier -> field_identifier))) ;) }) (else_clause "else {\n      src = local_symbol_convert((local_symbol *)src);\n      paVar2 = (segT)src->bsym;\n    }" else (compound_statement "{\n      src = local_symbol_convert((local_symbol *)src);\n      paVar2 = (segT)src->bsym;\n    }" { (expression_statement "src = local_symbol_convert((local_symbol *)src);" (assignment_expression "src = local_symbol_convert((local_symbol *)src)" identifier = (call_expression "local_symbol_convert((local_symbol *)src)" identifier (argument_list "((local_symbol *)src)" ( (cast_expression "(local_symbol *)src" ( (type_descriptor "local_symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "paVar2 = (segT)src->bsym;" (assignment_expression "paVar2 = (segT)src->bsym" identifier = (cast_expression "(segT)src->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "src->bsym" identifier -> field_identifier))) ;) }))) })) (expression_statement "pfVar1 = &dest->bsym->flags;" (assignment_expression "pfVar1 = &dest->bsym->flags" identifier = (pointer_expression "&dest->bsym->flags" & (field_expression "dest->bsym->flags" (field_expression "dest->bsym" identifier -> field_identifier) -> field_identifier))) ;) (expression_statement "*pfVar1 = *pfVar1 | *(uint *)&paVar2->prev & 0x410008;" (assignment_expression "*pfVar1 = *pfVar1 | *(uint *)&paVar2->prev & 0x410008" (pointer_expression "*pfVar1" * identifier) = (binary_expression "*pfVar1 | *(uint *)&paVar2->prev & 0x410008" (pointer_expression "*pfVar1" * identifier) | (binary_expression "*(uint *)&paVar2->prev & 0x410008" (pointer_expression "*(uint *)&paVar2->prev" * (cast_expression "(uint *)&paVar2->prev" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&paVar2->prev" & (field_expression "paVar2->prev" identifier -> field_identifier)))) & number_literal))) ;) (expression_statement "elf_copy_symbol_attributes(dest,src);" (call_expression "elf_copy_symbol_attributes(dest,src)" identifier (argument_list "(dest,src)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0012d510(byte *param_1,byte *param_2)\n\n{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }\n  lVar1 = *(long *)(param_2 + 8);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }\n  *(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;\n  FUN_00140450(param_1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_0012d510(byte *param_1,byte *param_2)\n\n{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }\n  lVar1 = *(long *)(param_2 + 8);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }\n  *(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;\n  FUN_00140450(param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0012d510(byte *param_1,byte *param_2)" identifier (parameter_list "(byte *param_1,byte *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }\n  lVar1 = *(long *)(param_2 + 8);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }\n  *(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;\n  FUN_00140450(param_1,param_2);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }" { (if_statement "if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }" if (parenthesized_expression "(*(long *)(param_1 + 8) == DAT_00185518)" ( (binary_expression "*(long *)(param_1 + 8) == DAT_00185518" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0x18);\n    }" { (expression_statement "param_1 = *(byte **)(param_1 + 0x18);" (assignment_expression "param_1 = *(byte **)(param_1 + 0x18)" identifier = (pointer_expression "*(byte **)(param_1 + 0x18)" * (cast_expression "(byte **)(param_1 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      param_1 = (byte *)FUN_0012d470();\n    }" else (compound_statement "{\n      param_1 = (byte *)FUN_0012d470();\n    }" { (expression_statement "param_1 = (byte *)FUN_0012d470();" (assignment_expression "param_1 = (byte *)FUN_0012d470()" identifier = (cast_expression "(byte *)FUN_0012d470()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0012d470()" identifier (argument_list "()" ( ))))) ;) }))) })) (expression_statement "lVar1 = *(long *)(param_2 + 8);" (assignment_expression "lVar1 = *(long *)(param_2 + 8)" identifier = (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((*param_2 & 1) != 0) {\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }" if (parenthesized_expression "((*param_2 & 1) != 0)" ( (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" ( (binary_expression "*param_2 & 1" (pointer_expression "*param_2" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }" { (if_statement "if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }" if (parenthesized_expression "(DAT_00185518 == lVar1)" ( (binary_expression "DAT_00185518 == lVar1" identifier == identifier) )) (compound_statement "{\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }" { (expression_statement "param_2 = *(byte **)(param_2 + 0x18);" (assignment_expression "param_2 = *(byte **)(param_2 + 0x18)" identifier = (pointer_expression "*(byte **)(param_2 + 0x18)" * (cast_expression "(byte **)(param_2 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = *(long *)(param_2 + 8);" (assignment_expression "lVar1 = *(long *)(param_2 + 8)" identifier = (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }" else (compound_statement "{\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }" { (expression_statement "param_2 = (byte *)FUN_0012d470(param_2);" (assignment_expression "param_2 = (byte *)FUN_0012d470(param_2)" identifier = (cast_expression "(byte *)FUN_0012d470(param_2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0012d470(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "lVar1 = *(long *)(param_2 + 8);" (assignment_expression "lVar1 = *(long *)(param_2 + 8)" identifier = (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) }))) })) (expression_statement "*(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;" (assignment_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008" (pointer_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18)" * (cast_expression "(uint *)(*(long *)(param_1 + 8) + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 8) + 0x18)" ( (binary_expression "*(long *)(param_1 + 8) + 0x18" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) = (binary_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008" (pointer_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18)" * (cast_expression "(uint *)(*(long *)(param_1 + 8) + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 8) + 0x18)" ( (binary_expression "*(long *)(param_1 + 8) + 0x18" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) | (binary_expression "*(uint *)(lVar1 + 0x18) & 0x410008" (pointer_expression "*(uint *)(lVar1 + 0x18)" * (cast_expression "(uint *)(lVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) & number_literal))) ;) (expression_statement "FUN_00140450(param_1,param_2);" (call_expression "FUN_00140450(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (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) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) }))) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (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) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) | (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0012d510(byte *param_1,byte *param_2)\n\n{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }\n  lVar1 = *(long *)(param_2 + 8);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }\n  *(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;\n  FUN_00140450(param_1,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0012d510(byte *param_1,byte *param_2)" (identifier "FUN_0012d510") (parameter_list "(byte *param_1,byte *param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }\n  lVar1 = *(long *)(param_2 + 8);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }\n  *(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;\n  FUN_00140450(param_1,param_2);\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }" (if "if") (parenthesized_expression "((*param_1 & 1) != 0)" (( "(") (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" (( "(") (binary_expression "*param_1 & 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }\n  }" ({ "{") (if_statement "if (*(long *)(param_1 + 8) == DAT_00185518) {\n      param_1 = *(byte **)(param_1 + 0x18);\n    }\n    else {\n      param_1 = (byte *)FUN_0012d470();\n    }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 8) == DAT_00185518)" (( "(") (binary_expression "*(long *)(param_1 + 8) == DAT_00185518" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (identifier "DAT_00185518")) () ")")) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0x18);\n    }" ({ "{") (expression_statement "param_1 = *(byte **)(param_1 + 0x18);" (assignment_expression "param_1 = *(byte **)(param_1 + 0x18)" (identifier "param_1") (= "=") (pointer_expression "*(byte **)(param_1 + 0x18)" (* "*") (cast_expression "(byte **)(param_1 + 0x18)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      param_1 = (byte *)FUN_0012d470();\n    }" (else "else") (compound_statement "{\n      param_1 = (byte *)FUN_0012d470();\n    }" ({ "{") (expression_statement "param_1 = (byte *)FUN_0012d470();" (assignment_expression "param_1 = (byte *)FUN_0012d470()" (identifier "param_1") (= "=") (cast_expression "(byte *)FUN_0012d470()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0012d470()" (identifier "FUN_0012d470") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}")))) (} "}"))) (expression_statement "lVar1 = *(long *)(param_2 + 8);" (assignment_expression "lVar1 = *(long *)(param_2 + 8)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_2 + 8)" (* "*") (cast_expression "(long *)(param_2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if ((*param_2 & 1) != 0) {\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }" (if "if") (parenthesized_expression "((*param_2 & 1) != 0)" (( "(") (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" (( "(") (binary_expression "*param_2 & 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n  }" ({ "{") (if_statement "if (DAT_00185518 == lVar1) {\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }\n    else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }" (if "if") (parenthesized_expression "(DAT_00185518 == lVar1)" (( "(") (binary_expression "DAT_00185518 == lVar1" (identifier "DAT_00185518") (== "==") (identifier "lVar1")) () ")")) (compound_statement "{\n      param_2 = *(byte **)(param_2 + 0x18);\n      lVar1 = *(long *)(param_2 + 8);\n    }" ({ "{") (expression_statement "param_2 = *(byte **)(param_2 + 0x18);" (assignment_expression "param_2 = *(byte **)(param_2 + 0x18)" (identifier "param_2") (= "=") (pointer_expression "*(byte **)(param_2 + 0x18)" (* "*") (cast_expression "(byte **)(param_2 + 0x18)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "lVar1 = *(long *)(param_2 + 8);" (assignment_expression "lVar1 = *(long *)(param_2 + 8)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_2 + 8)" (* "*") (cast_expression "(long *)(param_2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }" (else "else") (compound_statement "{\n      param_2 = (byte *)FUN_0012d470(param_2);\n      lVar1 = *(long *)(param_2 + 8);\n    }" ({ "{") (expression_statement "param_2 = (byte *)FUN_0012d470(param_2);" (assignment_expression "param_2 = (byte *)FUN_0012d470(param_2)" (identifier "param_2") (= "=") (cast_expression "(byte *)FUN_0012d470(param_2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0012d470(param_2)" (identifier "FUN_0012d470") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "lVar1 = *(long *)(param_2 + 8);" (assignment_expression "lVar1 = *(long *)(param_2 + 8)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_2 + 8)" (* "*") (cast_expression "(long *)(param_2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")))) (} "}"))) (expression_statement "*(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;" (assignment_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18) =\n       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008" (pointer_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18)" (* "*") (cast_expression "(uint *)(*(long *)(param_1 + 8) + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 8) + 0x18)" (( "(") (binary_expression "*(long *)(param_1 + 8) + 0x18" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008" (pointer_expression "*(uint *)(*(long *)(param_1 + 8) + 0x18)" (* "*") (cast_expression "(uint *)(*(long *)(param_1 + 8) + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 8) + 0x18)" (( "(") (binary_expression "*(long *)(param_1 + 8) + 0x18" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x18")) () ")")))) (| "|") (binary_expression "*(uint *)(lVar1 + 0x18) & 0x410008" (pointer_expression "*(uint *)(lVar1 + 0x18)" (* "*") (cast_expression "(uint *)(lVar1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x18)" (( "(") (binary_expression "lVar1 + 0x18" (identifier "lVar1") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "0x410008")))) (; ";")) (expression_statement "FUN_00140450(param_1,param_2);" (call_expression "FUN_00140450(param_1,param_2)" (identifier "FUN_00140450") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *dest,type_1 *src)

{
  type_2 *pfVar1;
  type_3 var_3;
  
  if (((type_4)dest->sy_flags & 1) != 0) {
    if ((type_3)dest->bsym == var_1) {
      dest = (dest->sy_value).X_op_symbol;
    }
    else {
      dest = var_2((type_5 *)dest);
    }
  }
  var_3 = (type_3)src->bsym;
  if (((type_4)src->sy_flags & 1) != 0) {
    if (var_1 == var_3) {
      src = (src->sy_value).X_op_symbol;
      var_3 = (type_3)src->bsym;
    }
    else {
      src = var_2((type_5 *)src);
      var_3 = (type_3)src->bsym;
    }
  }
  pfVar1 = &dest->bsym->flags;
  *pfVar1 = *pfVar1 | *(type_4 *)&var_3->prev & 0x410008;
  var_4(dest,src);
  return;
}


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

void MASKED(byte *param_1,byte *param_2)

{
  long lVar1;
  
  if ((*param_1 & 1) != 0) {
    if (*(long *)(param_1 + 8) == DAT_00185518) {
      param_1 = *(byte **)(param_1 + 0x18);
    }
    else {
      param_1 = (byte *)FUN_0012d470();
    }
  }
  lVar1 = *(long *)(param_2 + 8);
  if ((*param_2 & 1) != 0) {
    if (DAT_00185518 == lVar1) {
      param_2 = *(byte **)(param_2 + 0x18);
      lVar1 = *(long *)(param_2 + 8);
    }
    else {
      param_2 = (byte *)FUN_0012d470(param_2);
      lVar1 = *(long *)(param_2 + 8);
    }
  }
  *(uint *)(*(long *)(param_1 + 8) + 0x18) =
       *(uint *)(*(long *)(param_1 + 8) + 0x18) | *(uint *)(lVar1 + 0x18) & 0x410008;
  FUN_00140450(param_1,param_2);
  return;
}

