
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_00038e30(byte *param_1,byte *param_2)

{
  int iVar1;
  
  if ((*param_1 & 1) != 0) {
    if (*(int *)(param_1 + 4) == DAT_000897ec) {
      param_1 = *(byte **)(param_1 + 0xc);
    }
    else {
      param_1 = (byte *)FUN_00038d80();
    }
  }
  iVar1 = *(int *)(param_2 + 4);
  if ((*param_2 & 1) != 0) {
    if (DAT_000897ec == iVar1) {
      param_2 = *(byte **)(param_2 + 0xc);
      iVar1 = *(int *)(param_2 + 4);
    }
    else {
      param_2 = (byte *)FUN_00038d80();
      iVar1 = *(int *)(param_2 + 4);
    }
  }
  *(uint *)(*(int *)(param_1 + 4) + 0x10) =
       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;
  FUN_00054870(param_1,param_2);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00016000
ADD EBX,0x471c4
MOV EDI,dword ptr [ESP + 0x14]
TEST byte ptr [ESI],0x1
JZ 0x00038e61
LEA EAX,[EBX + 0x97ec]
MOV EAX,dword ptr [EAX]
CMP dword ptr [ESI + 0x4],EAX
JZ 0x00038eb0
MOV EAX,ESI
CALL 0x00038d80
MOV ESI,EAX
MOV EAX,dword ptr [EDI + 0x4]
TEST byte ptr [EDI],0x1
JZ 0x00038e7f
LEA EDX,[EBX + 0x97ec]
CMP dword ptr [EDX],EAX
JZ 0x00038ea0
MOV EAX,EDI
CALL 0x00038d80
MOV EDI,EAX
MOV EAX,dword ptr [EAX + 0x4]
MOV EDX,dword ptr [ESI + 0x4]
MOV EAX,dword ptr [EAX + 0x10]
SUB ESP,0x8
AND EAX,0x410008
OR dword ptr [EDX + 0x10],EAX
PUSH EDI
PUSH ESI
CALL 0x00054870
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EDI,dword ptr [EDI + 0xc]
MOV EAX,dword ptr [EDI + 0x4]
JMP 0x00038e7f
MOV ESI,dword ptr [ESI + 0xc]
JMP 0x00038e61
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00038e30(byte *param_1,byte *param_2)\n\n{\n  int iVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }\n  }\n  *(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;\n  FUN_00054870(param_1,param_2);\n  return;\n}\n\n" comment (function_definition "void FUN_00038e30(byte *param_1,byte *param_2)\n\n{\n  int iVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }\n  }\n  *(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;\n  FUN_00054870(param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00038e30(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  int iVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }\n  }\n  *(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;\n  FUN_00054870(param_1,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\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 (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) == DAT_000897ec)" ( (binary_expression "*(int *)(param_1 + 4) == DAT_000897ec" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n    }" { (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      param_1 = (byte *)FUN_00038d80();\n    }" else (compound_statement "{\n      param_1 = (byte *)FUN_00038d80();\n    }" { (expression_statement "param_1 = (byte *)FUN_00038d80();" (assignment_expression "param_1 = (byte *)FUN_00038d80()" identifier = (cast_expression "(byte *)FUN_00038d80()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00038d80()" identifier (argument_list "()" ( ))))) ;) }))) })) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((*param_2 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\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_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }\n  }" { (if_statement "if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }" if (parenthesized_expression "(DAT_000897ec == iVar1)" ( (binary_expression "DAT_000897ec == iVar1" identifier == identifier) )) (compound_statement "{\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }" { (expression_statement "param_2 = *(byte **)(param_2 + 0xc);" (assignment_expression "param_2 = *(byte **)(param_2 + 0xc)" identifier = (pointer_expression "*(byte **)(param_2 + 0xc)" * (cast_expression "(byte **)(param_2 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }" else (compound_statement "{\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }" { (expression_statement "param_2 = (byte *)FUN_00038d80();" (assignment_expression "param_2 = (byte *)FUN_00038d80()" identifier = (cast_expression "(byte *)FUN_00038d80()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00038d80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) }))) })) (expression_statement "*(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;" (assignment_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008" (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" * (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" ( (binary_expression "*(int *)(param_1 + 4) + 0x10" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) = (binary_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008" (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" * (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" ( (binary_expression "*(int *)(param_1 + 4) + 0x10" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) | (binary_expression "*(uint *)(iVar1 + 0x10) & 0x410008" (pointer_expression "*(uint *)(iVar1 + 0x10)" * (cast_expression "(uint *)(iVar1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) & number_literal))) ;) (expression_statement "FUN_00054870(param_1,param_2);" (call_expression "FUN_00054870(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid 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" comment (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" (cast_expression "(uint)paVar2->prev" ( (type_descriptor "uint" type_identifier) ) (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_00038e30(byte *param_1,byte *param_2)\n\n{\n  int iVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }\n  }\n  *(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;\n  FUN_00054870(param_1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_00038e30(byte *param_1,byte *param_2)\n\n{\n  int iVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }\n  }\n  *(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;\n  FUN_00054870(param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00038e30(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  int iVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }\n  }\n  *(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;\n  FUN_00054870(param_1,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\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 (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) == DAT_000897ec)" ( (binary_expression "*(int *)(param_1 + 4) == DAT_000897ec" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n    }" { (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      param_1 = (byte *)FUN_00038d80();\n    }" else (compound_statement "{\n      param_1 = (byte *)FUN_00038d80();\n    }" { (expression_statement "param_1 = (byte *)FUN_00038d80();" (assignment_expression "param_1 = (byte *)FUN_00038d80()" identifier = (cast_expression "(byte *)FUN_00038d80()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00038d80()" identifier (argument_list "()" ( ))))) ;) }))) })) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((*param_2 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\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_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }\n  }" { (if_statement "if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }" if (parenthesized_expression "(DAT_000897ec == iVar1)" ( (binary_expression "DAT_000897ec == iVar1" identifier == identifier) )) (compound_statement "{\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }" { (expression_statement "param_2 = *(byte **)(param_2 + 0xc);" (assignment_expression "param_2 = *(byte **)(param_2 + 0xc)" identifier = (pointer_expression "*(byte **)(param_2 + 0xc)" * (cast_expression "(byte **)(param_2 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }" else (compound_statement "{\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }" { (expression_statement "param_2 = (byte *)FUN_00038d80();" (assignment_expression "param_2 = (byte *)FUN_00038d80()" identifier = (cast_expression "(byte *)FUN_00038d80()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00038d80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) }))) })) (expression_statement "*(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;" (assignment_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008" (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" * (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" ( (binary_expression "*(int *)(param_1 + 4) + 0x10" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) = (binary_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008" (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" * (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" ( (binary_expression "*(int *)(param_1 + 4) + 0x10" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) | (binary_expression "*(uint *)(iVar1 + 0x10) & 0x410008" (pointer_expression "*(uint *)(iVar1 + 0x10)" * (cast_expression "(uint *)(iVar1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) & number_literal))) ;) (expression_statement "FUN_00054870(param_1,param_2);" (call_expression "FUN_00054870(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 TYPE 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 TYPE (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 TYPE (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 TYPE (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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 TYPE (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_00038e30(byte *param_1,byte *param_2)\n\n{\n  int iVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }\n  }\n  *(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;\n  FUN_00054870(param_1,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00038e30(byte *param_1,byte *param_2)" (identifier "FUN_00038e30") (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  int iVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((*param_2 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }\n  }\n  *(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;\n  FUN_00054870(param_1,param_2);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\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 (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 4) == DAT_000897ec) {\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n    else {\n      param_1 = (byte *)FUN_00038d80();\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) == DAT_000897ec)" (( "(") (binary_expression "*(int *)(param_1 + 4) == DAT_000897ec" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (identifier "DAT_000897ec")) () ")")) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n    }" ({ "{") (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(byte **)(param_1 + 0xc)" (identifier "param_1") (= "=") (pointer_expression "*(byte **)(param_1 + 0xc)" (* "*") (cast_expression "(byte **)(param_1 + 0xc)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      param_1 = (byte *)FUN_00038d80();\n    }" (else "else") (compound_statement "{\n      param_1 = (byte *)FUN_00038d80();\n    }" ({ "{") (expression_statement "param_1 = (byte *)FUN_00038d80();" (assignment_expression "param_1 = (byte *)FUN_00038d80()" (identifier "param_1") (= "=") (cast_expression "(byte *)FUN_00038d80()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00038d80()" (identifier "FUN_00038d80") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((*param_2 & 1) != 0) {\n    if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\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_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }\n  }" ({ "{") (if_statement "if (DAT_000897ec == iVar1) {\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }\n    else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }" (if "if") (parenthesized_expression "(DAT_000897ec == iVar1)" (( "(") (binary_expression "DAT_000897ec == iVar1" (identifier "DAT_000897ec") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n      param_2 = *(byte **)(param_2 + 0xc);\n      iVar1 = *(int *)(param_2 + 4);\n    }" ({ "{") (expression_statement "param_2 = *(byte **)(param_2 + 0xc);" (assignment_expression "param_2 = *(byte **)(param_2 + 0xc)" (identifier "param_2") (= "=") (pointer_expression "*(byte **)(param_2 + 0xc)" (* "*") (cast_expression "(byte **)(param_2 + 0xc)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }" (else "else") (compound_statement "{\n      param_2 = (byte *)FUN_00038d80();\n      iVar1 = *(int *)(param_2 + 4);\n    }" ({ "{") (expression_statement "param_2 = (byte *)FUN_00038d80();" (assignment_expression "param_2 = (byte *)FUN_00038d80()" (identifier "param_2") (= "=") (cast_expression "(byte *)FUN_00038d80()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00038d80()" (identifier "FUN_00038d80") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")))) (} "}"))) (expression_statement "*(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;" (assignment_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10) =\n       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008" (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" (* "*") (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0x10" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008" (pointer_expression "*(uint *)(*(int *)(param_1 + 4) + 0x10)" (* "*") (cast_expression "(uint *)(*(int *)(param_1 + 4) + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0x10" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (| "|") (binary_expression "*(uint *)(iVar1 + 0x10) & 0x410008" (pointer_expression "*(uint *)(iVar1 + 0x10)" (* "*") (cast_expression "(uint *)(iVar1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "0x410008")))) (; ";")) (expression_statement "FUN_00054870(param_1,param_2);" (call_expression "FUN_00054870(param_1,param_2)" (identifier "FUN_00054870") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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: (primitive_type) 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: (primitive_type) 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: (primitive_type) 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: (primitive_type) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (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: (primitive_type) 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))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(byte *param_1,byte *param_2)

{
  int iVar1;
  
  if ((*param_1 & 1) != 0) {
    if (*(int *)(param_1 + 4) == DAT_000897ec) {
      param_1 = *(byte **)(param_1 + 0xc);
    }
    else {
      param_1 = (byte *)FUN_00038d80();
    }
  }
  iVar1 = *(int *)(param_2 + 4);
  if ((*param_2 & 1) != 0) {
    if (DAT_000897ec == iVar1) {
      param_2 = *(byte **)(param_2 + 0xc);
      iVar1 = *(int *)(param_2 + 4);
    }
    else {
      param_2 = (byte *)FUN_00038d80();
      iVar1 = *(int *)(param_2 + 4);
    }
  }
  *(uint *)(*(int *)(param_1 + 4) + 0x10) =
       *(uint *)(*(int *)(param_1 + 4) + 0x10) | *(uint *)(iVar1 + 0x10) & 0x410008;
  FUN_00054870(param_1,param_2);
  return;
}

