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

segT subseg_get(char *segname,int force_new)

{
  char *__s1;
  int iVar1;
  segT paVar2;
  void *pvVar3;
  
  paVar2 = now_seg;
  if (((now_seg == (segT)0x0) || (__s1 = now_seg->name, force_new != 0)) || (__s1 == (char *)0x0)) {
    if (force_new != 0) {
      paVar2 = (segT)bfd_make_section_anyway(stdoutput,segname);
      if (paVar2->userdata != (void *)0x0) {
        return paVar2;
      }
      goto LAB_0003c205;
    }
  }
  else {
    if (__s1 == segname) {
      return now_seg;
    }
    iVar1 = strcmp(__s1,segname);
    if (iVar1 == 0) {
      return paVar2;
    }
  }
  paVar2 = (segT)bfd_make_section_old_way(stdoutput,segname);
  if (paVar2->userdata != (void *)0x0) {
    return paVar2;
  }
LAB_0003c205:
  paVar2->output_section = paVar2;
  pvVar3 = (void *)xcalloc(1,0x34);
  *(segT *)((int)pvVar3 + 0x20) = paVar2;
  paVar2->userdata = pvVar3;
  return paVar2;
}



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

undefined4 * FUN_0003c170(char *param_1,int param_2)

{
  char *__s1;
  int iVar1;
  undefined4 *puVar2;
  
  puVar2 = DAT_0008137c;
  if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||
     (__s1 == (char *)0x0)) {
    if (param_2 != 0) {
      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);
      if (puVar2[0x20] != 0) {
        return puVar2;
      }
      goto LAB_0003c205;
    }
  }
  else {
    if (__s1 == param_1) {
      return DAT_0008137c;
    }
    iVar1 = strcmp(__s1,param_1);
    if (iVar1 == 0) {
      return puVar2;
    }
  }
  puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);
  if (puVar2[0x20] != 0) {
    return puVar2;
  }
LAB_0003c205:
  puVar2[0x15] = puVar2;
  iVar1 = xcalloc(1,0x34);
  *(undefined4 **)(iVar1 + 0x20) = puVar2;
  puVar2[0x20] = iVar1;
  return puVar2;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00016070
ADD EBX,0x3be84
MOV EDX,dword ptr [ESP + 0x14]
LEA EAX,[EBX + 0x937c]
MOV ESI,dword ptr [EAX]
TEST ESI,ESI
JZ 0x0003c1e0
MOV EAX,dword ptr [ESI]
TEST EDX,EDX
JNZ 0x0003c1e0
TEST EAX,EAX
JZ 0x0003c1e0
CMP EAX,EDI
JZ 0x0003c1d2
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x00014090
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0003c1d2
LEA EAX,[EBX + 0x9544]
MOV EAX,dword ptr [EAX]
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x000140c0
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [ESI + 0x80]
TEST EAX,EAX
JZ 0x0003c205
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0x9544]
MOV EAX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x0003c1b9
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x000145f0
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [ESI + 0x80]
TEST EAX,EAX
JNZ 0x0003c1d2
SUB ESP,0x8
MOV dword ptr [ESI + 0x54],ESI
PUSH 0x34
PUSH 0x1
CALL 0x000147b0
ADD ESP,0x10
MOV dword ptr [EAX + 0x20],ESI
MOV dword ptr [ESI + 0x80],EAX
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_0003c170(char *param_1,int param_2)\n\n{\n  char *__s1;\n  int iVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = DAT_0008137c;\n  if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)) {\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }\n  puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);\n  if (puVar2[0x20] != 0) {\n    return puVar2;\n  }\nLAB_0003c205:\n  puVar2[0x15] = puVar2;\n  iVar1 = xcalloc(1,0x34);\n  *(undefined4 **)(iVar1 + 0x20) = puVar2;\n  puVar2[0x20] = iVar1;\n  return puVar2;\n}\n\n" comment (function_definition "undefined4 * FUN_0003c170(char *param_1,int param_2)\n\n{\n  char *__s1;\n  int iVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = DAT_0008137c;\n  if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)) {\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }\n  puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);\n  if (puVar2[0x20] != 0) {\n    return puVar2;\n  }\nLAB_0003c205:\n  puVar2[0x15] = puVar2;\n  iVar1 = xcalloc(1,0x34);\n  *(undefined4 **)(iVar1 + 0x20) = puVar2;\n  puVar2[0x20] = iVar1;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_0003c170(char *param_1,int param_2)" * (function_declarator "FUN_0003c170(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  char *__s1;\n  int iVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = DAT_0008137c;\n  if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)) {\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }\n  puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);\n  if (puVar2[0x20] != 0) {\n    return puVar2;\n  }\nLAB_0003c205:\n  puVar2[0x15] = puVar2;\n  iVar1 = xcalloc(1,0x34);\n  *(undefined4 **)(iVar1 + 0x20) = puVar2;\n  puVar2[0x20] = iVar1;\n  return puVar2;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = DAT_0008137c;" (assignment_expression "puVar2 = DAT_0008137c" identifier = identifier) ;) (if_statement "if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)) {\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }" if (parenthesized_expression "(((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0))" ( (binary_expression "((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)" (parenthesized_expression "((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0))" ( (binary_expression "(DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)" (parenthesized_expression "(DAT_0008137c == (undefined4 *)0x0)" ( (binary_expression "DAT_0008137c == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(__s1 = (char *)*DAT_0008137c, param_2 != 0)" ( (comma_expression "__s1 = (char *)*DAT_0008137c, param_2 != 0" (assignment_expression "__s1 = (char *)*DAT_0008137c" identifier = (cast_expression "(char *)*DAT_0008137c" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_0008137c" * identifier))) , (binary_expression "param_2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }" { (if_statement "if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }" { (expression_statement "puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);" (assignment_expression "puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1)" identifier = (cast_expression "(undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_make_section_anyway(DAT_00081544,param_1)" identifier (argument_list "(DAT_00081544,param_1)" ( identifier , identifier ))))) ;) (if_statement "if (puVar2[0x20] != 0) {\n        return puVar2;\n      }" if (parenthesized_expression "(puVar2[0x20] != 0)" ( (binary_expression "puVar2[0x20] != 0" (subscript_expression "puVar2[0x20]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        return puVar2;\n      }" { (return_statement "return puVar2;" return identifier ;) })) (goto_statement "goto LAB_0003c205;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }" else (compound_statement "{\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }" { (if_statement "if (__s1 == param_1) {\n      return DAT_0008137c;\n    }" if (parenthesized_expression "(__s1 == param_1)" ( (binary_expression "__s1 == param_1" identifier == identifier) )) (compound_statement "{\n      return DAT_0008137c;\n    }" { (return_statement "return DAT_0008137c;" return identifier ;) })) (expression_statement "iVar1 = strcmp(__s1,param_1);" (assignment_expression "iVar1 = strcmp(__s1,param_1)" identifier = (call_expression "strcmp(__s1,param_1)" identifier (argument_list "(__s1,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return puVar2;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return puVar2;\n    }" { (return_statement "return puVar2;" return identifier ;) })) }))) (expression_statement "puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);" (assignment_expression "puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1)" identifier = (cast_expression "(undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_make_section_old_way(DAT_00081544,param_1)" identifier (argument_list "(DAT_00081544,param_1)" ( identifier , identifier ))))) ;) (if_statement "if (puVar2[0x20] != 0) {\n    return puVar2;\n  }" if (parenthesized_expression "(puVar2[0x20] != 0)" ( (binary_expression "puVar2[0x20] != 0" (subscript_expression "puVar2[0x20]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) })) (labeled_statement "LAB_0003c205:\n  puVar2[0x15] = puVar2;" statement_identifier : (expression_statement "puVar2[0x15] = puVar2;" (assignment_expression "puVar2[0x15] = puVar2" (subscript_expression "puVar2[0x15]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "iVar1 = xcalloc(1,0x34);" (assignment_expression "iVar1 = xcalloc(1,0x34)" identifier = (call_expression "xcalloc(1,0x34)" identifier (argument_list "(1,0x34)" ( number_literal , number_literal )))) ;) (expression_statement "*(undefined4 **)(iVar1 + 0x20) = puVar2;" (assignment_expression "*(undefined4 **)(iVar1 + 0x20) = puVar2" (pointer_expression "*(undefined4 **)(iVar1 + 0x20)" * (cast_expression "(undefined4 **)(iVar1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar2[0x20] = iVar1;" (assignment_expression "puVar2[0x20] = iVar1" (subscript_expression "puVar2[0x20]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nsegT subseg_get(char *segname,int force_new)\n\n{\n  char *__s1;\n  int iVar1;\n  segT paVar2;\n  void *pvVar3;\n  \n  paVar2 = now_seg;\n  if (((now_seg == (segT)0x0) || (__s1 = now_seg->name, force_new != 0)) || (__s1 == (char *)0x0)) {\n    if (force_new != 0) {\n      paVar2 = (segT)bfd_make_section_anyway(stdoutput,segname);\n      if (paVar2->userdata != (void *)0x0) {\n        return paVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == segname) {\n      return now_seg;\n    }\n    iVar1 = strcmp(__s1,segname);\n    if (iVar1 == 0) {\n      return paVar2;\n    }\n  }\n  paVar2 = (segT)bfd_make_section_old_way(stdoutput,segname);\n  if (paVar2->userdata != (void *)0x0) {\n    return paVar2;\n  }\nLAB_0003c205:\n  paVar2->output_section = paVar2;\n  pvVar3 = (void *)xcalloc(1,0x34);\n  *(segT *)((int)pvVar3 + 0x20) = paVar2;\n  paVar2->userdata = pvVar3;\n  return paVar2;\n}\n\n" comment (function_definition "segT subseg_get(char *segname,int force_new)\n\n{\n  char *__s1;\n  int iVar1;\n  segT paVar2;\n  void *pvVar3;\n  \n  paVar2 = now_seg;\n  if (((now_seg == (segT)0x0) || (__s1 = now_seg->name, force_new != 0)) || (__s1 == (char *)0x0)) {\n    if (force_new != 0) {\n      paVar2 = (segT)bfd_make_section_anyway(stdoutput,segname);\n      if (paVar2->userdata != (void *)0x0) {\n        return paVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == segname) {\n      return now_seg;\n    }\n    iVar1 = strcmp(__s1,segname);\n    if (iVar1 == 0) {\n      return paVar2;\n    }\n  }\n  paVar2 = (segT)bfd_make_section_old_way(stdoutput,segname);\n  if (paVar2->userdata != (void *)0x0) {\n    return paVar2;\n  }\nLAB_0003c205:\n  paVar2->output_section = paVar2;\n  pvVar3 = (void *)xcalloc(1,0x34);\n  *(segT *)((int)pvVar3 + 0x20) = paVar2;\n  paVar2->userdata = pvVar3;\n  return paVar2;\n}" type_identifier (function_declarator "subseg_get(char *segname,int force_new)" identifier (parameter_list "(char *segname,int force_new)" ( (parameter_declaration "char *segname" primitive_type (pointer_declarator "*segname" * identifier)) , (parameter_declaration "int force_new" primitive_type identifier) ))) (compound_statement "{\n  char *__s1;\n  int iVar1;\n  segT paVar2;\n  void *pvVar3;\n  \n  paVar2 = now_seg;\n  if (((now_seg == (segT)0x0) || (__s1 = now_seg->name, force_new != 0)) || (__s1 == (char *)0x0)) {\n    if (force_new != 0) {\n      paVar2 = (segT)bfd_make_section_anyway(stdoutput,segname);\n      if (paVar2->userdata != (void *)0x0) {\n        return paVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == segname) {\n      return now_seg;\n    }\n    iVar1 = strcmp(__s1,segname);\n    if (iVar1 == 0) {\n      return paVar2;\n    }\n  }\n  paVar2 = (segT)bfd_make_section_old_way(stdoutput,segname);\n  if (paVar2->userdata != (void *)0x0) {\n    return paVar2;\n  }\nLAB_0003c205:\n  paVar2->output_section = paVar2;\n  pvVar3 = (void *)xcalloc(1,0x34);\n  *(segT *)((int)pvVar3 + 0x20) = paVar2;\n  paVar2->userdata = pvVar3;\n  return paVar2;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "segT paVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (expression_statement "paVar2 = now_seg;" (assignment_expression "paVar2 = now_seg" identifier = identifier) ;) (if_statement "if (((now_seg == (segT)0x0) || (__s1 = now_seg->name, force_new != 0)) || (__s1 == (char *)0x0)) {\n    if (force_new != 0) {\n      paVar2 = (segT)bfd_make_section_anyway(stdoutput,segname);\n      if (paVar2->userdata != (void *)0x0) {\n        return paVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == segname) {\n      return now_seg;\n    }\n    iVar1 = strcmp(__s1,segname);\n    if (iVar1 == 0) {\n      return paVar2;\n    }\n  }" if (parenthesized_expression "(((now_seg == (segT)0x0) || (__s1 = now_seg->name, force_new != 0)) || (__s1 == (char *)0x0))" ( (binary_expression "((now_seg == (segT)0x0) || (__s1 = now_seg->name, force_new != 0)) || (__s1 == (char *)0x0)" (parenthesized_expression "((now_seg == (segT)0x0) || (__s1 = now_seg->name, force_new != 0))" ( (binary_expression "(now_seg == (segT)0x0) || (__s1 = now_seg->name, force_new != 0)" (parenthesized_expression "(now_seg == (segT)0x0)" ( (binary_expression "now_seg == (segT)0x0" identifier == (cast_expression "(segT)0x0" ( (type_descriptor "segT" type_identifier) ) number_literal)) )) || (parenthesized_expression "(__s1 = now_seg->name, force_new != 0)" ( (comma_expression "__s1 = now_seg->name, force_new != 0" (assignment_expression "__s1 = now_seg->name" identifier = (field_expression "now_seg->name" identifier -> field_identifier)) , (binary_expression "force_new != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if (force_new != 0) {\n      paVar2 = (segT)bfd_make_section_anyway(stdoutput,segname);\n      if (paVar2->userdata != (void *)0x0) {\n        return paVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }" { (if_statement "if (force_new != 0) {\n      paVar2 = (segT)bfd_make_section_anyway(stdoutput,segname);\n      if (paVar2->userdata != (void *)0x0) {\n        return paVar2;\n      }\n      goto LAB_0003c205;\n    }" if (parenthesized_expression "(force_new != 0)" ( (binary_expression "force_new != 0" identifier != number_literal) )) (compound_statement "{\n      paVar2 = (segT)bfd_make_section_anyway(stdoutput,segname);\n      if (paVar2->userdata != (void *)0x0) {\n        return paVar2;\n      }\n      goto LAB_0003c205;\n    }" { (expression_statement "paVar2 = (segT)bfd_make_section_anyway(stdoutput,segname);" (assignment_expression "paVar2 = (segT)bfd_make_section_anyway(stdoutput,segname)" identifier = (cast_expression "(segT)bfd_make_section_anyway(stdoutput,segname)" ( (type_descriptor "segT" type_identifier) ) (call_expression "bfd_make_section_anyway(stdoutput,segname)" identifier (argument_list "(stdoutput,segname)" ( identifier , identifier ))))) ;) (if_statement "if (paVar2->userdata != (void *)0x0) {\n        return paVar2;\n      }" if (parenthesized_expression "(paVar2->userdata != (void *)0x0)" ( (binary_expression "paVar2->userdata != (void *)0x0" (field_expression "paVar2->userdata" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return paVar2;\n      }" { (return_statement "return paVar2;" return identifier ;) })) (goto_statement "goto LAB_0003c205;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (__s1 == segname) {\n      return now_seg;\n    }\n    iVar1 = strcmp(__s1,segname);\n    if (iVar1 == 0) {\n      return paVar2;\n    }\n  }" else (compound_statement "{\n    if (__s1 == segname) {\n      return now_seg;\n    }\n    iVar1 = strcmp(__s1,segname);\n    if (iVar1 == 0) {\n      return paVar2;\n    }\n  }" { (if_statement "if (__s1 == segname) {\n      return now_seg;\n    }" if (parenthesized_expression "(__s1 == segname)" ( (binary_expression "__s1 == segname" identifier == identifier) )) (compound_statement "{\n      return now_seg;\n    }" { (return_statement "return now_seg;" return identifier ;) })) (expression_statement "iVar1 = strcmp(__s1,segname);" (assignment_expression "iVar1 = strcmp(__s1,segname)" identifier = (call_expression "strcmp(__s1,segname)" identifier (argument_list "(__s1,segname)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return paVar2;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return paVar2;\n    }" { (return_statement "return paVar2;" return identifier ;) })) }))) (expression_statement "paVar2 = (segT)bfd_make_section_old_way(stdoutput,segname);" (assignment_expression "paVar2 = (segT)bfd_make_section_old_way(stdoutput,segname)" identifier = (cast_expression "(segT)bfd_make_section_old_way(stdoutput,segname)" ( (type_descriptor "segT" type_identifier) ) (call_expression "bfd_make_section_old_way(stdoutput,segname)" identifier (argument_list "(stdoutput,segname)" ( identifier , identifier ))))) ;) (if_statement "if (paVar2->userdata != (void *)0x0) {\n    return paVar2;\n  }" if (parenthesized_expression "(paVar2->userdata != (void *)0x0)" ( (binary_expression "paVar2->userdata != (void *)0x0" (field_expression "paVar2->userdata" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return paVar2;\n  }" { (return_statement "return paVar2;" return identifier ;) })) (labeled_statement "LAB_0003c205:\n  paVar2->output_section = paVar2;" statement_identifier : (expression_statement "paVar2->output_section = paVar2;" (assignment_expression "paVar2->output_section = paVar2" (field_expression "paVar2->output_section" identifier -> field_identifier) = identifier) ;)) (expression_statement "pvVar3 = (void *)xcalloc(1,0x34);" (assignment_expression "pvVar3 = (void *)xcalloc(1,0x34)" identifier = (cast_expression "(void *)xcalloc(1,0x34)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xcalloc(1,0x34)" identifier (argument_list "(1,0x34)" ( number_literal , number_literal ))))) ;) (expression_statement "*(segT *)((int)pvVar3 + 0x20) = paVar2;" (assignment_expression "*(segT *)((int)pvVar3 + 0x20) = paVar2" (pointer_expression "*(segT *)((int)pvVar3 + 0x20)" * (cast_expression "(segT *)((int)pvVar3 + 0x20)" ( (type_descriptor "segT *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar3 + 0x20)" ( (binary_expression "(int)pvVar3 + 0x20" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "paVar2->userdata = pvVar3;" (assignment_expression "paVar2->userdata = pvVar3" (field_expression "paVar2->userdata" identifier -> field_identifier) = identifier) ;) (return_statement "return paVar2;" return identifier ;) })))
(translation_unit "undefined4 * FUN_0003c170(char *param_1,int param_2)\n\n{\n  char *__s1;\n  int iVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = DAT_0008137c;\n  if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)) {\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }\n  puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);\n  if (puVar2[0x20] != 0) {\n    return puVar2;\n  }\nLAB_0003c205:\n  puVar2[0x15] = puVar2;\n  iVar1 = xcalloc(1,0x34);\n  *(undefined4 **)(iVar1 + 0x20) = puVar2;\n  puVar2[0x20] = iVar1;\n  return puVar2;\n}\n\n" (function_definition "undefined4 * FUN_0003c170(char *param_1,int param_2)\n\n{\n  char *__s1;\n  int iVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = DAT_0008137c;\n  if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)) {\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }\n  puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);\n  if (puVar2[0x20] != 0) {\n    return puVar2;\n  }\nLAB_0003c205:\n  puVar2[0x15] = puVar2;\n  iVar1 = xcalloc(1,0x34);\n  *(undefined4 **)(iVar1 + 0x20) = puVar2;\n  puVar2[0x20] = iVar1;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_0003c170(char *param_1,int param_2)" * (function_declarator "FUN_0003c170(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  char *__s1;\n  int iVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = DAT_0008137c;\n  if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)) {\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }\n  puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);\n  if (puVar2[0x20] != 0) {\n    return puVar2;\n  }\nLAB_0003c205:\n  puVar2[0x15] = puVar2;\n  iVar1 = xcalloc(1,0x34);\n  *(undefined4 **)(iVar1 + 0x20) = puVar2;\n  puVar2[0x20] = iVar1;\n  return puVar2;\n}" { (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = DAT_0008137c;" (assignment_expression "puVar2 = DAT_0008137c" identifier = identifier) ;) (if_statement "if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)) {\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }" if (parenthesized_expression "(((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0))" ( (binary_expression "((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)" (parenthesized_expression "((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0))" ( (binary_expression "(DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)" (parenthesized_expression "(DAT_0008137c == (undefined4 *)0x0)" ( (binary_expression "DAT_0008137c == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(__s1 = (char *)*DAT_0008137c, param_2 != 0)" ( (comma_expression "__s1 = (char *)*DAT_0008137c, param_2 != 0" (assignment_expression "__s1 = (char *)*DAT_0008137c" identifier = (cast_expression "(char *)*DAT_0008137c" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_0008137c" * identifier))) , (binary_expression "param_2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }" { (if_statement "if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }" { (expression_statement "puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);" (assignment_expression "puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1)" identifier = (cast_expression "(undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_make_section_anyway(DAT_00081544,param_1)" identifier (argument_list "(DAT_00081544,param_1)" ( identifier , identifier ))))) ;) (if_statement "if (puVar2[0x20] != 0) {\n        return puVar2;\n      }" if (parenthesized_expression "(puVar2[0x20] != 0)" ( (binary_expression "puVar2[0x20] != 0" (subscript_expression "puVar2[0x20]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        return puVar2;\n      }" { (return_statement "return puVar2;" return identifier ;) })) (goto_statement "goto LAB_0003c205;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }" else (compound_statement "{\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }" { (if_statement "if (__s1 == param_1) {\n      return DAT_0008137c;\n    }" if (parenthesized_expression "(__s1 == param_1)" ( (binary_expression "__s1 == param_1" identifier == identifier) )) (compound_statement "{\n      return DAT_0008137c;\n    }" { (return_statement "return DAT_0008137c;" return identifier ;) })) (expression_statement "iVar1 = strcmp(__s1,param_1);" (assignment_expression "iVar1 = strcmp(__s1,param_1)" identifier = (call_expression "strcmp(__s1,param_1)" identifier (argument_list "(__s1,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return puVar2;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return puVar2;\n    }" { (return_statement "return puVar2;" return identifier ;) })) }))) (expression_statement "puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);" (assignment_expression "puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1)" identifier = (cast_expression "(undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_make_section_old_way(DAT_00081544,param_1)" identifier (argument_list "(DAT_00081544,param_1)" ( identifier , identifier ))))) ;) (if_statement "if (puVar2[0x20] != 0) {\n    return puVar2;\n  }" if (parenthesized_expression "(puVar2[0x20] != 0)" ( (binary_expression "puVar2[0x20] != 0" (subscript_expression "puVar2[0x20]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) })) (labeled_statement "LAB_0003c205:\n  puVar2[0x15] = puVar2;" statement_identifier : (expression_statement "puVar2[0x15] = puVar2;" (assignment_expression "puVar2[0x15] = puVar2" (subscript_expression "puVar2[0x15]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "iVar1 = xcalloc(1,0x34);" (assignment_expression "iVar1 = xcalloc(1,0x34)" identifier = (call_expression "xcalloc(1,0x34)" identifier (argument_list "(1,0x34)" ( number_literal , number_literal )))) ;) (expression_statement "*(undefined4 **)(iVar1 + 0x20) = puVar2;" (assignment_expression "*(undefined4 **)(iVar1 + 0x20) = puVar2" (pointer_expression "*(undefined4 **)(iVar1 + 0x20)" * (cast_expression "(undefined4 **)(iVar1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar2[0x20] = iVar1;" (assignment_expression "puVar2[0x20] = iVar1" (subscript_expression "puVar2[0x20]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , (binary_expression IDENT != LIT)) ))) )) || (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_0003c170(char *param_1,int param_2)\n\n{\n  char *__s1;\n  int iVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = DAT_0008137c;\n  if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)) {\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }\n  puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);\n  if (puVar2[0x20] != 0) {\n    return puVar2;\n  }\nLAB_0003c205:\n  puVar2[0x15] = puVar2;\n  iVar1 = xcalloc(1,0x34);\n  *(undefined4 **)(iVar1 + 0x20) = puVar2;\n  puVar2[0x20] = iVar1;\n  return puVar2;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0003c170(char *param_1,int param_2)" (* "*") (function_declarator "FUN_0003c170(char *param_1,int param_2)" (identifier "FUN_0003c170") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  char *__s1;\n  int iVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = DAT_0008137c;\n  if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)) {\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }\n  puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);\n  if (puVar2[0x20] != 0) {\n    return puVar2;\n  }\nLAB_0003c205:\n  puVar2[0x15] = puVar2;\n  iVar1 = xcalloc(1,0x34);\n  *(undefined4 **)(iVar1 + 0x20) = puVar2;\n  puVar2[0x20] = iVar1;\n  return puVar2;\n}" ({ "{") (declaration "char *__s1;" (primitive_type "char") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "puVar2 = DAT_0008137c;" (assignment_expression "puVar2 = DAT_0008137c" (identifier "puVar2") (= "=") (identifier "DAT_0008137c")) (; ";")) (if_statement "if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)) {\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }\n  else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }" (if "if") (parenthesized_expression "(((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0))" (( "(") (binary_expression "((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||\n     (__s1 == (char *)0x0)" (parenthesized_expression "((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0))" (( "(") (binary_expression "(DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)" (parenthesized_expression "(DAT_0008137c == (undefined4 *)0x0)" (( "(") (binary_expression "DAT_0008137c == (undefined4 *)0x0" (identifier "DAT_0008137c") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(__s1 = (char *)*DAT_0008137c, param_2 != 0)" (( "(") (comma_expression "__s1 = (char *)*DAT_0008137c, param_2 != 0" (assignment_expression "__s1 = (char *)*DAT_0008137c" (identifier "__s1") (= "=") (cast_expression "(char *)*DAT_0008137c" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*DAT_0008137c" (* "*") (identifier "DAT_0008137c")))) (, ",") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(__s1 == (char *)0x0)" (( "(") (binary_expression "__s1 == (char *)0x0" (identifier "__s1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }\n  }" ({ "{") (if_statement "if (param_2 != 0) {\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);\n      if (puVar2[0x20] != 0) {\n        return puVar2;\n      }\n      goto LAB_0003c205;\n    }" ({ "{") (expression_statement "puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);" (assignment_expression "puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bfd_make_section_anyway(DAT_00081544,param_1)" (identifier "bfd_make_section_anyway") (argument_list "(DAT_00081544,param_1)" (( "(") (identifier "DAT_00081544") (, ",") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (puVar2[0x20] != 0) {\n        return puVar2;\n      }" (if "if") (parenthesized_expression "(puVar2[0x20] != 0)" (( "(") (binary_expression "puVar2[0x20] != 0" (subscript_expression "puVar2[0x20]" (identifier "puVar2") ([ "[") (number_literal "0x20") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return puVar2;\n      }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (goto_statement "goto LAB_0003c205;" (goto "goto") (statement_identifier "LAB_0003c205") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }" (else "else") (compound_statement "{\n    if (__s1 == param_1) {\n      return DAT_0008137c;\n    }\n    iVar1 = strcmp(__s1,param_1);\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n  }" ({ "{") (if_statement "if (__s1 == param_1) {\n      return DAT_0008137c;\n    }" (if "if") (parenthesized_expression "(__s1 == param_1)" (( "(") (binary_expression "__s1 == param_1" (identifier "__s1") (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      return DAT_0008137c;\n    }" ({ "{") (return_statement "return DAT_0008137c;" (return "return") (identifier "DAT_0008137c") (; ";")) (} "}"))) (expression_statement "iVar1 = strcmp(__s1,param_1);" (assignment_expression "iVar1 = strcmp(__s1,param_1)" (identifier "iVar1") (= "=") (call_expression "strcmp(__s1,param_1)" (identifier "strcmp") (argument_list "(__s1,param_1)" (( "(") (identifier "__s1") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return puVar2;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return puVar2;\n    }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (} "}")))) (expression_statement "puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);" (assignment_expression "puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bfd_make_section_old_way(DAT_00081544,param_1)" (identifier "bfd_make_section_old_way") (argument_list "(DAT_00081544,param_1)" (( "(") (identifier "DAT_00081544") (, ",") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (puVar2[0x20] != 0) {\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(puVar2[0x20] != 0)" (( "(") (binary_expression "puVar2[0x20] != 0" (subscript_expression "puVar2[0x20]" (identifier "puVar2") ([ "[") (number_literal "0x20") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return puVar2;\n  }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (labeled_statement "LAB_0003c205:\n  puVar2[0x15] = puVar2;" (statement_identifier "LAB_0003c205") (: ":") (expression_statement "puVar2[0x15] = puVar2;" (assignment_expression "puVar2[0x15] = puVar2" (subscript_expression "puVar2[0x15]" (identifier "puVar2") ([ "[") (number_literal "0x15") (] "]")) (= "=") (identifier "puVar2")) (; ";"))) (expression_statement "iVar1 = xcalloc(1,0x34);" (assignment_expression "iVar1 = xcalloc(1,0x34)" (identifier "iVar1") (= "=") (call_expression "xcalloc(1,0x34)" (identifier "xcalloc") (argument_list "(1,0x34)" (( "(") (number_literal "1") (, ",") (number_literal "0x34") () ")")))) (; ";")) (expression_statement "*(undefined4 **)(iVar1 + 0x20) = puVar2;" (assignment_expression "*(undefined4 **)(iVar1 + 0x20) = puVar2" (pointer_expression "*(undefined4 **)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "puVar2[0x20] = iVar1;" (assignment_expression "puVar2[0x20] = iVar1" (subscript_expression "puVar2[0x20]" (identifier "puVar2") ([ "[") (number_literal "0x20") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

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

type_1 function_1(char *var_5,int var_2)

{
  char *var_3;
  int var_7;
  type_1 paVar2;
  void *pvVar3;
  
  paVar2 = var_1;
  if (((var_1 == (type_1)0x0) || (var_3 = var_1->name, var_2 != 0)) || (var_3 == (char *)0x0)) {
    if (var_2 != 0) {
      paVar2 = (type_1)var_4(stdoutput,var_5);
      if (paVar2->userdata != (void *)0x0) {
        return paVar2;
      }
      goto LAB_0003c205;
    }
  }
  else {
    if (var_3 == var_5) {
      return var_1;
    }
    var_7 = var_6(var_3,var_5);
    if (var_7 == 0) {
      return paVar2;
    }
  }
  paVar2 = (type_1)var_8(stdoutput,var_5);
  if (paVar2->userdata != (void *)0x0) {
    return paVar2;
  }
LAB_0003c205:
  paVar2->output_section = paVar2;
  pvVar3 = (void *)var_9(1,0x34);
  *(type_1 *)((int)pvVar3 + 0x20) = paVar2;
  paVar2->userdata = pvVar3;
  return paVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (identifier)))))

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

undefined4 * MASKED(char *param_1,int param_2)

{
  char *__s1;
  int iVar1;
  undefined4 *puVar2;
  
  puVar2 = DAT_0008137c;
  if (((DAT_0008137c == (undefined4 *)0x0) || (__s1 = (char *)*DAT_0008137c, param_2 != 0)) ||
     (__s1 == (char *)0x0)) {
    if (param_2 != 0) {
      puVar2 = (undefined4 *)bfd_make_section_anyway(DAT_00081544,param_1);
      if (puVar2[0x20] != 0) {
        return puVar2;
      }
      goto LAB_0003c205;
    }
  }
  else {
    if (__s1 == param_1) {
      return DAT_0008137c;
    }
    iVar1 = strcmp(__s1,param_1);
    if (iVar1 == 0) {
      return puVar2;
    }
  }
  puVar2 = (undefined4 *)bfd_make_section_old_way(DAT_00081544,param_1);
  if (puVar2[0x20] != 0) {
    return puVar2;
  }
LAB_0003c205:
  puVar2[0x15] = puVar2;
  iVar1 = xcalloc(1,0x34);
  *(undefined4 **)(iVar1 + 0x20) = puVar2;
  puVar2[0x20] = iVar1;
  return puVar2;
}

