
void set_segment_start(char *section,char *valstr)

{
  int iVar1;
  bfd_vma value;
  segment_struct *segment;
  etree_type *address;
  char *fmt;
  char *end;
  
  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;
  do {
    if (segment == (segment_type *)0x0) {
      segment = (segment_struct *)stat_alloc(0x20);
      segment->name = section + 1;
      segment->value = value;
      segment->used = 0;
      segment->next = segments;
      segments = segment;
LAB_001139dd:
      address = exp_intop(value);
      lang_section_start(section,address,segment);
      return;
    }
    iVar1 = strcmp(segment->name,section + 1);
    if (iVar1 == 0) {
      segment->value = value;
      goto LAB_001139dd;
    }
    segment = segment->next;
  } while( true );
}



void FUN_00113940(long param_1,undefined8 param_2)

{
  int iVar1;
  undefined8 uVar2;
  undefined8 *puVar3;
  undefined8 uVar4;
  char *local_30 [2];
  
  uVar2 = bfd_scan_vma(param_2,local_30,0x10);
  if (*local_30[0] != '\0') {
    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);
    FUN_00129380(uVar4,param_2);
  }
  puVar3 = DAT_002b6228;
  do {
    if (puVar3 == (undefined8 *)0x0) {
      puVar3 = (undefined8 *)FUN_00119720(0x20);
      puVar3[1] = (char *)(param_1 + 1);
      puVar3[2] = uVar2;
      *(undefined4 *)(puVar3 + 3) = 0;
      *puVar3 = DAT_002b6228;
      DAT_002b6228 = puVar3;
LAB_001139dd:
      uVar2 = FUN_001271c0(uVar2);
      FUN_0011e8b0(param_1,uVar2,puVar3);
      return;
    }
    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));
    if (iVar1 == 0) {
      puVar3[2] = uVar2;
      goto LAB_001139dd;
    }
    puVar3 = (undefined8 *)*puVar3;
  } while( true );
}


PUSH R13
MOV EDX,0x10
PUSH R12
MOV R12,RDI
PUSH RBP
PUSH RBX
MOV RBX,RSI
MOV RDI,RBX
SUB RSP,0x18
LEA RSI,[RSP + 0x8]
CALL 0x0010d0a0
MOV R13,RAX
MOV RAX,qword ptr [RSP + 0x8]
CMP byte ptr [RAX],0x0
JNZ 0x00113a00
MOV RBX,qword ptr [0x002b6228]
LEA RBP,[R12 + 0x1]
TEST RBX,RBX
JNZ 0x00113998
JMP 0x001139b0
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JZ 0x001139b0
MOV RDI,qword ptr [RBX + 0x8]
MOV RSI,RBP
CALL 0x0010d6a0
TEST EAX,EAX
JNZ 0x00113990
MOV qword ptr [RBX + 0x10],R13
JMP 0x001139dd
MOV EDI,0x20
CALL 0x00119720
MOV RBX,RAX
MOV qword ptr [RAX + 0x8],RBP
MOV qword ptr [RAX + 0x10],R13
MOV dword ptr [RAX + 0x18],0x0
MOV RAX,qword ptr [0x002b6228]
MOV qword ptr [RBX],RAX
MOV qword ptr [0x002b6228],RBX
MOV RDI,R13
CALL 0x001271c0
MOV RDX,RBX
MOV RDI,R12
MOV RSI,RAX
CALL 0x0011e8b0
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
XOR EDI,EDI
MOV EDX,0x5
LEA RSI,[0x168218]
CALL 0x0010d300
MOV RSI,RBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00129380
JMP 0x00113973
(translation_unit "void FUN_00113940(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  undefined8 uVar4;\n  char *local_30 [2];\n  \n  uVar2 = bfd_scan_vma(param_2,local_30,0x10);\n  if (*local_30[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_00129380(uVar4,param_2);\n  }\n  puVar3 = DAT_002b6228;\n  do {\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  } while( true );\n}\n\n" (function_definition "void FUN_00113940(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  undefined8 uVar4;\n  char *local_30 [2];\n  \n  uVar2 = bfd_scan_vma(param_2,local_30,0x10);\n  if (*local_30[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_00129380(uVar4,param_2);\n  }\n  puVar3 = DAT_002b6228;\n  do {\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  } while( true );\n}" primitive_type (function_declarator "FUN_00113940(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  undefined8 uVar4;\n  char *local_30 [2];\n  \n  uVar2 = bfd_scan_vma(param_2,local_30,0x10);\n  if (*local_30[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_00129380(uVar4,param_2);\n  }\n  puVar3 = DAT_002b6228;\n  do {\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "char *local_30 [2];" primitive_type (pointer_declarator "*local_30 [2]" * (array_declarator "local_30 [2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = bfd_scan_vma(param_2,local_30,0x10);" (assignment_expression "uVar2 = bfd_scan_vma(param_2,local_30,0x10)" identifier = (call_expression "bfd_scan_vma(param_2,local_30,0x10)" identifier (argument_list "(param_2,local_30,0x10)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (*local_30[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_00129380(uVar4,param_2);\n  }" if (parenthesized_expression "(*local_30[0] != '\0')" ( (binary_expression "*local_30[0] != '\0'" (pointer_expression "*local_30[0]" * (subscript_expression "local_30[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_00129380(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_00129380(uVar4,param_2);" (call_expression "FUN_00129380(uVar4,param_2)" identifier (argument_list "(uVar4,param_2)" ( identifier , identifier ))) ;) })) (expression_statement "puVar3 = DAT_002b6228;" (assignment_expression "puVar3 = DAT_002b6228" identifier = identifier) ;) (do_statement "do {\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  } while( true );" do (compound_statement "{\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  }" { (if_statement "if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }" if (parenthesized_expression "(puVar3 == (undefined8 *)0x0)" ( (binary_expression "puVar3 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }" { (expression_statement "puVar3 = (undefined8 *)FUN_00119720(0x20);" (assignment_expression "puVar3 = (undefined8 *)FUN_00119720(0x20)" identifier = (cast_expression "(undefined8 *)FUN_00119720(0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00119720(0x20)" identifier (argument_list "(0x20)" ( 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] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(puVar3 + 3) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 3) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 3)" * (cast_expression "(undefined4 *)(puVar3 + 3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 3)" ( (binary_expression "puVar3 + 3" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*puVar3 = DAT_002b6228;" (assignment_expression "*puVar3 = DAT_002b6228" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "DAT_002b6228 = puVar3;" (assignment_expression "DAT_002b6228 = puVar3" identifier = identifier) ;) (labeled_statement "LAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);" statement_identifier : (expression_statement "uVar2 = FUN_001271c0(uVar2);" (assignment_expression "uVar2 = FUN_001271c0(uVar2)" identifier = (call_expression "FUN_001271c0(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;)) (expression_statement "FUN_0011e8b0(param_1,uVar2,puVar3);" (call_expression "FUN_0011e8b0(param_1,uVar2,puVar3)" identifier (argument_list "(param_1,uVar2,puVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));" (assignment_expression "iVar1 = 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 (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }" { (expression_statement "puVar3[2] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_001139dd;" goto statement_identifier ;) })) (expression_statement "puVar3 = (undefined8 *)*puVar3;" (assignment_expression "puVar3 = (undefined8 *)*puVar3" identifier = (cast_expression "(undefined8 *)*puVar3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void set_segment_start(char *section,char *valstr)\n\n{\n  int iVar1;\n  bfd_vma value;\n  segment_struct *segment;\n  etree_type *address;\n  char *fmt;\n  char *end;\n  \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  do {\n    if (segment == (segment_type *)0x0) {\n      segment = (segment_struct *)stat_alloc(0x20);\n      segment->name = section + 1;\n      segment->value = value;\n      segment->used = 0;\n      segment->next = segments;\n      segments = segment;\nLAB_001139dd:\n      address = exp_intop(value);\n      lang_section_start(section,address,segment);\n      return;\n    }\n    iVar1 = strcmp(segment->name,section + 1);\n    if (iVar1 == 0) {\n      segment->value = value;\n      goto LAB_001139dd;\n    }\n    segment = segment->next;\n  } while( true );\n}\n\n" (function_definition "void set_segment_start(char *section,char *valstr)\n\n{\n  int iVar1;\n  bfd_vma value;\n  segment_struct *segment;\n  etree_type *address;\n  char *fmt;\n  char *end;\n  \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  do {\n    if (segment == (segment_type *)0x0) {\n      segment = (segment_struct *)stat_alloc(0x20);\n      segment->name = section + 1;\n      segment->value = value;\n      segment->used = 0;\n      segment->next = segments;\n      segments = segment;\nLAB_001139dd:\n      address = exp_intop(value);\n      lang_section_start(section,address,segment);\n      return;\n    }\n    iVar1 = strcmp(segment->name,section + 1);\n    if (iVar1 == 0) {\n      segment->value = value;\n      goto LAB_001139dd;\n    }\n    segment = segment->next;\n  } while( true );\n}" primitive_type (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  int iVar1;\n  bfd_vma value;\n  segment_struct *segment;\n  etree_type *address;\n  char *fmt;\n  char *end;\n  \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  do {\n    if (segment == (segment_type *)0x0) {\n      segment = (segment_struct *)stat_alloc(0x20);\n      segment->name = section + 1;\n      segment->value = value;\n      segment->used = 0;\n      segment->next = segments;\n      segments = segment;\nLAB_001139dd:\n      address = exp_intop(value);\n      lang_section_start(section,address,segment);\n      return;\n    }\n    iVar1 = strcmp(segment->name,section + 1);\n    if (iVar1 == 0) {\n      segment->value = value;\n      goto LAB_001139dd;\n    }\n    segment = segment->next;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bfd_vma value;" type_identifier identifier ;) (declaration "segment_struct *segment;" type_identifier (pointer_declarator "*segment" * identifier) ;) (declaration "etree_type *address;" type_identifier (pointer_declarator "*address" * identifier) ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (declaration "char *end;" primitive_type (pointer_declarator "*end" * identifier) ;) (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) ;) (do_statement "do {\n    if (segment == (segment_type *)0x0) {\n      segment = (segment_struct *)stat_alloc(0x20);\n      segment->name = section + 1;\n      segment->value = value;\n      segment->used = 0;\n      segment->next = segments;\n      segments = segment;\nLAB_001139dd:\n      address = exp_intop(value);\n      lang_section_start(section,address,segment);\n      return;\n    }\n    iVar1 = strcmp(segment->name,section + 1);\n    if (iVar1 == 0) {\n      segment->value = value;\n      goto LAB_001139dd;\n    }\n    segment = segment->next;\n  } while( true );" do (compound_statement "{\n    if (segment == (segment_type *)0x0) {\n      segment = (segment_struct *)stat_alloc(0x20);\n      segment->name = section + 1;\n      segment->value = value;\n      segment->used = 0;\n      segment->next = segments;\n      segments = segment;\nLAB_001139dd:\n      address = exp_intop(value);\n      lang_section_start(section,address,segment);\n      return;\n    }\n    iVar1 = strcmp(segment->name,section + 1);\n    if (iVar1 == 0) {\n      segment->value = value;\n      goto LAB_001139dd;\n    }\n    segment = segment->next;\n  }" { (if_statement "if (segment == (segment_type *)0x0) {\n      segment = (segment_struct *)stat_alloc(0x20);\n      segment->name = section + 1;\n      segment->value = value;\n      segment->used = 0;\n      segment->next = segments;\n      segments = segment;\nLAB_001139dd:\n      address = exp_intop(value);\n      lang_section_start(section,address,segment);\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 = (segment_struct *)stat_alloc(0x20);\n      segment->name = section + 1;\n      segment->value = value;\n      segment->used = 0;\n      segment->next = segments;\n      segments = segment;\nLAB_001139dd:\n      address = exp_intop(value);\n      lang_section_start(section,address,segment);\n      return;\n    }" { (expression_statement "segment = (segment_struct *)stat_alloc(0x20);" (assignment_expression "segment = (segment_struct *)stat_alloc(0x20)" identifier = (cast_expression "(segment_struct *)stat_alloc(0x20)" ( (type_descriptor "segment_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "stat_alloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "segment->name = section + 1;" (assignment_expression "segment->name = section + 1" (field_expression "segment->name" identifier -> field_identifier) = (binary_expression "section + 1" identifier + number_literal)) ;) (expression_statement "segment->value = value;" (assignment_expression "segment->value = value" (field_expression "segment->value" identifier -> field_identifier) = identifier) ;) (expression_statement "segment->used = 0;" (assignment_expression "segment->used = 0" (field_expression "segment->used" identifier -> field_identifier) = number_literal) ;) (expression_statement "segment->next = segments;" (assignment_expression "segment->next = segments" (field_expression "segment->next" identifier -> field_identifier) = identifier) ;) (expression_statement "segments = segment;" (assignment_expression "segments = segment" identifier = identifier) ;) (labeled_statement "LAB_001139dd:\n      address = exp_intop(value);" statement_identifier : (expression_statement "address = exp_intop(value);" (assignment_expression "address = exp_intop(value)" identifier = (call_expression "exp_intop(value)" identifier (argument_list "(value)" ( identifier )))) ;)) (expression_statement "lang_section_start(section,address,segment);" (call_expression "lang_section_start(section,address,segment)" identifier (argument_list "(section,address,segment)" ( 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) {\n      segment->value = value;\n      goto LAB_001139dd;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      segment->value = value;\n      goto LAB_001139dd;\n    }" { (expression_statement "segment->value = value;" (assignment_expression "segment->value = value" (field_expression "segment->value" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_001139dd;" goto statement_identifier ;) })) (expression_statement "segment = segment->next;" (assignment_expression "segment = segment->next" identifier = (field_expression "segment->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_00113940(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  undefined8 uVar4;\n  char *local_30 [2];\n  \n  uVar2 = bfd_scan_vma(param_2,local_30,0x10);\n  if (*local_30[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_00129380(uVar4,param_2);\n  }\n  puVar3 = DAT_002b6228;\n  do {\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  } while( true );\n}\n\n" (function_definition "void FUN_00113940(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  undefined8 uVar4;\n  char *local_30 [2];\n  \n  uVar2 = bfd_scan_vma(param_2,local_30,0x10);\n  if (*local_30[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_00129380(uVar4,param_2);\n  }\n  puVar3 = DAT_002b6228;\n  do {\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  } while( true );\n}" primitive_type (function_declarator "FUN_00113940(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  undefined8 uVar4;\n  char *local_30 [2];\n  \n  uVar2 = bfd_scan_vma(param_2,local_30,0x10);\n  if (*local_30[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_00129380(uVar4,param_2);\n  }\n  puVar3 = DAT_002b6228;\n  do {\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "char *local_30 [2];" primitive_type (pointer_declarator "*local_30 [2]" * (array_declarator "local_30 [2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = bfd_scan_vma(param_2,local_30,0x10);" (assignment_expression "uVar2 = bfd_scan_vma(param_2,local_30,0x10)" identifier = (call_expression "bfd_scan_vma(param_2,local_30,0x10)" identifier (argument_list "(param_2,local_30,0x10)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (*local_30[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_00129380(uVar4,param_2);\n  }" if (parenthesized_expression "(*local_30[0] != '\0')" ( (binary_expression "*local_30[0] != '\0'" (pointer_expression "*local_30[0]" * (subscript_expression "local_30[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_00129380(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_00129380(uVar4,param_2);" (call_expression "FUN_00129380(uVar4,param_2)" identifier (argument_list "(uVar4,param_2)" ( identifier , identifier ))) ;) })) (expression_statement "puVar3 = DAT_002b6228;" (assignment_expression "puVar3 = DAT_002b6228" identifier = identifier) ;) (do_statement "do {\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  } while( true );" do (compound_statement "{\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  }" { (if_statement "if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }" if (parenthesized_expression "(puVar3 == (undefined8 *)0x0)" ( (binary_expression "puVar3 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }" { (expression_statement "puVar3 = (undefined8 *)FUN_00119720(0x20);" (assignment_expression "puVar3 = (undefined8 *)FUN_00119720(0x20)" identifier = (cast_expression "(undefined8 *)FUN_00119720(0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00119720(0x20)" identifier (argument_list "(0x20)" ( 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] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(puVar3 + 3) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 3) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 3)" * (cast_expression "(undefined4 *)(puVar3 + 3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 3)" ( (binary_expression "puVar3 + 3" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*puVar3 = DAT_002b6228;" (assignment_expression "*puVar3 = DAT_002b6228" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "DAT_002b6228 = puVar3;" (assignment_expression "DAT_002b6228 = puVar3" identifier = identifier) ;) (labeled_statement "LAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);" statement_identifier : (expression_statement "uVar2 = FUN_001271c0(uVar2);" (assignment_expression "uVar2 = FUN_001271c0(uVar2)" identifier = (call_expression "FUN_001271c0(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;)) (expression_statement "FUN_0011e8b0(param_1,uVar2,puVar3);" (call_expression "FUN_0011e8b0(param_1,uVar2,puVar3)" identifier (argument_list "(param_1,uVar2,puVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));" (assignment_expression "iVar1 = 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 (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }" { (expression_statement "puVar3[2] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_001139dd;" goto statement_identifier ;) })) (expression_statement "puVar3 = (undefined8 *)*puVar3;" (assignment_expression "puVar3 = (undefined8 *)*puVar3" identifier = (cast_expression "(undefined8 *)*puVar3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) 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 ])) ;) (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) ;) (do_statement do (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (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) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_00113940(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  undefined8 uVar4;\n  char *local_30 [2];\n  \n  uVar2 = bfd_scan_vma(param_2,local_30,0x10);\n  if (*local_30[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_00129380(uVar4,param_2);\n  }\n  puVar3 = DAT_002b6228;\n  do {\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_00113940(long param_1,undefined8 param_2)" (identifier "FUN_00113940") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  undefined8 uVar4;\n  char *local_30 [2];\n  \n  uVar2 = bfd_scan_vma(param_2,local_30,0x10);\n  if (*local_30[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_00129380(uVar4,param_2);\n  }\n  puVar3 = DAT_002b6228;\n  do {\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "undefined8 *puVar3;" (type_identifier "undefined8") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "char *local_30 [2];" (primitive_type "char") (pointer_declarator "*local_30 [2]" (* "*") (array_declarator "local_30 [2]" (identifier "local_30") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar2 = bfd_scan_vma(param_2,local_30,0x10);" (assignment_expression "uVar2 = bfd_scan_vma(param_2,local_30,0x10)" (identifier "uVar2") (= "=") (call_expression "bfd_scan_vma(param_2,local_30,0x10)" (identifier "bfd_scan_vma") (argument_list "(param_2,local_30,0x10)" (( "(") (identifier "param_2") (, ",") (identifier "local_30") (, ",") (number_literal "0x10") () ")")))) (; ";")) (if_statement "if (*local_30[0] != '\0') {\n    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);\n    FUN_00129380(uVar4,param_2);\n  }" (if "if") (parenthesized_expression "(*local_30[0] != '\0')" (( "(") (binary_expression "*local_30[0] != '\0'" (pointer_expression "*local_30[0]" (* "*") (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (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_00129380(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_00129380(uVar4,param_2);" (call_expression "FUN_00129380(uVar4,param_2)" (identifier "FUN_00129380") (argument_list "(uVar4,param_2)" (( "(") (identifier "uVar4") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar3 = DAT_002b6228;" (assignment_expression "puVar3 = DAT_002b6228" (identifier "puVar3") (= "=") (identifier "DAT_002b6228")) (; ";")) (do_statement "do {\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  } while( true );" (do "do") (compound_statement "{\n    if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }\n    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));\n    if (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }\n    puVar3 = (undefined8 *)*puVar3;\n  }" ({ "{") (if_statement "if (puVar3 == (undefined8 *)0x0) {\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }" (if "if") (parenthesized_expression "(puVar3 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined8 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar3 = (undefined8 *)FUN_00119720(0x20);\n      puVar3[1] = (char *)(param_1 + 1);\n      puVar3[2] = uVar2;\n      *(undefined4 *)(puVar3 + 3) = 0;\n      *puVar3 = DAT_002b6228;\n      DAT_002b6228 = puVar3;\nLAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);\n      FUN_0011e8b0(param_1,uVar2,puVar3);\n      return;\n    }" ({ "{") (expression_statement "puVar3 = (undefined8 *)FUN_00119720(0x20);" (assignment_expression "puVar3 = (undefined8 *)FUN_00119720(0x20)" (identifier "puVar3") (= "=") (cast_expression "(undefined8 *)FUN_00119720(0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00119720(0x20)" (identifier "FUN_00119720") (argument_list "(0x20)" (( "(") (number_literal "0x20") () ")"))))) (; ";")) (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] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 3) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 3) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 3)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 3)" (( "(") (binary_expression "puVar3 + 3" (identifier "puVar3") (+ "+") (number_literal "3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar3 = DAT_002b6228;" (assignment_expression "*puVar3 = DAT_002b6228" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "DAT_002b6228")) (; ";")) (expression_statement "DAT_002b6228 = puVar3;" (assignment_expression "DAT_002b6228 = puVar3" (identifier "DAT_002b6228") (= "=") (identifier "puVar3")) (; ";")) (labeled_statement "LAB_001139dd:\n      uVar2 = FUN_001271c0(uVar2);" (statement_identifier "LAB_001139dd") (: ":") (expression_statement "uVar2 = FUN_001271c0(uVar2);" (assignment_expression "uVar2 = FUN_001271c0(uVar2)" (identifier "uVar2") (= "=") (call_expression "FUN_001271c0(uVar2)" (identifier "FUN_001271c0") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";"))) (expression_statement "FUN_0011e8b0(param_1,uVar2,puVar3);" (call_expression "FUN_0011e8b0(param_1,uVar2,puVar3)" (identifier "FUN_0011e8b0") (argument_list "(param_1,uVar2,puVar3)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") (, ",") (identifier "puVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));" (assignment_expression "iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1))" (identifier "iVar1") (= "=") (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 (iVar1 == 0) {\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar3[2] = uVar2;\n      goto LAB_001139dd;\n    }" ({ "{") (expression_statement "puVar3[2] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (goto_statement "goto LAB_001139dd;" (goto "goto") (statement_identifier "LAB_001139dd") (; ";")) (} "}"))) (expression_statement "puVar3 = (undefined8 *)*puVar3;" (assignment_expression "puVar3 = (undefined8 *)*puVar3" (identifier "puVar3") (= "=") (cast_expression "(undefined8 *)*puVar3" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

void function_1(char *var_6,char *valstr)

{
  int var_10;
  type_1 value;
  type_2 *var_4;
  type_3 *address;
  char *fmt;
  char *end;
  
  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;
  do {
    if (var_4 == (type_4 *)0x0) {
      var_4 = (type_2 *)var_5(0x20);
      var_4->name = var_6 + 1;
      var_4->value = value;
      var_4->used = 0;
      var_4->next = segments;
      segments = var_4;
LAB_001139dd:
      address = var_7(value);
      var_8(var_6,address,var_4);
      return;
    }
    var_10 = var_9(var_4->name,var_6 + 1);
    if (var_10 == 0) {
      var_4->value = value;
      goto LAB_001139dd;
    }
    var_4 = var_4->next;
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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)))) (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))) (do_statement 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_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: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (true))))))

void MASKED(long param_1,undefined8 param_2)

{
  int iVar1;
  undefined8 uVar2;
  undefined8 *puVar3;
  undefined8 uVar4;
  char *local_30 [2];
  
  uVar2 = bfd_scan_vma(param_2,local_30,0x10);
  if (*local_30[0] != '\0') {
    uVar4 = dcgettext(0,"%F%P: invalid hex number `%s\'\n",5);
    FUN_00129380(uVar4,param_2);
  }
  puVar3 = DAT_002b6228;
  do {
    if (puVar3 == (undefined8 *)0x0) {
      puVar3 = (undefined8 *)FUN_00119720(0x20);
      puVar3[1] = (char *)(param_1 + 1);
      puVar3[2] = uVar2;
      *(undefined4 *)(puVar3 + 3) = 0;
      *puVar3 = DAT_002b6228;
      DAT_002b6228 = puVar3;
LAB_001139dd:
      uVar2 = FUN_001271c0(uVar2);
      FUN_0011e8b0(param_1,uVar2,puVar3);
      return;
    }
    iVar1 = strcmp((char *)puVar3[1],(char *)(param_1 + 1));
    if (iVar1 == 0) {
      puVar3[2] = uVar2;
      goto LAB_001139dd;
    }
    puVar3 = (undefined8 *)*puVar3;
  } while( true );
}

