
/* DWARF original prototype: char * next_name(Dwarf_pubnames_table * this, uint8_t * flag_byte) */

char * __thiscall
gold::Dwarf_pubnames_table::next_name(Dwarf_pubnames_table *this,uint8_t *flag_byte)

{
  uchar *puVar1;
  uchar *puVar2;
  uchar *puVar3;
  uchar uVar4;
  uchar *puVar5;
  
  puVar2 = this->pinfo_ + this->offset_size_;
  if (this->end_of_table_ <= puVar2) {
    return (char *)0x0;
  }
  uVar4 = '\0';
  if (this->is_gnu_style_ != false) {
    uVar4 = *puVar2;
    puVar2 = puVar2 + 1;
  }
  *flag_byte = uVar4;
  puVar1 = this->buffer_end_;
  puVar3 = puVar2;
  if (puVar2 < puVar1) {
    uVar4 = *puVar2;
    puVar5 = puVar2;
    while (uVar4 != '\0') {
      puVar5 = puVar5 + 1;
      puVar3 = puVar1;
      if (puVar1 == puVar5) goto LAB_0017406c;
      uVar4 = *puVar5;
    }
    this->pinfo_ = puVar5 + 1;
  }
  else {
LAB_0017406c:
    this->pinfo_ = puVar3;
  }
  return (char *)puVar2;
}



char * FUN_00174030(int param_1,char *param_2)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  
  pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));
  if (*(char **)(param_1 + 0x18) <= pcVar2) {
    return (char *)0x0;
  }
  cVar4 = '\0';
  if (*(char *)(param_1 + 0x1d) != '\0') {
    cVar4 = *pcVar2;
    pcVar2 = pcVar2 + 1;
  }
  *param_2 = cVar4;
  pcVar1 = *(char **)(param_1 + 8);
  pcVar3 = pcVar2;
  if (pcVar2 < pcVar1) {
    cVar4 = *pcVar2;
    pcVar5 = pcVar2;
    while (cVar4 != '\0') {
      pcVar5 = pcVar5 + 1;
      pcVar3 = pcVar1;
      if (pcVar1 == pcVar5) goto LAB_0017406c;
      cVar4 = *pcVar5;
    }
    *(char **)(param_1 + 0x14) = pcVar5 + 1;
  }
  else {
LAB_0017406c:
    *(char **)(param_1 + 0x14) = pcVar3;
  }
  return pcVar2;
}


PUSH EBX
MOV EBX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EBX + 0x10]
ADD EAX,dword ptr [EBX + 0x14]
CMP EAX,dword ptr [EBX + 0x18]
JNC 0x00174090
XOR EDX,EDX
CMP byte ptr [EBX + 0x1d],0x0
JNZ 0x00174078
MOV ECX,dword ptr [ESP + 0xc]
MOV byte ptr [ECX],DL
MOV ECX,dword ptr [EBX + 0x8]
CMP ECX,EAX
JBE 0x00174094
CMP byte ptr [EAX],0x0
MOV EDX,EAX
JNZ 0x00174065
JMP 0x00174080
CMP byte ptr [EDX],0x0
JZ 0x00174080
ADD EDX,0x1
CMP ECX,EDX
JNZ 0x00174060
MOV dword ptr [EBX + 0x14],ECX
POP EBX
RET
MOVZX EDX,byte ptr [EAX]
ADD EAX,0x1
JMP 0x00174048
LEA ECX,[EDX + 0x1]
MOV dword ptr [EBX + 0x14],ECX
JMP 0x0017406f
XOR EAX,EAX
POP EBX
RET
MOV ECX,EAX
JMP 0x0017406c
(translation_unit "char * FUN_00174030(int param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));\n  if (*(char **)(param_1 + 0x18) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x1d) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 8);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }\n  return pcVar2;\n}\n\n" (function_definition "char * FUN_00174030(int param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));\n  if (*(char **)(param_1 + 0x18) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x1d) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 8);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* FUN_00174030(int param_1,char *param_2)" * (function_declarator "FUN_00174030(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));\n  if (*(char **)(param_1 + 0x18) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x1d) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 8);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }\n  return pcVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));" (assignment_expression "pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14))" identifier = (cast_expression "(char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14))" ( (binary_expression "*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14)" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )))) ;) (if_statement "if (*(char **)(param_1 + 0x18) <= pcVar2) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "(*(char **)(param_1 + 0x18) <= pcVar2)" ( (binary_expression "*(char **)(param_1 + 0x18) <= pcVar2" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (*(char *)(param_1 + 0x1d) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x1d) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x1d) != '\0'" (pointer_expression "*(char *)(param_1 + 0x1d)" * (cast_expression "(char *)(param_1 + 0x1d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d)" ( (binary_expression "param_1 + 0x1d" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }" { (expression_statement "cVar4 = *pcVar2;" (assignment_expression "cVar4 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "*param_2 = cVar4;" (assignment_expression "*param_2 = cVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "pcVar1 = *(char **)(param_1 + 8);" (assignment_expression "pcVar1 = *(char **)(param_1 + 8)" identifier = (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (if_statement "if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }" if (parenthesized_expression "(pcVar2 < pcVar1)" ( (binary_expression "pcVar2 < pcVar1" identifier < identifier) )) (compound_statement "{\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }" { (expression_statement "cVar4 = *pcVar2;" (assignment_expression "cVar4 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar5 = pcVar2;" (assignment_expression "pcVar5 = pcVar2" identifier = identifier) ;) (while_statement "while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }" while (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }" { (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar1;" (assignment_expression "pcVar3 = pcVar1" identifier = identifier) ;) (if_statement "if (pcVar1 == pcVar5) goto LAB_0017406c;" if (parenthesized_expression "(pcVar1 == pcVar5)" ( (binary_expression "pcVar1 == pcVar5" identifier == identifier) )) (goto_statement "goto LAB_0017406c;" goto statement_identifier ;)) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) })) (expression_statement "*(char **)(param_1 + 0x14) = pcVar5 + 1;" (assignment_expression "*(char **)(param_1 + 0x14) = pcVar5 + 1" (pointer_expression "*(char **)(param_1 + 0x14)" * (cast_expression "(char **)(param_1 + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) }) (else_clause "else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }" else (compound_statement "{\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }" { (labeled_statement "LAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;" statement_identifier : (expression_statement "*(char **)(param_1 + 0x14) = pcVar3;" (assignment_expression "*(char **)(param_1 + 0x14) = pcVar3" (pointer_expression "*(char **)(param_1 + 0x14)" * (cast_expression "(char **)(param_1 + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;)) }))) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: char * next_name(Dwarf_pubnames_table * this, uint8_t * flag_byte) */\n\nchar * __thiscall\ngold::Dwarf_pubnames_table::next_name(Dwarf_pubnames_table *this,uint8_t *flag_byte)\n\n{\n  uchar *puVar1;\n  uchar *puVar2;\n  uchar *puVar3;\n  uchar uVar4;\n  uchar *puVar5;\n  \n  puVar2 = this->pinfo_ + this->offset_size_;\n  if (this->end_of_table_ <= puVar2) {\n    return (char *)0x0;\n  }\n  uVar4 = '\0';\n  if (this->is_gnu_style_ != false) {\n    uVar4 = *puVar2;\n    puVar2 = puVar2 + 1;\n  }\n  *flag_byte = uVar4;\n  puVar1 = this->buffer_end_;\n  puVar3 = puVar2;\n  if (puVar2 < puVar1) {\n    uVar4 = *puVar2;\n    puVar5 = puVar2;\n    while (uVar4 != '\0') {\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) goto LAB_0017406c;\n      uVar4 = *puVar5;\n    }\n    this->pinfo_ = puVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    this->pinfo_ = puVar3;\n  }\n  return (char *)puVar2;\n}\n\n" comment (declaration "char * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "gold::Dwarf_pubnames_table::next_name(Dwarf_pubnames_table *this,uint8_t *flag_byte)\n\n{\n  uchar *puVar1;\n  uchar *puVar2;\n  uchar *puVar3;\n  uchar uVar4;\n  uchar *puVar5;\n  \n  puVar2 = this->pinfo_ + this->offset_size_;\n  if (this->end_of_table_ <= puVar2) {\n    return (char *)0x0;\n  }\n  uVar4 = '\0';\n  if (this->is_gnu_style_ != false) {\n    uVar4 = *puVar2;\n    puVar2 = puVar2 + 1;\n  }\n  *flag_byte = uVar4;\n  puVar1 = this->buffer_end_;\n  puVar3 = puVar2;\n  if (puVar2 < puVar1) {\n    uVar4 = *puVar2;\n    puVar5 = puVar2;\n    while (uVar4 != '\0') {\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) goto LAB_0017406c;\n      uVar4 = *puVar5;\n    }\n    this->pinfo_ = puVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    this->pinfo_ = puVar3;\n  }\n  return (char *)puVar2;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "Dwarf_pubnames_table::next_name(Dwarf_pubnames_table *this,uint8_t *flag_byte)\n\n{\n  uchar *puVar1;\n  uchar *puVar2;\n  uchar *puVar3;\n  uchar uVar4;\n  uchar *puVar5;\n  \n  puVar2 = this->pinfo_ + this->offset_size_;\n  if (this->end_of_table_ <= puVar2) {\n    return (char *)0x0;\n  }\n  uVar4 = '\0';\n  if (this->is_gnu_style_ != false) {\n    uVar4 = *puVar2;\n    puVar2 = puVar2 + 1;\n  }\n  *flag_byte = uVar4;\n  puVar1 = this->buffer_end_;\n  puVar3 = puVar2;\n  if (puVar2 < puVar1) {\n    uVar4 = *puVar2;\n    puVar5 = puVar2;\n    while (uVar4 != '\0') {\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) goto LAB_0017406c;\n      uVar4 = *puVar5;\n    }\n    this->pinfo_ = puVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    this->pinfo_ = puVar3;\n  }\n  return (char *)puVar2;\n}" statement_identifier : (ERROR ":next_name(Dwarf_pubnames_table *this,uint8_t *flag_byte)" : (call_expression "next_name(Dwarf_pubnames_table *this,uint8_t *flag_byte)" identifier (argument_list "(Dwarf_pubnames_table *this,uint8_t *flag_byte)" ( (binary_expression "Dwarf_pubnames_table *this" identifier * identifier) , (binary_expression "uint8_t *flag_byte" identifier * identifier) )))) (compound_statement "{\n  uchar *puVar1;\n  uchar *puVar2;\n  uchar *puVar3;\n  uchar uVar4;\n  uchar *puVar5;\n  \n  puVar2 = this->pinfo_ + this->offset_size_;\n  if (this->end_of_table_ <= puVar2) {\n    return (char *)0x0;\n  }\n  uVar4 = '\0';\n  if (this->is_gnu_style_ != false) {\n    uVar4 = *puVar2;\n    puVar2 = puVar2 + 1;\n  }\n  *flag_byte = uVar4;\n  puVar1 = this->buffer_end_;\n  puVar3 = puVar2;\n  if (puVar2 < puVar1) {\n    uVar4 = *puVar2;\n    puVar5 = puVar2;\n    while (uVar4 != '\0') {\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) goto LAB_0017406c;\n      uVar4 = *puVar5;\n    }\n    this->pinfo_ = puVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    this->pinfo_ = puVar3;\n  }\n  return (char *)puVar2;\n}" { (declaration "uchar *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uchar *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uchar *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uchar uVar4;" type_identifier identifier ;) (declaration "uchar *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar2 = this->pinfo_ + this->offset_size_;" (assignment_expression "puVar2 = this->pinfo_ + this->offset_size_" identifier = (binary_expression "this->pinfo_ + this->offset_size_" (field_expression "this->pinfo_" identifier -> field_identifier) + (field_expression "this->offset_size_" identifier -> field_identifier))) ;) (if_statement "if (this->end_of_table_ <= puVar2) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "(this->end_of_table_ <= puVar2)" ( (binary_expression "this->end_of_table_ <= puVar2" (field_expression "this->end_of_table_" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "uVar4 = '\0';" (assignment_expression "uVar4 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (this->is_gnu_style_ != false) {\n    uVar4 = *puVar2;\n    puVar2 = puVar2 + 1;\n  }" if (parenthesized_expression "(this->is_gnu_style_ != false)" ( (binary_expression "this->is_gnu_style_ != false" (field_expression "this->is_gnu_style_" identifier -> field_identifier) != false) )) (compound_statement "{\n    uVar4 = *puVar2;\n    puVar2 = puVar2 + 1;\n  }" { (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "*flag_byte = uVar4;" (assignment_expression "*flag_byte = uVar4" (pointer_expression "*flag_byte" * identifier) = identifier) ;) (expression_statement "puVar1 = this->buffer_end_;" (assignment_expression "puVar1 = this->buffer_end_" identifier = (field_expression "this->buffer_end_" identifier -> field_identifier)) ;) (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" identifier = identifier) ;) (if_statement "if (puVar2 < puVar1) {\n    uVar4 = *puVar2;\n    puVar5 = puVar2;\n    while (uVar4 != '\0') {\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) goto LAB_0017406c;\n      uVar4 = *puVar5;\n    }\n    this->pinfo_ = puVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    this->pinfo_ = puVar3;\n  }" if (parenthesized_expression "(puVar2 < puVar1)" ( (binary_expression "puVar2 < puVar1" identifier < identifier) )) (compound_statement "{\n    uVar4 = *puVar2;\n    puVar5 = puVar2;\n    while (uVar4 != '\0') {\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) goto LAB_0017406c;\n      uVar4 = *puVar5;\n    }\n    this->pinfo_ = puVar5 + 1;\n  }" { (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" identifier = identifier) ;) (while_statement "while (uVar4 != '\0') {\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) goto LAB_0017406c;\n      uVar4 = *puVar5;\n    }" while (parenthesized_expression "(uVar4 != '\0')" ( (binary_expression "uVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) goto LAB_0017406c;\n      uVar4 = *puVar5;\n    }" { (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" identifier = identifier) ;) (if_statement "if (puVar1 == puVar5) goto LAB_0017406c;" if (parenthesized_expression "(puVar1 == puVar5)" ( (binary_expression "puVar1 == puVar5" identifier == identifier) )) (goto_statement "goto LAB_0017406c;" goto statement_identifier ;)) (expression_statement "uVar4 = *puVar5;" (assignment_expression "uVar4 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) })) (expression_statement "this->pinfo_ = puVar5 + 1;" (assignment_expression "this->pinfo_ = puVar5 + 1" (field_expression "this->pinfo_" identifier -> field_identifier) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) (else_clause "else {\nLAB_0017406c:\n    this->pinfo_ = puVar3;\n  }" else (compound_statement "{\nLAB_0017406c:\n    this->pinfo_ = puVar3;\n  }" { (labeled_statement "LAB_0017406c:\n    this->pinfo_ = puVar3;" statement_identifier : (expression_statement "this->pinfo_ = puVar3;" (assignment_expression "this->pinfo_ = puVar3" (field_expression "this->pinfo_" identifier -> field_identifier) = identifier) ;)) }))) (return_statement "return (char *)puVar2;" return (cast_expression "(char *)puVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) }))))
(translation_unit "char * FUN_00174030(int param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));\n  if (*(char **)(param_1 + 0x18) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x1d) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 8);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }\n  return pcVar2;\n}\n\n" (function_definition "char * FUN_00174030(int param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));\n  if (*(char **)(param_1 + 0x18) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x1d) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 8);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* FUN_00174030(int param_1,char *param_2)" * (function_declarator "FUN_00174030(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));\n  if (*(char **)(param_1 + 0x18) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x1d) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 8);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }\n  return pcVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));" (assignment_expression "pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14))" identifier = (cast_expression "(char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14))" ( (binary_expression "*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14)" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )))) ;) (if_statement "if (*(char **)(param_1 + 0x18) <= pcVar2) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "(*(char **)(param_1 + 0x18) <= pcVar2)" ( (binary_expression "*(char **)(param_1 + 0x18) <= pcVar2" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (*(char *)(param_1 + 0x1d) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x1d) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x1d) != '\0'" (pointer_expression "*(char *)(param_1 + 0x1d)" * (cast_expression "(char *)(param_1 + 0x1d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d)" ( (binary_expression "param_1 + 0x1d" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }" { (expression_statement "cVar4 = *pcVar2;" (assignment_expression "cVar4 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "*param_2 = cVar4;" (assignment_expression "*param_2 = cVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "pcVar1 = *(char **)(param_1 + 8);" (assignment_expression "pcVar1 = *(char **)(param_1 + 8)" identifier = (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (if_statement "if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }" if (parenthesized_expression "(pcVar2 < pcVar1)" ( (binary_expression "pcVar2 < pcVar1" identifier < identifier) )) (compound_statement "{\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }" { (expression_statement "cVar4 = *pcVar2;" (assignment_expression "cVar4 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar5 = pcVar2;" (assignment_expression "pcVar5 = pcVar2" identifier = identifier) ;) (while_statement "while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }" while (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }" { (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar1;" (assignment_expression "pcVar3 = pcVar1" identifier = identifier) ;) (if_statement "if (pcVar1 == pcVar5) goto LAB_0017406c;" if (parenthesized_expression "(pcVar1 == pcVar5)" ( (binary_expression "pcVar1 == pcVar5" identifier == identifier) )) (goto_statement "goto LAB_0017406c;" goto statement_identifier ;)) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) })) (expression_statement "*(char **)(param_1 + 0x14) = pcVar5 + 1;" (assignment_expression "*(char **)(param_1 + 0x14) = pcVar5 + 1" (pointer_expression "*(char **)(param_1 + 0x14)" * (cast_expression "(char **)(param_1 + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) }) (else_clause "else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }" else (compound_statement "{\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }" { (labeled_statement "LAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;" statement_identifier : (expression_statement "*(char **)(param_1 + 0x14) = pcVar3;" (assignment_expression "*(char **)(param_1 + 0x14) = pcVar3" (pointer_expression "*(char **)(param_1 + 0x14)" * (cast_expression "(char **)(param_1 + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;)) }))) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) }))) (return_statement return IDENT ;) })))
(function_definition "char * FUN_00174030(int param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));\n  if (*(char **)(param_1 + 0x18) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x1d) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 8);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }\n  return pcVar2;\n}" (primitive_type "char") (pointer_declarator "* FUN_00174030(int param_1,char *param_2)" (* "*") (function_declarator "FUN_00174030(int param_1,char *param_2)" (identifier "FUN_00174030") (parameter_list "(int param_1,char *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));\n  if (*(char **)(param_1 + 0x18) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x1d) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 8);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }\n  return pcVar2;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (expression_statement "pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));" (assignment_expression "pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14))" (identifier "pcVar2") (= "=") (cast_expression "(char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14))" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14)" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) () ")")))) (; ";")) (if_statement "if (*(char **)(param_1 + 0x18) <= pcVar2) {\n    return (char *)0x0;\n  }" (if "if") (parenthesized_expression "(*(char **)(param_1 + 0x18) <= pcVar2)" (( "(") (binary_expression "*(char **)(param_1 + 0x18) <= pcVar2" (pointer_expression "*(char **)(param_1 + 0x18)" (* "*") (cast_expression "(char **)(param_1 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (<= "<=") (identifier "pcVar2")) () ")")) (compound_statement "{\n    return (char *)0x0;\n  }" ({ "{") (return_statement "return (char *)0x0;" (return "return") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" (identifier "cVar4") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (if_statement "if (*(char *)(param_1 + 0x1d) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x1d) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x1d) != '\0'" (pointer_expression "*(char *)(param_1 + 0x1d)" (* "*") (cast_expression "(char *)(param_1 + 0x1d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1d)" (( "(") (binary_expression "param_1 + 0x1d" (identifier "param_1") (+ "+") (number_literal "0x1d")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }" ({ "{") (expression_statement "cVar4 = *pcVar2;" (assignment_expression "cVar4 = *pcVar2" (identifier "cVar4") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*param_2 = cVar4;" (assignment_expression "*param_2 = cVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "cVar4")) (; ";")) (expression_statement "pcVar1 = *(char **)(param_1 + 8);" (assignment_expression "pcVar1 = *(char **)(param_1 + 8)" (identifier "pcVar1") (= "=") (pointer_expression "*(char **)(param_1 + 8)" (* "*") (cast_expression "(char **)(param_1 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" (identifier "pcVar3") (= "=") (identifier "pcVar2")) (; ";")) (if_statement "if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }\n  else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }" (if "if") (parenthesized_expression "(pcVar2 < pcVar1)" (( "(") (binary_expression "pcVar2 < pcVar1" (identifier "pcVar2") (< "<") (identifier "pcVar1")) () ")")) (compound_statement "{\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }\n    *(char **)(param_1 + 0x14) = pcVar5 + 1;\n  }" ({ "{") (expression_statement "cVar4 = *pcVar2;" (assignment_expression "cVar4 = *pcVar2" (identifier "cVar4") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (expression_statement "pcVar5 = pcVar2;" (assignment_expression "pcVar5 = pcVar2" (identifier "pcVar5") (= "=") (identifier "pcVar2")) (; ";")) (while_statement "while (cVar4 != '\0') {\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }" (while "while") (parenthesized_expression "(cVar4 != '\0')" (( "(") (binary_expression "cVar4 != '\0'" (identifier "cVar4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) goto LAB_0017406c;\n      cVar4 = *pcVar5;\n    }" ({ "{") (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar3 = pcVar1;" (assignment_expression "pcVar3 = pcVar1" (identifier "pcVar3") (= "=") (identifier "pcVar1")) (; ";")) (if_statement "if (pcVar1 == pcVar5) goto LAB_0017406c;" (if "if") (parenthesized_expression "(pcVar1 == pcVar5)" (( "(") (binary_expression "pcVar1 == pcVar5" (identifier "pcVar1") (== "==") (identifier "pcVar5")) () ")")) (goto_statement "goto LAB_0017406c;" (goto "goto") (statement_identifier "LAB_0017406c") (; ";"))) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" (identifier "cVar4") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (} "}"))) (expression_statement "*(char **)(param_1 + 0x14) = pcVar5 + 1;" (assignment_expression "*(char **)(param_1 + 0x14) = pcVar5 + 1" (pointer_expression "*(char **)(param_1 + 0x14)" (* "*") (cast_expression "(char **)(param_1 + 0x14)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }" (else "else") (compound_statement "{\nLAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;\n  }" ({ "{") (labeled_statement "LAB_0017406c:\n    *(char **)(param_1 + 0x14) = pcVar3;" (statement_identifier "LAB_0017406c") (: ":") (expression_statement "*(char **)(param_1 + 0x14) = pcVar3;" (assignment_expression "*(char **)(param_1 + 0x14) = pcVar3" (pointer_expression "*(char **)(param_1 + 0x14)" (* "*") (cast_expression "(char **)(param_1 + 0x14)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "pcVar3")) (; ";"))) (} "}")))) (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}")))

/* DWARF original prototype: char * next_name(Dwarf_pubnames_table * this, uint8_t * flag_byte) */

char * __thiscall
gold::Dwarf_pubnames_table::next_name(Dwarf_pubnames_table *this,uint8_t *flag_byte)

{
  type_1 *var_2;
  type_1 *var_1;
  type_1 *puVar3;
  type_1 var_3;
  type_1 *var_4;
  
  var_1 = this->pinfo_ + this->offset_size_;
  if (this->end_of_table_ <= var_1) {
    return (char *)0x0;
  }
  var_3 = '\0';
  if (this->is_gnu_style_ != false) {
    var_3 = *var_1;
    var_1 = var_1 + 1;
  }
  *flag_byte = var_3;
  var_2 = this->buffer_end_;
  puVar3 = var_1;
  if (var_1 < var_2) {
    var_3 = *var_1;
    var_4 = var_1;
    while (var_3 != '\0') {
      var_4 = var_4 + 1;
      puVar3 = var_2;
      if (var_2 == var_4) goto LAB_0017406c;
      var_3 = *var_4;
    }
    this->pinfo_ = var_4 + 1;
  }
  else {
LAB_0017406c:
    this->pinfo_ = puVar3;
  }
  return (char *)var_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))))) (return_statement (identifier)))))

char * MASKED(int param_1,char *param_2)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  
  pcVar2 = (char *)(*(int *)(param_1 + 0x10) + *(int *)(param_1 + 0x14));
  if (*(char **)(param_1 + 0x18) <= pcVar2) {
    return (char *)0x0;
  }
  cVar4 = '\0';
  if (*(char *)(param_1 + 0x1d) != '\0') {
    cVar4 = *pcVar2;
    pcVar2 = pcVar2 + 1;
  }
  *param_2 = cVar4;
  pcVar1 = *(char **)(param_1 + 8);
  pcVar3 = pcVar2;
  if (pcVar2 < pcVar1) {
    cVar4 = *pcVar2;
    pcVar5 = pcVar2;
    while (cVar4 != '\0') {
      pcVar5 = pcVar5 + 1;
      pcVar3 = pcVar1;
      if (pcVar1 == pcVar5) goto LAB_0017406c;
      cVar4 = *pcVar5;
    }
    *(char **)(param_1 + 0x14) = pcVar5 + 1;
  }
  else {
LAB_0017406c:
    *(char **)(param_1 + 0x14) = pcVar3;
  }
  return pcVar2;
}

