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

void __regparm3 set_segment_start(char *section,char *valstr)

{
  segment_struct *segment;
  bfd_vma value;
  int iVar1;
  segment_type *segment_00;
  etree_type *peVar2;
  char *fmt;
  char *end;
  undefined4 uStack_14;
  
  uStack_14 = 0x1b0fb;
  value = bfd_scan_vma(valstr,&end,0x10);
  if (*end != '\0') {
    fmt = (char *)dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);
    einfo(fmt,valstr);
  }
  segment = segments;
  while( true ) {
    if (segment == (segment_type *)0x0) {
      segment_00 = (segment_type *)stat_alloc(0x10);
      segment_00->name = section + 1;
      segment_00->value = value;
      segment_00->used = 0;
      segment_00->next = segments;
      segments = segment_00;
      peVar2 = exp_intop(value);
      lang_section_start(section,peVar2,segment_00);
      return;
    }
    iVar1 = strcmp(segment->name,section + 1);
    if (iVar1 == 0) break;
    segment = segment->next;
  }
  segment->value = value;
  peVar2 = exp_intop(value);
  lang_section_start(section,peVar2,segment);
  return;
}



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

void __regparm3 FUN_0001b0f0(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  char *local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x1b0fb;
  uVar1 = bfd_scan_vma(param_2,local_20,0x10);
  if (*local_20[0] != '\0') {
    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);
    FUN_000316f0(uVar4,param_2);
  }
  puVar3 = DAT_00094fd8;
  while( true ) {
    if (puVar3 == (undefined4 *)0x0) {
      puVar3 = (undefined4 *)FUN_000211a0(0x10);
      puVar3[1] = (char *)(param_1 + 1);
      puVar3[2] = uVar1;
      puVar3[3] = 0;
      *puVar3 = DAT_00094fd8;
      DAT_00094fd8 = puVar3;
      uVar1 = FUN_0002f350(uVar1);
      FUN_000267a0(param_1,uVar1,puVar3);
      return;
    }
    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));
    if (iVar2 == 0) break;
    puVar3 = (undefined4 *)*puVar3;
  }
  puVar3[2] = uVar1;
  uVar1 = FUN_0002f350(uVar1);
  FUN_000267a0(param_1,uVar1,puVar3);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00015a10
ADD EBX,0x78f05
SUB ESP,0x30
MOV dword ptr [ESP + 0xc],EAX
PUSH 0x10
LEA EAX,[ESP + 0x24]
PUSH EAX
PUSH EDX
CALL 0x000140a0
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
CMP byte ptr [EAX],0x0
JNZ 0x0001b1d8
LEA EDI,[EBX + 0xfd8]
MOV EAX,dword ptr [ESP + 0x8]
MOV EBP,dword ptr [EDI]
LEA ESI,[EAX + 0x1]
TEST EBP,EBP
JNZ 0x0001b147
JMP 0x0001b188
MOV EBP,dword ptr [EBP]
TEST EBP,EBP
JZ 0x0001b188
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EBP + 0x4]
CALL 0x000140c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001b140
MOV EAX,dword ptr [ESP + 0xc]
SUB ESP,0xc
MOV dword ptr [EBP + 0x8],EAX
PUSH EAX
CALL 0x0002f350
ADD ESP,0xc
PUSH EBP
PUSH EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x000267a0
ADD ESP,0x10
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x10
CALL 0x000211a0
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,EAX
MOV dword ptr [EAX + 0x4],ESI
MOV dword ptr [EAX + 0x8],ECX
MOV dword ptr [EAX + 0xc],0x0
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESP + 0x1c],EDX
MOV dword ptr [EDX],EAX
MOV dword ptr [ESP],ECX
MOV dword ptr [EDI],EDX
CALL 0x0002f350
ADD ESP,0xc
MOV EDX,dword ptr [ESP + 0x10]
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x000267a0
ADD ESP,0x10
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffb7234]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000142e0
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x000316f0
ADD ESP,0x10
JMP 0x0001b129
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0001b0f0(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b0fb;\n  uVar1 = bfd_scan_vma(param_2,local_20,0x10);\n  if (*local_20[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }\n  puVar3 = DAT_00094fd8;\n  while( true ) {\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }\n  puVar3[2] = uVar1;\n  uVar1 = FUN_0002f350(uVar1);\n  FUN_000267a0(param_1,uVar1,puVar3);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0001b0f0(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b0fb;\n  uVar1 = bfd_scan_vma(param_2,local_20,0x10);\n  if (*local_20[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }\n  puVar3 = DAT_00094fd8;\n  while( true ) {\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }\n  puVar3[2] = uVar1;\n  uVar1 = FUN_0002f350(uVar1);\n  FUN_000267a0(param_1,uVar1,puVar3);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001b0f0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b0fb;\n  uVar1 = bfd_scan_vma(param_2,local_20,0x10);\n  if (*local_20[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }\n  puVar3 = DAT_00094fd8;\n  while( true ) {\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }\n  puVar3[2] = uVar1;\n  uVar1 = FUN_0002f350(uVar1);\n  FUN_000267a0(param_1,uVar1,puVar3);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *local_20 [3];" primitive_type (pointer_declarator "*local_20 [3]" * (array_declarator "local_20 [3]" identifier [ number_literal ])) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1b0fb;" (assignment_expression "uStack_14 = 0x1b0fb" identifier = number_literal) ;) (expression_statement "uVar1 = bfd_scan_vma(param_2,local_20,0x10);" (assignment_expression "uVar1 = bfd_scan_vma(param_2,local_20,0x10)" identifier = (call_expression "bfd_scan_vma(param_2,local_20,0x10)" identifier (argument_list "(param_2,local_20,0x10)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (*local_20[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }" if (parenthesized_expression "(*local_20[0] != '\0')" ( (binary_expression "*local_20[0] != '\0'" (pointer_expression "*local_20[0]" * (subscript_expression "local_20[0]" identifier [ number_literal ])) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }" { (expression_statement "uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: invalid hex number `%s\'\n",5)" identifier (argument_list "(0,"%F%P: invalid hex number `%s\'\n",5)" ( number_literal , (string_literal ""%F%P: invalid hex number `%s\'\n"" " string_content escape_sequence escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_000316f0(uVar4,param_2);" (call_expression "FUN_000316f0(uVar4,param_2)" identifier (argument_list "(uVar4,param_2)" ( identifier , identifier ))) ;) })) (expression_statement "puVar3 = DAT_00094fd8;" (assignment_expression "puVar3 = DAT_00094fd8" identifier = identifier) ;) (while_statement "while( true ) {\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }" { (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }" { (expression_statement "puVar3 = (undefined4 *)FUN_000211a0(0x10);" (assignment_expression "puVar3 = (undefined4 *)FUN_000211a0(0x10)" identifier = (cast_expression "(undefined4 *)FUN_000211a0(0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000211a0(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "puVar3[1] = (char *)(param_1 + 1);" (assignment_expression "puVar3[1] = (char *)(param_1 + 1)" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (expression_statement "puVar3[2] = uVar1;" (assignment_expression "puVar3[2] = uVar1" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar3 = DAT_00094fd8;" (assignment_expression "*puVar3 = DAT_00094fd8" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "DAT_00094fd8 = puVar3;" (assignment_expression "DAT_00094fd8 = puVar3" identifier = identifier) ;) (expression_statement "uVar1 = FUN_0002f350(uVar1);" (assignment_expression "uVar1 = FUN_0002f350(uVar1)" identifier = (call_expression "FUN_0002f350(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "FUN_000267a0(param_1,uVar1,puVar3);" (call_expression "FUN_000267a0(param_1,uVar1,puVar3)" identifier (argument_list "(param_1,uVar1,puVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));" (assignment_expression "iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1))" identifier = (call_expression "strcmp((char *)puVar3[1],(char *)(param_1 + 1))" identifier (argument_list "((char *)puVar3[1],(char *)(param_1 + 1))" ( (cast_expression "(char *)puVar3[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[1]" identifier [ number_literal ])) , (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar3 = (undefined4 *)*puVar3;" (assignment_expression "puVar3 = (undefined4 *)*puVar3" identifier = (cast_expression "(undefined4 *)*puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) })) (expression_statement "puVar3[2] = uVar1;" (assignment_expression "puVar3[2] = uVar1" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = FUN_0002f350(uVar1);" (assignment_expression "uVar1 = FUN_0002f350(uVar1)" identifier = (call_expression "FUN_0002f350(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "FUN_000267a0(param_1,uVar1,puVar3);" (call_expression "FUN_000267a0(param_1,uVar1,puVar3)" identifier (argument_list "(param_1,uVar1,puVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 set_segment_start(char *section,char *valstr)\n\n{\n  segment_struct *segment;\n  bfd_vma value;\n  int iVar1;\n  segment_type *segment_00;\n  etree_type *peVar2;\n  char *fmt;\n  char *end;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b0fb;\n  value = bfd_scan_vma(valstr,&end,0x10);\n  if (*end != '\0') {\n    fmt = (char *)dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    einfo(fmt,valstr);\n  }\n  segment = segments;\n  while( true ) {\n    if (segment == (segment_type *)0x0) {\n      segment_00 = (segment_type *)stat_alloc(0x10);\n      segment_00->name = section + 1;\n      segment_00->value = value;\n      segment_00->used = 0;\n      segment_00->next = segments;\n      segments = segment_00;\n      peVar2 = exp_intop(value);\n      lang_section_start(section,peVar2,segment_00);\n      return;\n    }\n    iVar1 = strcmp(segment->name,section + 1);\n    if (iVar1 == 0) break;\n    segment = segment->next;\n  }\n  segment->value = value;\n  peVar2 = exp_intop(value);\n  lang_section_start(section,peVar2,segment);\n  return;\n}\n\n" comment (function_definition "void __regparm3 set_segment_start(char *section,char *valstr)\n\n{\n  segment_struct *segment;\n  bfd_vma value;\n  int iVar1;\n  segment_type *segment_00;\n  etree_type *peVar2;\n  char *fmt;\n  char *end;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b0fb;\n  value = bfd_scan_vma(valstr,&end,0x10);\n  if (*end != '\0') {\n    fmt = (char *)dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    einfo(fmt,valstr);\n  }\n  segment = segments;\n  while( true ) {\n    if (segment == (segment_type *)0x0) {\n      segment_00 = (segment_type *)stat_alloc(0x10);\n      segment_00->name = section + 1;\n      segment_00->value = value;\n      segment_00->used = 0;\n      segment_00->next = segments;\n      segments = segment_00;\n      peVar2 = exp_intop(value);\n      lang_section_start(section,peVar2,segment_00);\n      return;\n    }\n    iVar1 = strcmp(segment->name,section + 1);\n    if (iVar1 == 0) break;\n    segment = segment->next;\n  }\n  segment->value = value;\n  peVar2 = exp_intop(value);\n  lang_section_start(section,peVar2,segment);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "set_segment_start(char *section,char *valstr)" identifier (parameter_list "(char *section,char *valstr)" ( (parameter_declaration "char *section" primitive_type (pointer_declarator "*section" * identifier)) , (parameter_declaration "char *valstr" primitive_type (pointer_declarator "*valstr" * identifier)) ))) (compound_statement "{\n  segment_struct *segment;\n  bfd_vma value;\n  int iVar1;\n  segment_type *segment_00;\n  etree_type *peVar2;\n  char *fmt;\n  char *end;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b0fb;\n  value = bfd_scan_vma(valstr,&end,0x10);\n  if (*end != '\0') {\n    fmt = (char *)dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    einfo(fmt,valstr);\n  }\n  segment = segments;\n  while( true ) {\n    if (segment == (segment_type *)0x0) {\n      segment_00 = (segment_type *)stat_alloc(0x10);\n      segment_00->name = section + 1;\n      segment_00->value = value;\n      segment_00->used = 0;\n      segment_00->next = segments;\n      segments = segment_00;\n      peVar2 = exp_intop(value);\n      lang_section_start(section,peVar2,segment_00);\n      return;\n    }\n    iVar1 = strcmp(segment->name,section + 1);\n    if (iVar1 == 0) break;\n    segment = segment->next;\n  }\n  segment->value = value;\n  peVar2 = exp_intop(value);\n  lang_section_start(section,peVar2,segment);\n  return;\n}" { (declaration "segment_struct *segment;" type_identifier (pointer_declarator "*segment" * identifier) ;) (declaration "bfd_vma value;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "segment_type *segment_00;" type_identifier (pointer_declarator "*segment_00" * identifier) ;) (declaration "etree_type *peVar2;" type_identifier (pointer_declarator "*peVar2" * identifier) ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (declaration "char *end;" primitive_type (pointer_declarator "*end" * identifier) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1b0fb;" (assignment_expression "uStack_14 = 0x1b0fb" identifier = number_literal) ;) (expression_statement "value = bfd_scan_vma(valstr,&end,0x10);" (assignment_expression "value = bfd_scan_vma(valstr,&end,0x10)" identifier = (call_expression "bfd_scan_vma(valstr,&end,0x10)" identifier (argument_list "(valstr,&end,0x10)" ( identifier , (pointer_expression "&end" & identifier) , number_literal )))) ;) (if_statement "if (*end != '\0') {\n    fmt = (char *)dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    einfo(fmt,valstr);\n  }" if (parenthesized_expression "(*end != '\0')" ( (binary_expression "*end != '\0'" (pointer_expression "*end" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fmt = (char *)dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    einfo(fmt,valstr);\n  }" { (expression_statement "fmt = (char *)dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%F%P: invalid hex number `%s\'\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: invalid hex number `%s\'\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: invalid hex number `%s\'\n",5)" identifier (argument_list "(0,"%F%P: invalid hex number `%s\'\n",5)" ( number_literal , (string_literal ""%F%P: invalid hex number `%s\'\n"" " string_content escape_sequence escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(fmt,valstr);" (call_expression "einfo(fmt,valstr)" identifier (argument_list "(fmt,valstr)" ( identifier , identifier ))) ;) })) (expression_statement "segment = segments;" (assignment_expression "segment = segments" identifier = identifier) ;) (while_statement "while( true ) {\n    if (segment == (segment_type *)0x0) {\n      segment_00 = (segment_type *)stat_alloc(0x10);\n      segment_00->name = section + 1;\n      segment_00->value = value;\n      segment_00->used = 0;\n      segment_00->next = segments;\n      segments = segment_00;\n      peVar2 = exp_intop(value);\n      lang_section_start(section,peVar2,segment_00);\n      return;\n    }\n    iVar1 = strcmp(segment->name,section + 1);\n    if (iVar1 == 0) break;\n    segment = segment->next;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (segment == (segment_type *)0x0) {\n      segment_00 = (segment_type *)stat_alloc(0x10);\n      segment_00->name = section + 1;\n      segment_00->value = value;\n      segment_00->used = 0;\n      segment_00->next = segments;\n      segments = segment_00;\n      peVar2 = exp_intop(value);\n      lang_section_start(section,peVar2,segment_00);\n      return;\n    }\n    iVar1 = strcmp(segment->name,section + 1);\n    if (iVar1 == 0) break;\n    segment = segment->next;\n  }" { (if_statement "if (segment == (segment_type *)0x0) {\n      segment_00 = (segment_type *)stat_alloc(0x10);\n      segment_00->name = section + 1;\n      segment_00->value = value;\n      segment_00->used = 0;\n      segment_00->next = segments;\n      segments = segment_00;\n      peVar2 = exp_intop(value);\n      lang_section_start(section,peVar2,segment_00);\n      return;\n    }" if (parenthesized_expression "(segment == (segment_type *)0x0)" ( (binary_expression "segment == (segment_type *)0x0" identifier == (cast_expression "(segment_type *)0x0" ( (type_descriptor "segment_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      segment_00 = (segment_type *)stat_alloc(0x10);\n      segment_00->name = section + 1;\n      segment_00->value = value;\n      segment_00->used = 0;\n      segment_00->next = segments;\n      segments = segment_00;\n      peVar2 = exp_intop(value);\n      lang_section_start(section,peVar2,segment_00);\n      return;\n    }" { (expression_statement "segment_00 = (segment_type *)stat_alloc(0x10);" (assignment_expression "segment_00 = (segment_type *)stat_alloc(0x10)" identifier = (cast_expression "(segment_type *)stat_alloc(0x10)" ( (type_descriptor "segment_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "stat_alloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "segment_00->name = section + 1;" (assignment_expression "segment_00->name = section + 1" (field_expression "segment_00->name" identifier -> field_identifier) = (binary_expression "section + 1" identifier + number_literal)) ;) (expression_statement "segment_00->value = value;" (assignment_expression "segment_00->value = value" (field_expression "segment_00->value" identifier -> field_identifier) = identifier) ;) (expression_statement "segment_00->used = 0;" (assignment_expression "segment_00->used = 0" (field_expression "segment_00->used" identifier -> field_identifier) = number_literal) ;) (expression_statement "segment_00->next = segments;" (assignment_expression "segment_00->next = segments" (field_expression "segment_00->next" identifier -> field_identifier) = identifier) ;) (expression_statement "segments = segment_00;" (assignment_expression "segments = segment_00" identifier = identifier) ;) (expression_statement "peVar2 = exp_intop(value);" (assignment_expression "peVar2 = exp_intop(value)" identifier = (call_expression "exp_intop(value)" identifier (argument_list "(value)" ( identifier )))) ;) (expression_statement "lang_section_start(section,peVar2,segment_00);" (call_expression "lang_section_start(section,peVar2,segment_00)" identifier (argument_list "(section,peVar2,segment_00)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = strcmp(segment->name,section + 1);" (assignment_expression "iVar1 = strcmp(segment->name,section + 1)" identifier = (call_expression "strcmp(segment->name,section + 1)" identifier (argument_list "(segment->name,section + 1)" ( (field_expression "segment->name" identifier -> field_identifier) , (binary_expression "section + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "segment = segment->next;" (assignment_expression "segment = segment->next" identifier = (field_expression "segment->next" identifier -> field_identifier)) ;) })) (expression_statement "segment->value = value;" (assignment_expression "segment->value = value" (field_expression "segment->value" identifier -> field_identifier) = identifier) ;) (expression_statement "peVar2 = exp_intop(value);" (assignment_expression "peVar2 = exp_intop(value)" identifier = (call_expression "exp_intop(value)" identifier (argument_list "(value)" ( identifier )))) ;) (expression_statement "lang_section_start(section,peVar2,segment);" (call_expression "lang_section_start(section,peVar2,segment)" identifier (argument_list "(section,peVar2,segment)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0001b0f0(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b0fb;\n  uVar1 = bfd_scan_vma(param_2,local_20,0x10);\n  if (*local_20[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }\n  puVar3 = DAT_00094fd8;\n  while( true ) {\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }\n  puVar3[2] = uVar1;\n  uVar1 = FUN_0002f350(uVar1);\n  FUN_000267a0(param_1,uVar1,puVar3);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001b0f0(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b0fb;\n  uVar1 = bfd_scan_vma(param_2,local_20,0x10);\n  if (*local_20[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }\n  puVar3 = DAT_00094fd8;\n  while( true ) {\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }\n  puVar3[2] = uVar1;\n  uVar1 = FUN_0002f350(uVar1);\n  FUN_000267a0(param_1,uVar1,puVar3);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001b0f0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b0fb;\n  uVar1 = bfd_scan_vma(param_2,local_20,0x10);\n  if (*local_20[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }\n  puVar3 = DAT_00094fd8;\n  while( true ) {\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }\n  puVar3[2] = uVar1;\n  uVar1 = FUN_0002f350(uVar1);\n  FUN_000267a0(param_1,uVar1,puVar3);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *local_20 [3];" primitive_type (pointer_declarator "*local_20 [3]" * (array_declarator "local_20 [3]" identifier [ number_literal ])) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1b0fb;" (assignment_expression "uStack_14 = 0x1b0fb" identifier = number_literal) ;) (expression_statement "uVar1 = bfd_scan_vma(param_2,local_20,0x10);" (assignment_expression "uVar1 = bfd_scan_vma(param_2,local_20,0x10)" identifier = (call_expression "bfd_scan_vma(param_2,local_20,0x10)" identifier (argument_list "(param_2,local_20,0x10)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (*local_20[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }" if (parenthesized_expression "(*local_20[0] != '\0')" ( (binary_expression "*local_20[0] != '\0'" (pointer_expression "*local_20[0]" * (subscript_expression "local_20[0]" identifier [ number_literal ])) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }" { (expression_statement "uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: invalid hex number `%s\'\n",5)" identifier (argument_list "(0,"%F%P: invalid hex number `%s\'\n",5)" ( number_literal , (string_literal ""%F%P: invalid hex number `%s\'\n"" " string_content escape_sequence escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_000316f0(uVar4,param_2);" (call_expression "FUN_000316f0(uVar4,param_2)" identifier (argument_list "(uVar4,param_2)" ( identifier , identifier ))) ;) })) (expression_statement "puVar3 = DAT_00094fd8;" (assignment_expression "puVar3 = DAT_00094fd8" identifier = identifier) ;) (while_statement "while( true ) {\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }" { (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }" { (expression_statement "puVar3 = (undefined4 *)FUN_000211a0(0x10);" (assignment_expression "puVar3 = (undefined4 *)FUN_000211a0(0x10)" identifier = (cast_expression "(undefined4 *)FUN_000211a0(0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000211a0(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "puVar3[1] = (char *)(param_1 + 1);" (assignment_expression "puVar3[1] = (char *)(param_1 + 1)" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (expression_statement "puVar3[2] = uVar1;" (assignment_expression "puVar3[2] = uVar1" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar3 = DAT_00094fd8;" (assignment_expression "*puVar3 = DAT_00094fd8" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "DAT_00094fd8 = puVar3;" (assignment_expression "DAT_00094fd8 = puVar3" identifier = identifier) ;) (expression_statement "uVar1 = FUN_0002f350(uVar1);" (assignment_expression "uVar1 = FUN_0002f350(uVar1)" identifier = (call_expression "FUN_0002f350(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "FUN_000267a0(param_1,uVar1,puVar3);" (call_expression "FUN_000267a0(param_1,uVar1,puVar3)" identifier (argument_list "(param_1,uVar1,puVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));" (assignment_expression "iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1))" identifier = (call_expression "strcmp((char *)puVar3[1],(char *)(param_1 + 1))" identifier (argument_list "((char *)puVar3[1],(char *)(param_1 + 1))" ( (cast_expression "(char *)puVar3[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[1]" identifier [ number_literal ])) , (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar3 = (undefined4 *)*puVar3;" (assignment_expression "puVar3 = (undefined4 *)*puVar3" identifier = (cast_expression "(undefined4 *)*puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) })) (expression_statement "puVar3[2] = uVar1;" (assignment_expression "puVar3[2] = uVar1" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = FUN_0002f350(uVar1);" (assignment_expression "uVar1 = FUN_0002f350(uVar1)" identifier = (call_expression "FUN_0002f350(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "FUN_000267a0(param_1,uVar1,puVar3);" (call_expression "FUN_000267a0(param_1,uVar1,puVar3)" identifier (argument_list "(param_1,uVar1,puVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (subscript_expression IDENT [ LIT ])) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0001b0f0(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b0fb;\n  uVar1 = bfd_scan_vma(param_2,local_20,0x10);\n  if (*local_20[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }\n  puVar3 = DAT_00094fd8;\n  while( true ) {\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }\n  puVar3[2] = uVar1;\n  uVar1 = FUN_0002f350(uVar1);\n  FUN_000267a0(param_1,uVar1,puVar3);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001b0f0(int param_1,undefined4 param_2)" (identifier "FUN_0001b0f0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  char *local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b0fb;\n  uVar1 = bfd_scan_vma(param_2,local_20,0x10);\n  if (*local_20[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }\n  puVar3 = DAT_00094fd8;\n  while( true ) {\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }\n  puVar3[2] = uVar1;\n  uVar1 = FUN_0002f350(uVar1);\n  FUN_000267a0(param_1,uVar1,puVar3);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "char *local_20 [3];" (primitive_type "char") (pointer_declarator "*local_20 [3]" (* "*") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]"))) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1b0fb;" (assignment_expression "uStack_14 = 0x1b0fb" (identifier "uStack_14") (= "=") (number_literal "0x1b0fb")) (; ";")) (expression_statement "uVar1 = bfd_scan_vma(param_2,local_20,0x10);" (assignment_expression "uVar1 = bfd_scan_vma(param_2,local_20,0x10)" (identifier "uVar1") (= "=") (call_expression "bfd_scan_vma(param_2,local_20,0x10)" (identifier "bfd_scan_vma") (argument_list "(param_2,local_20,0x10)" (( "(") (identifier "param_2") (, ",") (identifier "local_20") (, ",") (number_literal "0x10") () ")")))) (; ";")) (if_statement "if (*local_20[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }" (if "if") (parenthesized_expression "(*local_20[0] != '\0')" (( "(") (binary_expression "*local_20[0] != '\0'" (pointer_expression "*local_20[0]" (* "*") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_000316f0(uVar4,param_2);\n  }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"%F%P: invalid hex number `%s\'\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: invalid hex number `%s\'\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: invalid hex number `%s\'\n"" (" """) (string_content "%F%P: invalid hex number `%s") (escape_sequence "\'") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_000316f0(uVar4,param_2);" (call_expression "FUN_000316f0(uVar4,param_2)" (identifier "FUN_000316f0") (argument_list "(uVar4,param_2)" (( "(") (identifier "uVar4") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar3 = DAT_00094fd8;" (assignment_expression "puVar3 = DAT_00094fd8" (identifier "puVar3") (= "=") (identifier "DAT_00094fd8")) (; ";")) (while_statement "while( true ) {\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }\n    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar2 == 0) break;\n    puVar3 = (undefined4 *)*puVar3;\n  }" ({ "{") (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }" (if "if") (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined4 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_000211a0(0x10);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar1;\n      puVar3[3] = 0;\n      *puVar3 = DAT_00094fd8;\n      DAT_00094fd8 = puVar3;\n      uVar1 = FUN_0002f350(uVar1);\n      FUN_000267a0(param_1,uVar1,puVar3);\n      return;\n    }" ({ "{") (expression_statement "puVar3 = (undefined4 *)FUN_000211a0(0x10);" (assignment_expression "puVar3 = (undefined4 *)FUN_000211a0(0x10)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_000211a0(0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000211a0(0x10)" (identifier "FUN_000211a0") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "puVar3[1] = (char *)(param_1 + 1);" (assignment_expression "puVar3[1] = (char *)(param_1 + 1)" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(char *)(param_1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "puVar3[2] = uVar1;" (assignment_expression "puVar3[2] = uVar1" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar3 = DAT_00094fd8;" (assignment_expression "*puVar3 = DAT_00094fd8" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "DAT_00094fd8")) (; ";")) (expression_statement "DAT_00094fd8 = puVar3;" (assignment_expression "DAT_00094fd8 = puVar3" (identifier "DAT_00094fd8") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "uVar1 = FUN_0002f350(uVar1);" (assignment_expression "uVar1 = FUN_0002f350(uVar1)" (identifier "uVar1") (= "=") (call_expression "FUN_0002f350(uVar1)" (identifier "FUN_0002f350") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "FUN_000267a0(param_1,uVar1,puVar3);" (call_expression "FUN_000267a0(param_1,uVar1,puVar3)" (identifier "FUN_000267a0") (argument_list "(param_1,uVar1,puVar3)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") (, ",") (identifier "puVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));" (assignment_expression "iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1))" (identifier "iVar2") (= "=") (call_expression "strcmp((char *)puVar3[1],(char *)(param_1 + 1))" (identifier "strcmp") (argument_list "((char *)puVar3[1],(char *)(param_1 + 1))" (( "(") (cast_expression "(char *)puVar3[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]"))) (, ",") (cast_expression "(char *)(param_1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar3 = (undefined4 *)*puVar3;" (assignment_expression "puVar3 = (undefined4 *)*puVar3" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)*puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) (; ";")) (} "}"))) (expression_statement "puVar3[2] = uVar1;" (assignment_expression "puVar3[2] = uVar1" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = FUN_0002f350(uVar1);" (assignment_expression "uVar1 = FUN_0002f350(uVar1)" (identifier "uVar1") (= "=") (call_expression "FUN_0002f350(uVar1)" (identifier "FUN_0002f350") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "FUN_000267a0(param_1,uVar1,puVar3);" (call_expression "FUN_000267a0(param_1,uVar1,puVar3)" (identifier "FUN_000267a0") (argument_list "(param_1,uVar1,puVar3)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") (, ",") (identifier "puVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *var_6,char *valstr)

{
  type_1 *var_4;
  type_2 value;
  int var_10;
  type_3 *segment_00;
  type_4 *peVar2;
  char *fmt;
  char *end;
  type_5 uStack_14;
  
  uStack_14 = 0x1b0fb;
  value = var_1(valstr,&end,0x10);
  if (*end != '\0') {
    fmt = (char *)var_2(0,"%F%P: invalid hex number `%s\'\n",5);
    var_3(fmt,valstr);
  }
  var_4 = segments;
  while( true ) {
    if (var_4 == (type_3 *)0x0) {
      segment_00 = (type_3 *)var_5(0x10);
      segment_00->name = var_6 + 1;
      segment_00->value = value;
      segment_00->used = 0;
      segment_00->next = segments;
      segments = segment_00;
      peVar2 = var_7(value);
      var_8(var_6,peVar2,segment_00);
      return;
    }
    var_10 = var_9(var_4->name,var_6 + 1);
    if (var_10 == 0) break;
    var_4 = var_4->next;
  }
  var_4->value = value;
  peVar2 = var_7(value);
  var_8(var_6,peVar2,var_4);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (array_declarator declarator: (identifier) size: (number_literal)))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (subscript_expression argument: (identifier) index: (number_literal))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence) (escape_sequence)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (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: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (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 (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

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

void __regparm3 MASKED(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  char *local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x1b0fb;
  uVar1 = bfd_scan_vma(param_2,local_20,0x10);
  if (*local_20[0] != '\0') {
    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);
    FUN_000316f0(uVar4,param_2);
  }
  puVar3 = DAT_00094fd8;
  while( true ) {
    if (puVar3 == (undefined4 *)0x0) {
      puVar3 = (undefined4 *)FUN_000211a0(0x10);
      puVar3[1] = (char *)(param_1 + 1);
      puVar3[2] = uVar1;
      puVar3[3] = 0;
      *puVar3 = DAT_00094fd8;
      DAT_00094fd8 = puVar3;
      uVar1 = FUN_0002f350(uVar1);
      FUN_000267a0(param_1,uVar1,puVar3);
      return;
    }
    iVar2 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));
    if (iVar2 == 0) break;
    puVar3 = (undefined4 *)*puVar3;
  }
  puVar3[2] = uVar1;
  uVar1 = FUN_0002f350(uVar1);
  FUN_000267a0(param_1,uVar1,puVar3);
  return;
}

