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

void S_SET_EXTERNAL(symbolS *s)

{
  bfd_section *pbVar1;
  char *format;
  segT paVar2;
  segT paVar3;
  
  paVar2 = (segT)s->bsym;
  if (((uint)s->sy_flags & 1) != 0) {
    if (reg_section == paVar2) {
      s = (s->sy_value).X_op_symbol;
      paVar2 = (segT)s->bsym;
    }
    else {
      s = local_symbol_convert((local_symbol *)s);
      paVar2 = (segT)s->bsym;
    }
  }
  pbVar1 = paVar2->next;
  if (((uint)pbVar1 & 0x80) != 0) {
    return;
  }
  if (((uint)pbVar1 & 0x100) != 0) {
    format = (char *)dcgettext(0,"section symbols are already global",5);
    as_warn(format);
    return;
  }
  if (((uint)s->sy_flags & 1) == 0) {
    paVar3 = paVar2;
    if (paVar2->prev == reg_section) {
LAB_00038511:
      as_bad("can\'t make register symbol `%s\' global",paVar3->id);
      return;
    }
  }
  else if ((paVar2 == reg_section) &&
          (paVar3 = (segT)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == paVar2))
  goto LAB_00038511;
  paVar2->next = (bfd_section *)((uint)pbVar1 & 0xffffff7e | 2);
  return;
}



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

void FUN_000384a0(byte *param_1)

{
  uint uVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  
  iVar3 = *(int *)(param_1 + 4);
  if ((*param_1 & 1) != 0) {
    if (DAT_00084798 == iVar3) {
      param_1 = *(byte **)(param_1 + 0xc);
      iVar3 = *(int *)(param_1 + 4);
    }
    else {
      param_1 = (byte *)FUN_000370b0();
      iVar3 = *(int *)(param_1 + 4);
    }
  }
  uVar1 = *(uint *)(iVar3 + 0xc);
  if ((uVar1 & 0x80) != 0) {
    return;
  }
  if ((uVar1 & 0x100) != 0) {
    uVar2 = dcgettext(0,"section symbols are already global",5);
    FUN_0002a8a0(uVar2);
    return;
  }
  if ((*param_1 & 1) == 0) {
    iVar4 = iVar3;
    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {
LAB_00038511:
      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));
      return;
    }
  }
  else if ((iVar3 == DAT_00084798) &&
          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))
  goto LAB_00038511;
  *(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00016020
ADD EBX,0x42b59
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [EAX + 0x4]
TEST byte ptr [EAX],0x1
JZ 0x000384ce
LEA EDX,[EBX + 0x9798]
CMP dword ptr [EDX],ECX
JZ 0x00038530
CALL 0x000370b0
MOV ECX,dword ptr [EAX + 0x4]
MOV EDX,dword ptr [ECX + 0xc]
TEST DL,0x80
JNZ 0x000384f6
TEST DH,0x1
JNZ 0x00038540
LEA ESI,[EBX + 0x9798]
MOV ESI,dword ptr [ESI]
TEST byte ptr [EAX],0x1
JNZ 0x00038500
CMP dword ptr [ECX + 0x10],ESI
JZ 0x00038511
AND DL,0x7e
OR EDX,0x2
MOV dword ptr [ECX + 0xc],EDX
ADD ESP,0x4
POP EBX
POP ESI
RET
CMP ECX,ESI
JNZ 0x000384ed
MOV EAX,dword ptr [EAX + 0xc]
MOV EAX,dword ptr [EAX + 0x4]
CMP dword ptr [EAX + 0x10],ECX
JNZ 0x000384ed
MOV ECX,EAX
SUB ESP,0x8
LEA EAX,[EBX + 0xfffe2270]
PUSH dword ptr [ECX + 0x4]
PUSH EAX
CALL 0x0002a980
ADD ESP,0x10
JMP 0x000384f6
MOV EAX,dword ptr [EAX + 0xc]
MOV ECX,dword ptr [EAX + 0x4]
JMP 0x000384ce
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe224c]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141a0
MOV dword ptr [ESP],EAX
CALL 0x0002a8a0
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000384a0(byte *param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }\n  }\n  uVar1 = *(uint *)(iVar3 + 0xc);\n  if ((uVar1 & 0x80) != 0) {\n    return;\n  }\n  if ((uVar1 & 0x100) != 0) {\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }\n  if ((*param_1 & 1) == 0) {\n    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }\n  else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;\n  *(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;\n  return;\n}\n\n" comment (function_definition "void FUN_000384a0(byte *param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }\n  }\n  uVar1 = *(uint *)(iVar3 + 0xc);\n  if ((uVar1 & 0x80) != 0) {\n    return;\n  }\n  if ((uVar1 & 0x100) != 0) {\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }\n  if ((*param_1 & 1) == 0) {\n    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }\n  else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;\n  *(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;\n  return;\n}" primitive_type (function_declarator "FUN_000384a0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }\n  }\n  uVar1 = *(uint *)(iVar3 + 0xc);\n  if ((uVar1 & 0x80) != 0) {\n    return;\n  }\n  if ((uVar1 & 0x100) != 0) {\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }\n  if ((*param_1 & 1) == 0) {\n    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }\n  else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;\n  *(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(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_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(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_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }\n  }" { (if_statement "if (DAT_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }" if (parenthesized_expression "(DAT_00084798 == iVar3)" ( (binary_expression "DAT_00084798 == iVar3" identifier == identifier) )) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(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 "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(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      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }" else (compound_statement "{\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }" { (expression_statement "param_1 = (byte *)FUN_000370b0();" (assignment_expression "param_1 = (byte *)FUN_000370b0()" identifier = (cast_expression "(byte *)FUN_000370b0()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000370b0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(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) ))))) ;) }))) })) (expression_statement "uVar1 = *(uint *)(iVar3 + 0xc);" (assignment_expression "uVar1 = *(uint *)(iVar3 + 0xc)" identifier = (pointer_expression "*(uint *)(iVar3 + 0xc)" * (cast_expression "(uint *)(iVar3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x80) != 0) {\n    return;\n  }" if (parenthesized_expression "((uVar1 & 0x80) != 0)" ( (binary_expression "(uVar1 & 0x80) != 0" (parenthesized_expression "(uVar1 & 0x80)" ( (binary_expression "uVar1 & 0x80" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if ((uVar1 & 0x100) != 0) {\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }" if (parenthesized_expression "((uVar1 & 0x100) != 0)" ( (binary_expression "(uVar1 & 0x100) != 0" (parenthesized_expression "(uVar1 & 0x100)" ( (binary_expression "uVar1 & 0x100" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }" { (expression_statement "uVar2 = dcgettext(0,"section symbols are already global",5);" (assignment_expression "uVar2 = dcgettext(0,"section symbols are already global",5)" identifier = (call_expression "dcgettext(0,"section symbols are already global",5)" identifier (argument_list "(0,"section symbols are already global",5)" ( number_literal , (string_literal ""section symbols are already global"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002a8a0(uVar2);" (call_expression "FUN_0002a8a0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if ((*param_1 & 1) == 0) {\n    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }\n  else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;" 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    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) (if_statement "if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }" if (parenthesized_expression "(*(int *)(iVar3 + 0x10) == DAT_00084798)" ( (binary_expression "*(int *)(iVar3 + 0x10) == DAT_00084798" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) == identifier) )) (compound_statement "{\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }" { (labeled_statement "LAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));" statement_identifier : (expression_statement "FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));" (call_expression "FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4))" identifier (argument_list "("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4))" ( (string_literal ""can\'t make register symbol `%s\' global"" " string_content escape_sequence string_content escape_sequence string_content ") , (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) ))) ;)) (return_statement "return;" return ;) })) }) (else_clause "else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;" else (if_statement "if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;" if (parenthesized_expression "((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))" ( (binary_expression "(iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3)" (parenthesized_expression "(iVar3 == DAT_00084798)" ( (binary_expression "iVar3 == DAT_00084798" identifier == identifier) )) && (parenthesized_expression "(iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3)" ( (comma_expression "iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 4)" ( (binary_expression "*(int *)(param_1 + 0xc) + 4" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) ))))) , (binary_expression "*(int *)(iVar4 + 0x10) == iVar3" (pointer_expression "*(int *)(iVar4 + 0x10)" * (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) == identifier)) ))) )) (goto_statement "goto LAB_00038511;" goto statement_identifier ;)))) (expression_statement "*(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;" (assignment_expression "*(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2" (pointer_expression "*(uint *)(iVar3 + 0xc)" * (cast_expression "(uint *)(iVar3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = (binary_expression "uVar1 & 0xffffff7e | 2" (binary_expression "uVar1 & 0xffffff7e" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid S_SET_EXTERNAL(symbolS *s)\n\n{\n  bfd_section *pbVar1;\n  char *format;\n  segT paVar2;\n  segT paVar3;\n  \n  paVar2 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section == paVar2) {\n      s = (s->sy_value).X_op_symbol;\n      paVar2 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)s->bsym;\n    }\n  }\n  pbVar1 = paVar2->next;\n  if (((uint)pbVar1 & 0x80) != 0) {\n    return;\n  }\n  if (((uint)pbVar1 & 0x100) != 0) {\n    format = (char *)dcgettext(0,"section symbols are already global",5);\n    as_warn(format);\n    return;\n  }\n  if (((uint)s->sy_flags & 1) == 0) {\n    paVar3 = paVar2;\n    if (paVar2->prev == reg_section) {\nLAB_00038511:\n      as_bad("can\'t make register symbol `%s\' global",paVar3->id);\n      return;\n    }\n  }\n  else if ((paVar2 == reg_section) &&\n          (paVar3 = (segT)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == paVar2))\n  goto LAB_00038511;\n  paVar2->next = (bfd_section *)((uint)pbVar1 & 0xffffff7e | 2);\n  return;\n}\n\n" comment (function_definition "void S_SET_EXTERNAL(symbolS *s)\n\n{\n  bfd_section *pbVar1;\n  char *format;\n  segT paVar2;\n  segT paVar3;\n  \n  paVar2 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section == paVar2) {\n      s = (s->sy_value).X_op_symbol;\n      paVar2 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)s->bsym;\n    }\n  }\n  pbVar1 = paVar2->next;\n  if (((uint)pbVar1 & 0x80) != 0) {\n    return;\n  }\n  if (((uint)pbVar1 & 0x100) != 0) {\n    format = (char *)dcgettext(0,"section symbols are already global",5);\n    as_warn(format);\n    return;\n  }\n  if (((uint)s->sy_flags & 1) == 0) {\n    paVar3 = paVar2;\n    if (paVar2->prev == reg_section) {\nLAB_00038511:\n      as_bad("can\'t make register symbol `%s\' global",paVar3->id);\n      return;\n    }\n  }\n  else if ((paVar2 == reg_section) &&\n          (paVar3 = (segT)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == paVar2))\n  goto LAB_00038511;\n  paVar2->next = (bfd_section *)((uint)pbVar1 & 0xffffff7e | 2);\n  return;\n}" primitive_type (function_declarator "S_SET_EXTERNAL(symbolS *s)" identifier (parameter_list "(symbolS *s)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  bfd_section *pbVar1;\n  char *format;\n  segT paVar2;\n  segT paVar3;\n  \n  paVar2 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) != 0) {\n    if (reg_section == paVar2) {\n      s = (s->sy_value).X_op_symbol;\n      paVar2 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)s->bsym;\n    }\n  }\n  pbVar1 = paVar2->next;\n  if (((uint)pbVar1 & 0x80) != 0) {\n    return;\n  }\n  if (((uint)pbVar1 & 0x100) != 0) {\n    format = (char *)dcgettext(0,"section symbols are already global",5);\n    as_warn(format);\n    return;\n  }\n  if (((uint)s->sy_flags & 1) == 0) {\n    paVar3 = paVar2;\n    if (paVar2->prev == reg_section) {\nLAB_00038511:\n      as_bad("can\'t make register symbol `%s\' global",paVar3->id);\n      return;\n    }\n  }\n  else if ((paVar2 == reg_section) &&\n          (paVar3 = (segT)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == paVar2))\n  goto LAB_00038511;\n  paVar2->next = (bfd_section *)((uint)pbVar1 & 0xffffff7e | 2);\n  return;\n}" { (declaration "bfd_section *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "segT paVar2;" type_identifier identifier ;) (declaration "segT paVar3;" 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      s = (s->sy_value).X_op_symbol;\n      paVar2 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)s->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      s = (s->sy_value).X_op_symbol;\n      paVar2 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)s->bsym;\n    }\n  }" { (if_statement "if (reg_section == paVar2) {\n      s = (s->sy_value).X_op_symbol;\n      paVar2 = (segT)s->bsym;\n    }\n    else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)s->bsym;\n    }" if (parenthesized_expression "(reg_section == paVar2)" ( (binary_expression "reg_section == paVar2" identifier == identifier) )) (compound_statement "{\n      s = (s->sy_value).X_op_symbol;\n      paVar2 = (segT)s->bsym;\n    }" { (expression_statement "s = (s->sy_value).X_op_symbol;" (assignment_expression "s = (s->sy_value).X_op_symbol" identifier = (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_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))) ;) }) (else_clause "else {\n      s = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)s->bsym;\n    }" else (compound_statement "{\n      s = local_symbol_convert((local_symbol *)s);\n      paVar2 = (segT)s->bsym;\n    }" { (expression_statement "s = local_symbol_convert((local_symbol *)s);" (assignment_expression "s = 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)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))) ;) }))) })) (expression_statement "pbVar1 = paVar2->next;" (assignment_expression "pbVar1 = paVar2->next" identifier = (field_expression "paVar2->next" identifier -> field_identifier)) ;) (if_statement "if (((uint)pbVar1 & 0x80) != 0) {\n    return;\n  }" if (parenthesized_expression "(((uint)pbVar1 & 0x80) != 0)" ( (binary_expression "((uint)pbVar1 & 0x80) != 0" (parenthesized_expression "((uint)pbVar1 & 0x80)" ( (binary_expression "(uint)pbVar1 & 0x80" (cast_expression "(uint)pbVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (((uint)pbVar1 & 0x100) != 0) {\n    format = (char *)dcgettext(0,"section symbols are already global",5);\n    as_warn(format);\n    return;\n  }" if (parenthesized_expression "(((uint)pbVar1 & 0x100) != 0)" ( (binary_expression "((uint)pbVar1 & 0x100) != 0" (parenthesized_expression "((uint)pbVar1 & 0x100)" ( (binary_expression "(uint)pbVar1 & 0x100" (cast_expression "(uint)pbVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    format = (char *)dcgettext(0,"section symbols are already global",5);\n    as_warn(format);\n    return;\n  }" { (expression_statement "format = (char *)dcgettext(0,"section symbols are already global",5);" (assignment_expression "format = (char *)dcgettext(0,"section symbols are already global",5)" identifier = (cast_expression "(char *)dcgettext(0,"section symbols are already global",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"section symbols are already global",5)" identifier (argument_list "(0,"section symbols are already global",5)" ( number_literal , (string_literal ""section symbols are already global"" " string_content ") , number_literal ))))) ;) (expression_statement "as_warn(format);" (call_expression "as_warn(format)" identifier (argument_list "(format)" ( identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (((uint)s->sy_flags & 1) == 0) {\n    paVar3 = paVar2;\n    if (paVar2->prev == reg_section) {\nLAB_00038511:\n      as_bad("can\'t make register symbol `%s\' global",paVar3->id);\n      return;\n    }\n  }\n  else if ((paVar2 == reg_section) &&\n          (paVar3 = (segT)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == paVar2))\n  goto LAB_00038511;" 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    paVar3 = paVar2;\n    if (paVar2->prev == reg_section) {\nLAB_00038511:\n      as_bad("can\'t make register symbol `%s\' global",paVar3->id);\n      return;\n    }\n  }" { (expression_statement "paVar3 = paVar2;" (assignment_expression "paVar3 = paVar2" identifier = identifier) ;) (if_statement "if (paVar2->prev == reg_section) {\nLAB_00038511:\n      as_bad("can\'t make register symbol `%s\' global",paVar3->id);\n      return;\n    }" if (parenthesized_expression "(paVar2->prev == reg_section)" ( (binary_expression "paVar2->prev == reg_section" (field_expression "paVar2->prev" identifier -> field_identifier) == identifier) )) (compound_statement "{\nLAB_00038511:\n      as_bad("can\'t make register symbol `%s\' global",paVar3->id);\n      return;\n    }" { (labeled_statement "LAB_00038511:\n      as_bad("can\'t make register symbol `%s\' global",paVar3->id);" statement_identifier : (expression_statement "as_bad("can\'t make register symbol `%s\' global",paVar3->id);" (call_expression "as_bad("can\'t make register symbol `%s\' global",paVar3->id)" identifier (argument_list "("can\'t make register symbol `%s\' global",paVar3->id)" ( (string_literal ""can\'t make register symbol `%s\' global"" " string_content escape_sequence string_content escape_sequence string_content ") , (field_expression "paVar3->id" identifier -> field_identifier) ))) ;)) (return_statement "return;" return ;) })) }) (else_clause "else if ((paVar2 == reg_section) &&\n          (paVar3 = (segT)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == paVar2))\n  goto LAB_00038511;" else (if_statement "if ((paVar2 == reg_section) &&\n          (paVar3 = (segT)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == paVar2))\n  goto LAB_00038511;" if (parenthesized_expression "((paVar2 == reg_section) &&\n          (paVar3 = (segT)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == paVar2))" ( (binary_expression "(paVar2 == reg_section) &&\n          (paVar3 = (segT)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == paVar2)" (parenthesized_expression "(paVar2 == reg_section)" ( (binary_expression "paVar2 == reg_section" identifier == identifier) )) && (parenthesized_expression "(paVar3 = (segT)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == paVar2)" ( (comma_expression "paVar3 = (segT)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == paVar2" (assignment_expression "paVar3 = (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)) , (binary_expression "paVar3->prev == paVar2" (field_expression "paVar3->prev" identifier -> field_identifier) == identifier)) ))) )) (goto_statement "goto LAB_00038511;" goto statement_identifier ;)))) (expression_statement "paVar2->next = (bfd_section *)((uint)pbVar1 & 0xffffff7e | 2);" (assignment_expression "paVar2->next = (bfd_section *)((uint)pbVar1 & 0xffffff7e | 2)" (field_expression "paVar2->next" identifier -> field_identifier) = (cast_expression "(bfd_section *)((uint)pbVar1 & 0xffffff7e | 2)" ( (type_descriptor "bfd_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)pbVar1 & 0xffffff7e | 2)" ( (binary_expression "(uint)pbVar1 & 0xffffff7e | 2" (binary_expression "(uint)pbVar1 & 0xffffff7e" (cast_expression "(uint)pbVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) | number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000384a0(byte *param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }\n  }\n  uVar1 = *(uint *)(iVar3 + 0xc);\n  if ((uVar1 & 0x80) != 0) {\n    return;\n  }\n  if ((uVar1 & 0x100) != 0) {\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }\n  if ((*param_1 & 1) == 0) {\n    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }\n  else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;\n  *(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;\n  return;\n}\n\n" (function_definition "void FUN_000384a0(byte *param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }\n  }\n  uVar1 = *(uint *)(iVar3 + 0xc);\n  if ((uVar1 & 0x80) != 0) {\n    return;\n  }\n  if ((uVar1 & 0x100) != 0) {\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }\n  if ((*param_1 & 1) == 0) {\n    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }\n  else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;\n  *(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;\n  return;\n}" primitive_type (function_declarator "FUN_000384a0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }\n  }\n  uVar1 = *(uint *)(iVar3 + 0xc);\n  if ((uVar1 & 0x80) != 0) {\n    return;\n  }\n  if ((uVar1 & 0x100) != 0) {\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }\n  if ((*param_1 & 1) == 0) {\n    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }\n  else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;\n  *(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(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_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(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_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }\n  }" { (if_statement "if (DAT_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }" if (parenthesized_expression "(DAT_00084798 == iVar3)" ( (binary_expression "DAT_00084798 == iVar3" identifier == identifier) )) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(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 "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(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      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }" else (compound_statement "{\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }" { (expression_statement "param_1 = (byte *)FUN_000370b0();" (assignment_expression "param_1 = (byte *)FUN_000370b0()" identifier = (cast_expression "(byte *)FUN_000370b0()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000370b0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(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) ))))) ;) }))) })) (expression_statement "uVar1 = *(uint *)(iVar3 + 0xc);" (assignment_expression "uVar1 = *(uint *)(iVar3 + 0xc)" identifier = (pointer_expression "*(uint *)(iVar3 + 0xc)" * (cast_expression "(uint *)(iVar3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x80) != 0) {\n    return;\n  }" if (parenthesized_expression "((uVar1 & 0x80) != 0)" ( (binary_expression "(uVar1 & 0x80) != 0" (parenthesized_expression "(uVar1 & 0x80)" ( (binary_expression "uVar1 & 0x80" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if ((uVar1 & 0x100) != 0) {\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }" if (parenthesized_expression "((uVar1 & 0x100) != 0)" ( (binary_expression "(uVar1 & 0x100) != 0" (parenthesized_expression "(uVar1 & 0x100)" ( (binary_expression "uVar1 & 0x100" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }" { (expression_statement "uVar2 = dcgettext(0,"section symbols are already global",5);" (assignment_expression "uVar2 = dcgettext(0,"section symbols are already global",5)" identifier = (call_expression "dcgettext(0,"section symbols are already global",5)" identifier (argument_list "(0,"section symbols are already global",5)" ( number_literal , (string_literal ""section symbols are already global"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002a8a0(uVar2);" (call_expression "FUN_0002a8a0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if ((*param_1 & 1) == 0) {\n    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }\n  else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;" 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    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) (if_statement "if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }" if (parenthesized_expression "(*(int *)(iVar3 + 0x10) == DAT_00084798)" ( (binary_expression "*(int *)(iVar3 + 0x10) == DAT_00084798" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) == identifier) )) (compound_statement "{\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }" { (labeled_statement "LAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));" statement_identifier : (expression_statement "FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));" (call_expression "FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4))" identifier (argument_list "("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4))" ( (string_literal ""can\'t make register symbol `%s\' global"" " string_content escape_sequence string_content escape_sequence string_content ") , (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) ))) ;)) (return_statement "return;" return ;) })) }) (else_clause "else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;" else (if_statement "if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;" if (parenthesized_expression "((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))" ( (binary_expression "(iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3)" (parenthesized_expression "(iVar3 == DAT_00084798)" ( (binary_expression "iVar3 == DAT_00084798" identifier == identifier) )) && (parenthesized_expression "(iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3)" ( (comma_expression "iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 4)" ( (binary_expression "*(int *)(param_1 + 0xc) + 4" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) ))))) , (binary_expression "*(int *)(iVar4 + 0x10) == iVar3" (pointer_expression "*(int *)(iVar4 + 0x10)" * (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) == identifier)) ))) )) (goto_statement "goto LAB_00038511;" goto statement_identifier ;)))) (expression_statement "*(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;" (assignment_expression "*(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2" (pointer_expression "*(uint *)(iVar3 + 0xc)" * (cast_expression "(uint *)(iVar3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = (binary_expression "uVar1 & 0xffffff7e | 2" (binary_expression "uVar1 & 0xffffff7e" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 { (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 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 IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (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 { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;)) (return_statement return ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (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) )))) == IDENT)) ))) )) (goto_statement goto statement_identifier ;)))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_000384a0(byte *param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }\n  }\n  uVar1 = *(uint *)(iVar3 + 0xc);\n  if ((uVar1 & 0x80) != 0) {\n    return;\n  }\n  if ((uVar1 & 0x100) != 0) {\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }\n  if ((*param_1 & 1) == 0) {\n    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }\n  else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;\n  *(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000384a0(byte *param_1)" (identifier "FUN_000384a0") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if ((*param_1 & 1) != 0) {\n    if (DAT_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }\n  }\n  uVar1 = *(uint *)(iVar3 + 0xc);\n  if ((uVar1 & 0x80) != 0) {\n    return;\n  }\n  if ((uVar1 & 0x100) != 0) {\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }\n  if ((*param_1 & 1) == 0) {\n    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }\n  else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;\n  *(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" (identifier "iVar3") (= "=") (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_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(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_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }\n  }" ({ "{") (if_statement "if (DAT_00084798 == iVar3) {\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(int *)(param_1 + 4);\n    }\n    else {\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }" (if "if") (parenthesized_expression "(DAT_00084798 == iVar3)" (( "(") (binary_expression "DAT_00084798 == iVar3" (identifier "DAT_00084798") (== "==") (identifier "iVar3")) () ")")) (compound_statement "{\n      param_1 = *(byte **)(param_1 + 0xc);\n      iVar3 = *(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 "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" (identifier "iVar3") (= "=") (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      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }" (else "else") (compound_statement "{\n      param_1 = (byte *)FUN_000370b0();\n      iVar3 = *(int *)(param_1 + 4);\n    }" ({ "{") (expression_statement "param_1 = (byte *)FUN_000370b0();" (assignment_expression "param_1 = (byte *)FUN_000370b0()" (identifier "param_1") (= "=") (cast_expression "(byte *)FUN_000370b0()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000370b0()" (identifier "FUN_000370b0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" (identifier "iVar3") (= "=") (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")) () ")"))))) (; ";")) (} "}")))) (} "}"))) (expression_statement "uVar1 = *(uint *)(iVar3 + 0xc);" (assignment_expression "uVar1 = *(uint *)(iVar3 + 0xc)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(iVar3 + 0xc)" (* "*") (cast_expression "(uint *)(iVar3 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if ((uVar1 & 0x80) != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x80) != 0)" (( "(") (binary_expression "(uVar1 & 0x80) != 0" (parenthesized_expression "(uVar1 & 0x80)" (( "(") (binary_expression "uVar1 & 0x80" (identifier "uVar1") (& "&") (number_literal "0x80")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((uVar1 & 0x100) != 0) {\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x100) != 0)" (( "(") (binary_expression "(uVar1 & 0x100) != 0" (parenthesized_expression "(uVar1 & 0x100)" (( "(") (binary_expression "uVar1 & 0x100" (identifier "uVar1") (& "&") (number_literal "0x100")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = dcgettext(0,"section symbols are already global",5);\n    FUN_0002a8a0(uVar2);\n    return;\n  }" ({ "{") (expression_statement "uVar2 = dcgettext(0,"section symbols are already global",5);" (assignment_expression "uVar2 = dcgettext(0,"section symbols are already global",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"section symbols are already global",5)" (identifier "dcgettext") (argument_list "(0,"section symbols are already global",5)" (( "(") (number_literal "0") (, ",") (string_literal ""section symbols are already global"" (" """) (string_content "section symbols are already global") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002a8a0(uVar2);" (call_expression "FUN_0002a8a0(uVar2)" (identifier "FUN_0002a8a0") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((*param_1 & 1) == 0) {\n    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }\n  else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;" (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    iVar4 = iVar3;\n    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (*(int *)(iVar3 + 0x10) == DAT_00084798) {\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0x10) == DAT_00084798)" (( "(") (binary_expression "*(int *)(iVar3 + 0x10) == DAT_00084798" (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (identifier "DAT_00084798")) () ")")) (compound_statement "{\nLAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));\n      return;\n    }" ({ "{") (labeled_statement "LAB_00038511:\n      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));" (statement_identifier "LAB_00038511") (: ":") (expression_statement "FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));" (call_expression "FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4))" (identifier "FUN_0002a980") (argument_list "("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4))" (( "(") (string_literal ""can\'t make register symbol `%s\' global"" (" """) (string_content "can") (escape_sequence "\'") (string_content "t make register symbol `%s") (escape_sequence "\'") (string_content " global") (" """)) (, ",") (pointer_expression "*(undefined4 *)(iVar4 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;" (else "else") (if_statement "if ((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))\n  goto LAB_00038511;" (if "if") (parenthesized_expression "((iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))" (( "(") (binary_expression "(iVar3 == DAT_00084798) &&\n          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3)" (parenthesized_expression "(iVar3 == DAT_00084798)" (( "(") (binary_expression "iVar3 == DAT_00084798" (identifier "iVar3") (== "==") (identifier "DAT_00084798")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3)" (( "(") (comma_expression "iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0xc) + 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0xc) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0xc) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) + 4" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (, ",") (binary_expression "*(int *)(iVar4 + 0x10) == iVar3" (pointer_expression "*(int *)(iVar4 + 0x10)" (* "*") (cast_expression "(int *)(iVar4 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (identifier "iVar3"))) () ")"))) () ")")) (goto_statement "goto LAB_00038511;" (goto "goto") (statement_identifier "LAB_00038511") (; ";"))))) (expression_statement "*(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;" (assignment_expression "*(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2" (pointer_expression "*(uint *)(iVar3 + 0xc)" (* "*") (cast_expression "(uint *)(iVar3 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "uVar1 & 0xffffff7e | 2" (binary_expression "uVar1 & 0xffffff7e" (identifier "uVar1") (& "&") (number_literal "0xffffff7e")) (| "|") (number_literal "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 *s)

{
  type_2 *pbVar1;
  char *format;
  type_3 var_2;
  type_3 paVar3;
  
  var_2 = (type_3)s->bsym;
  if (((type_4)s->sy_flags & 1) != 0) {
    if (var_1 == var_2) {
      s = (s->sy_value).X_op_symbol;
      var_2 = (type_3)s->bsym;
    }
    else {
      s = var_3((type_5 *)s);
      var_2 = (type_3)s->bsym;
    }
  }
  pbVar1 = var_2->next;
  if (((type_4)pbVar1 & 0x80) != 0) {
    return;
  }
  if (((type_4)pbVar1 & 0x100) != 0) {
    format = (char *)var_4(0,"section symbols are already global",5);
    var_5(format);
    return;
  }
  if (((type_4)s->sy_flags & 1) == 0) {
    paVar3 = var_2;
    if (var_2->prev == var_1) {
LAB_00038511:
      var_6("can\'t make register symbol `%s\' global",paVar3->id);
      return;
    }
  }
  else if ((var_2 == var_1) &&
          (paVar3 = (type_3)((s->sy_value).X_op_symbol)->bsym, paVar3->prev == var_2))
  goto LAB_00038511;
  var_2->next = (type_2 *)((type_4)pbVar1 & 0xffffff7e | 2);
  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))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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 (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: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (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 (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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 (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content)) (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))))))))) (return_statement)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (comma_expression left: (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: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (return_statement))))

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

void MASKED(byte *param_1)

{
  uint uVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  
  iVar3 = *(int *)(param_1 + 4);
  if ((*param_1 & 1) != 0) {
    if (DAT_00084798 == iVar3) {
      param_1 = *(byte **)(param_1 + 0xc);
      iVar3 = *(int *)(param_1 + 4);
    }
    else {
      param_1 = (byte *)FUN_000370b0();
      iVar3 = *(int *)(param_1 + 4);
    }
  }
  uVar1 = *(uint *)(iVar3 + 0xc);
  if ((uVar1 & 0x80) != 0) {
    return;
  }
  if ((uVar1 & 0x100) != 0) {
    uVar2 = dcgettext(0,"section symbols are already global",5);
    FUN_0002a8a0(uVar2);
    return;
  }
  if ((*param_1 & 1) == 0) {
    iVar4 = iVar3;
    if (*(int *)(iVar3 + 0x10) == DAT_00084798) {
LAB_00038511:
      FUN_0002a980("can\'t make register symbol `%s\' global",*(undefined4 *)(iVar4 + 4));
      return;
    }
  }
  else if ((iVar3 == DAT_00084798) &&
          (iVar4 = *(int *)(*(int *)(param_1 + 0xc) + 4), *(int *)(iVar4 + 0x10) == iVar3))
  goto LAB_00038511;
  *(uint *)(iVar3 + 0xc) = uVar1 & 0xffffff7e | 2;
  return;
}

