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

void S_SET_SEGMENT(symbolS *s,segT seg)

{
  symbolS *psVar1;
  segT paVar2;
  
  paVar2 = (segT)s->bsym;
  if (((uint)s->sy_flags & 1) != 0) {
    if (reg_section == paVar2) {
      paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;
    }
    else {
      if (reg_section != seg) {
        s->bsym = (asymbol *)seg;
        return;
      }
      psVar1 = local_symbol_convert((local_symbol *)s);
      paVar2 = (segT)psVar1->bsym;
    }
  }
  if (((uint)paVar2->prev & 0x100) == 0) {
    paVar2->flags = (flagword)seg;
  }
  else if ((segT)paVar2->flags != seg) {
                    /* WARNING: Subroutine does not return */
    as_abort("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT");
  }
  return;
}



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

void FUN_00038690(byte *param_1,int param_2)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if ((*param_1 & 1) != 0) {
    if (DAT_00077d90 == iVar1) {
      param_1 = *(byte **)(param_1 + 0xc);
      iVar1 = *(int *)(param_1 + 4);
    }
    else {
      if (DAT_00077d90 != param_2) {
        *(int *)(param_1 + 4) = param_2;
        return;
      }
      param_1 = (byte *)FUN_00038910();
      iVar1 = *(int *)(param_1 + 4);
    }
  }
  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {
    *(int *)(iVar1 + 0x14) = param_2;
  }
  else if (*(int *)(iVar1 + 0x14) != param_2) {
                    /* WARNING: Subroutine does not return */
    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00016090
ADD EBX,0x36969
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [EAX + 0x4]
TEST byte ptr [EAX],0x1
JZ 0x000386d6
LEA ECX,[EBX + 0x8d90]
MOV ECX,dword ptr [ECX]
CMP ECX,EDX
JZ 0x000386d0
CMP ECX,ESI
JZ 0x00038710
MOV dword ptr [EAX + 0x4],ESI
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,dword ptr [EAX + 0xc]
MOV EDX,dword ptr [EAX + 0x4]
TEST byte ptr [EDX + 0x11],0x1
JNZ 0x000386e8
MOV dword ptr [EDX + 0x14],ESI
ADD ESP,0x4
POP EBX
POP ESI
RET
CMP dword ptr [EDX + 0x14],ESI
JZ 0x000386df
PUSH EAX
LEA EAX,[EBX + 0xfffe537c]
PUSH EAX
LEA EAX,[EBX + 0xfffe4ce8]
PUSH 0x8c5
PUSH EAX
CALL 0x0002be50
CALL 0x00038910
MOV EDX,dword ptr [EAX + 0x4]
JMP 0x000386d6
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00038690(byte *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(int *)(iVar1 + 0x14) = param_2;\n  }\n  else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00038690(byte *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(int *)(iVar1 + 0x14) = param_2;\n  }\n  else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00038690(byte *param_1,int param_2)" identifier (parameter_list "(byte *param_1,int param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(int *)(iVar1 + 0x14) = param_2;\n  }\n  else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\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 (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }" { (if_statement "if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }" if (parenthesized_expression "(DAT_00077d90 == iVar1)" ( (binary_expression "DAT_00077d90 == iVar1" identifier == identifier) )) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\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) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) }) (else_clause "else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }" else (compound_statement "{\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }" { (if_statement "if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }" if (parenthesized_expression "(DAT_00077d90 != param_2)" ( (binary_expression "DAT_00077d90 != param_2" identifier != identifier) )) (compound_statement "{\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }" { (expression_statement "*(int *)(param_1 + 4) = param_2;" (assignment_expression "*(int *)(param_1 + 4) = param_2" (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) ;) (return_statement "return;" return ;) })) (expression_statement "param_1 = (byte *)FUN_00038910();" (assignment_expression "param_1 = (byte *)FUN_00038910()" identifier = (cast_expression "(byte *)FUN_00038910()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00038910()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) }))) })) (if_statement "if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(int *)(iVar1 + 0x14) = param_2;\n  }\n  else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x11) & 1) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x11) & 1) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x11) & 1)" ( (binary_expression "*(byte *)(iVar1 + 0x11) & 1" (pointer_expression "*(byte *)(iVar1 + 0x11)" * (cast_expression "(byte *)(iVar1 + 0x11)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x11)" ( (binary_expression "iVar1 + 0x11" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(int *)(iVar1 + 0x14) = param_2;\n  }" { (expression_statement "*(int *)(iVar1 + 0x14) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x14) = param_2" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" else (if_statement "if (*(int *)(iVar1 + 0x14) != param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x14) != param_2)" ( (binary_expression "*(int *)(iVar1 + 0x14) != param_2" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" { comment (expression_statement "FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);" (call_expression "FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1)" identifier (argument_list "("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1)" ( (string_literal ""../../gas/symbols.c"" " string_content ") , number_literal , (string_literal ""S_SET_SEGMENT"" " string_content ") , identifier ))) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid S_SET_SEGMENT(symbolS *s,segT seg)\n\n{\n  symbolS *psVar1;\n  segT paVar2;\n  \n  paVar2 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section == paVar2) {\n      paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\n    }\n    else {\n      if (reg_section != seg) {\n        s->bsym = (asymbol *)seg;\n        return;\n      }\n      psVar1 = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)psVar1->bsym;\n    }\n  }\n  if (((uint)paVar2->prev & 0x100) == 0) {\n    paVar2->flags = (flagword)seg;\n  }\n  else if ((segT)paVar2->flags != seg) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT");\n  }\n  return;\n}\n\n" comment (function_definition "void S_SET_SEGMENT(symbolS *s,segT seg)\n\n{\n  symbolS *psVar1;\n  segT paVar2;\n  \n  paVar2 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section == paVar2) {\n      paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\n    }\n    else {\n      if (reg_section != seg) {\n        s->bsym = (asymbol *)seg;\n        return;\n      }\n      psVar1 = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)psVar1->bsym;\n    }\n  }\n  if (((uint)paVar2->prev & 0x100) == 0) {\n    paVar2->flags = (flagword)seg;\n  }\n  else if ((segT)paVar2->flags != seg) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT");\n  }\n  return;\n}" primitive_type (function_declarator "S_SET_SEGMENT(symbolS *s,segT seg)" identifier (parameter_list "(symbolS *s,segT seg)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "segT seg" type_identifier identifier) ))) (compound_statement "{\n  symbolS *psVar1;\n  segT paVar2;\n  \n  paVar2 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section == paVar2) {\n      paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\n    }\n    else {\n      if (reg_section != seg) {\n        s->bsym = (asymbol *)seg;\n        return;\n      }\n      psVar1 = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)psVar1->bsym;\n    }\n  }\n  if (((uint)paVar2->prev & 0x100) == 0) {\n    paVar2->flags = (flagword)seg;\n  }\n  else if ((segT)paVar2->flags != seg) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT");\n  }\n  return;\n}" { (declaration "symbolS *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "segT paVar2;" type_identifier identifier ;) (expression_statement "paVar2 = (segT)s->bsym;" (assignment_expression "paVar2 = (segT)s->bsym" identifier = (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier))) ;) (if_statement "if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section == paVar2) {\n      paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\n    }\n    else {\n      if (reg_section != seg) {\n        s->bsym = (asymbol *)seg;\n        return;\n      }\n      psVar1 = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)psVar1->bsym;\n    }\n  }" if (parenthesized_expression "(((uint)s->sy_flags & 1) != 0)" ( (binary_expression "((uint)s->sy_flags & 1) != 0" (parenthesized_expression "((uint)s->sy_flags & 1)" ( (binary_expression "(uint)s->sy_flags & 1" (cast_expression "(uint)s->sy_flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "s->sy_flags" identifier -> field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (reg_section == paVar2) {\n      paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\n    }\n    else {\n      if (reg_section != seg) {\n        s->bsym = (asymbol *)seg;\n        return;\n      }\n      psVar1 = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)psVar1->bsym;\n    }\n  }" { (if_statement "if (reg_section == paVar2) {\n      paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\n    }\n    else {\n      if (reg_section != seg) {\n        s->bsym = (asymbol *)seg;\n        return;\n      }\n      psVar1 = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)psVar1->bsym;\n    }" if (parenthesized_expression "(reg_section == paVar2)" ( (binary_expression "reg_section == paVar2" identifier == identifier) )) (compound_statement "{\n      paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;\n    }" { (expression_statement "paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym;" (assignment_expression "paVar2 = (segT)((s->sy_value).X_op_symbol)->bsym" identifier = (field_expression "(segT)((s->sy_value).X_op_symbol)->bsym" (call_expression "(segT)((s->sy_value).X_op_symbol)" (parenthesized_expression "(segT)" ( identifier )) (argument_list "((s->sy_value).X_op_symbol)" ( (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) ))) -> field_identifier)) ;) }) (else_clause "else {\n      if (reg_section != seg) {\n        s->bsym = (asymbol *)seg;\n        return;\n      }\n      psVar1 = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)psVar1->bsym;\n    }" else (compound_statement "{\n      if (reg_section != seg) {\n        s->bsym = (asymbol *)seg;\n        return;\n      }\n      psVar1 = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)psVar1->bsym;\n    }" { (if_statement "if (reg_section != seg) {\n        s->bsym = (asymbol *)seg;\n        return;\n      }" if (parenthesized_expression "(reg_section != seg)" ( (binary_expression "reg_section != seg" identifier != identifier) )) (compound_statement "{\n        s->bsym = (asymbol *)seg;\n        return;\n      }" { (expression_statement "s->bsym = (asymbol *)seg;" (assignment_expression "s->bsym = (asymbol *)seg" (field_expression "s->bsym" identifier -> field_identifier) = (cast_expression "(asymbol *)seg" ( (type_descriptor "asymbol *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "psVar1 = local_symbol_convert((local_symbol *)s);" (assignment_expression "psVar1 = local_symbol_convert((local_symbol *)s)" identifier = (call_expression "local_symbol_convert((local_symbol *)s)" identifier (argument_list "((local_symbol *)s)" ( (cast_expression "(local_symbol *)s" ( (type_descriptor "local_symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "paVar2 = (segT)psVar1->bsym;" (assignment_expression "paVar2 = (segT)psVar1->bsym" identifier = (cast_expression "(segT)psVar1->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "psVar1->bsym" identifier -> field_identifier))) ;) }))) })) (if_statement "if (((uint)paVar2->prev & 0x100) == 0) {\n    paVar2->flags = (flagword)seg;\n  }\n  else if ((segT)paVar2->flags != seg) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT");\n  }" if (parenthesized_expression "(((uint)paVar2->prev & 0x100) == 0)" ( (binary_expression "((uint)paVar2->prev & 0x100) == 0" (parenthesized_expression "((uint)paVar2->prev & 0x100)" ( (binary_expression "(uint)paVar2->prev & 0x100" (cast_expression "(uint)paVar2->prev" ( (type_descriptor "uint" type_identifier) ) (field_expression "paVar2->prev" identifier -> field_identifier)) & number_literal) )) == number_literal) )) (compound_statement "{\n    paVar2->flags = (flagword)seg;\n  }" { (expression_statement "paVar2->flags = (flagword)seg;" (assignment_expression "paVar2->flags = (flagword)seg" (field_expression "paVar2->flags" identifier -> field_identifier) = (cast_expression "(flagword)seg" ( (type_descriptor "flagword" type_identifier) ) identifier)) ;) }) (else_clause "else if ((segT)paVar2->flags != seg) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT");\n  }" else (if_statement "if ((segT)paVar2->flags != seg) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT");\n  }" if (parenthesized_expression "((segT)paVar2->flags != seg)" ( (binary_expression "(segT)paVar2->flags != seg" (cast_expression "(segT)paVar2->flags" ( (type_descriptor "segT" type_identifier) ) (field_expression "paVar2->flags" identifier -> field_identifier)) != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT");\n  }" { comment (expression_statement "as_abort("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT");" (call_expression "as_abort("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT")" identifier (argument_list "("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT")" ( (string_literal ""../../gas/symbols.c"" " string_content ") , number_literal , (string_literal ""S_SET_SEGMENT"" " string_content ") ))) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00038690(byte *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(int *)(iVar1 + 0x14) = param_2;\n  }\n  else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00038690(byte *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(int *)(iVar1 + 0x14) = param_2;\n  }\n  else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00038690(byte *param_1,int param_2)" identifier (parameter_list "(byte *param_1,int param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(int *)(iVar1 + 0x14) = param_2;\n  }\n  else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\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 (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }" { (if_statement "if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }" if (parenthesized_expression "(DAT_00077d90 == iVar1)" ( (binary_expression "DAT_00077d90 == iVar1" identifier == identifier) )) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\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) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) }) (else_clause "else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }" else (compound_statement "{\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }" { (if_statement "if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }" if (parenthesized_expression "(DAT_00077d90 != param_2)" ( (binary_expression "DAT_00077d90 != param_2" identifier != identifier) )) (compound_statement "{\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }" { (expression_statement "*(int *)(param_1 + 4) = param_2;" (assignment_expression "*(int *)(param_1 + 4) = param_2" (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) ;) (return_statement "return;" return ;) })) (expression_statement "param_1 = (byte *)FUN_00038910();" (assignment_expression "param_1 = (byte *)FUN_00038910()" identifier = (cast_expression "(byte *)FUN_00038910()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00038910()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) }))) })) (if_statement "if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(int *)(iVar1 + 0x14) = param_2;\n  }\n  else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x11) & 1) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x11) & 1) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x11) & 1)" ( (binary_expression "*(byte *)(iVar1 + 0x11) & 1" (pointer_expression "*(byte *)(iVar1 + 0x11)" * (cast_expression "(byte *)(iVar1 + 0x11)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x11)" ( (binary_expression "iVar1 + 0x11" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(int *)(iVar1 + 0x14) = param_2;\n  }" { (expression_statement "*(int *)(iVar1 + 0x14) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x14) = param_2" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" else (if_statement "if (*(int *)(iVar1 + 0x14) != param_2) {\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x14) != param_2)" ( (binary_expression "*(int *)(iVar1 + 0x14) != param_2" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" { (expression_statement "FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);" (call_expression "FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1)" identifier (argument_list "("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1)" ( (string_literal ""../../gas/symbols.c"" " string_content ") , number_literal , (string_literal ""S_SET_SEGMENT"" " string_content ") , identifier ))) ;) })))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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 { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))) (return_statement return ;) })))
(function_definition "void FUN_00038690(byte *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(int *)(iVar1 + 0x14) = param_2;\n  }\n  else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00038690(byte *param_1,int param_2)" (identifier "FUN_00038690") (parameter_list "(byte *param_1,int param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }\n  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(int *)(iVar1 + 0x14) = param_2;\n  }\n  else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if ((*param_1 & 1) != 0) {\n    if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\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 (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }\n  }" ({ "{") (if_statement "if (DAT_00077d90 == iVar1) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\n    }\n    else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }" (if "if") (parenthesized_expression "(DAT_00077d90 == iVar1)" (( "(") (binary_expression "DAT_00077d90 == iVar1" (identifier "DAT_00077d90") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar1 = *(int *)(param_1 + 4);\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")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }" (else "else") (compound_statement "{\n      if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }\n      param_1 = (byte *)FUN_00038910();\n      iVar1 = *(int *)(param_1 + 4);\n    }" ({ "{") (if_statement "if (DAT_00077d90 != param_2) {\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }" (if "if") (parenthesized_expression "(DAT_00077d90 != param_2)" (( "(") (binary_expression "DAT_00077d90 != param_2" (identifier "DAT_00077d90") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n        *(int *)(param_1 + 4) = param_2;\n        return;\n      }" ({ "{") (expression_statement "*(int *)(param_1 + 4) = param_2;" (assignment_expression "*(int *)(param_1 + 4) = param_2" (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 "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_1 = (byte *)FUN_00038910();" (assignment_expression "param_1 = (byte *)FUN_00038910()" (identifier "param_1") (= "=") (cast_expression "(byte *)FUN_00038910()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00038910()" (identifier "FUN_00038910") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (} "}")))) (} "}"))) (if_statement "if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {\n    *(int *)(iVar1 + 0x14) = param_2;\n  }\n  else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" (if "if") (parenthesized_expression "((*(byte *)(iVar1 + 0x11) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0x11) & 1) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x11) & 1)" (( "(") (binary_expression "*(byte *)(iVar1 + 0x11) & 1" (pointer_expression "*(byte *)(iVar1 + 0x11)" (* "*") (cast_expression "(byte *)(iVar1 + 0x11)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x11)" (( "(") (binary_expression "iVar1 + 0x11" (identifier "iVar1") (+ "+") (number_literal "0x11")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(int *)(iVar1 + 0x14) = param_2;\n  }" ({ "{") (expression_statement "*(int *)(iVar1 + 0x14) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x14) = param_2" (pointer_expression "*(int *)(iVar1 + 0x14)" (* "*") (cast_expression "(int *)(iVar1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}")) (else_clause "else if (*(int *)(iVar1 + 0x14) != param_2) {\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" (else "else") (if_statement "if (*(int *)(iVar1 + 0x14) != param_2) {\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x14) != param_2)" (( "(") (binary_expression "*(int *)(iVar1 + 0x14) != param_2" (pointer_expression "*(int *)(iVar1 + 0x14)" (* "*") (cast_expression "(int *)(iVar1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n                    \n    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);\n  }" ({ "{") (expression_statement "FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);" (call_expression "FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1)" (identifier "FUN_0002be50") (argument_list "("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1)" (( "(") (string_literal ""../../gas/symbols.c"" (" """) (string_content "../../gas/symbols.c") (" """)) (, ",") (number_literal "0x8c5") (, ",") (string_literal ""S_SET_SEGMENT"" (" """) (string_content "S_SET_SEGMENT") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *s,type_2 var_3)

{
  type_1 *psVar1;
  type_2 var_2;
  
  var_2 = (type_2)s->bsym;
  if (((type_3)s->sy_flags & 1) != 0) {
    if (var_1 == var_2) {
      var_2 = (type_2)((s->sy_value).X_op_symbol)->bsym;
    }
    else {
      if (var_1 != var_3) {
        s->bsym = (type_4 *)var_3;
        return;
      }
      psVar1 = var_4((type_5 *)s);
      var_2 = (type_2)psVar1->bsym;
    }
  }
  if (((type_3)var_2->prev & 0x100) == 0) {
    var_2->flags = (type_6)var_3;
  }
  else if ((type_2)var_2->flags != var_3) {
                    /* WARNING: Subroutine does not return */
    var_5("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT");
  }
  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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_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))) (return_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: (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))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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)))) alternative: (else_clause (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 (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))))) (return_statement))))

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

void MASKED(byte *param_1,int param_2)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if ((*param_1 & 1) != 0) {
    if (DAT_00077d90 == iVar1) {
      param_1 = *(byte **)(param_1 + 0xc);
      iVar1 = *(int *)(param_1 + 4);
    }
    else {
      if (DAT_00077d90 != param_2) {
        *(int *)(param_1 + 4) = param_2;
        return;
      }
      param_1 = (byte *)FUN_00038910();
      iVar1 = *(int *)(param_1 + 4);
    }
  }
  if ((*(byte *)(iVar1 + 0x11) & 1) == 0) {
    *(int *)(iVar1 + 0x14) = param_2;
  }
  else if (*(int *)(iVar1 + 0x14) != param_2) {
                    /* WARNING: Subroutine does not return */
    FUN_0002be50("../../gas/symbols.c",0x8c5,"S_SET_SEGMENT",param_1);
  }
  return;
}

