
/* 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)

{
  uint8_t *puVar1;
  uint8_t *puVar2;
  uint8_t *puVar3;
  uint8_t uVar4;
  uint8_t *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( true ) {
      if (uVar4 == '\0') {
        this->pinfo_ = puVar5 + 1;
        return (char *)puVar2;
      }
      puVar5 = puVar5 + 1;
      puVar3 = puVar1;
      if (puVar1 == puVar5) break;
      uVar4 = *puVar5;
    }
  }
  this->pinfo_ = puVar3;
  return (char *)puVar2;
}



char * FUN_0016b440(long param_1,char *param_2)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  
  pcVar2 = (char *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));
  if (*(char **)(param_1 + 0x28) <= pcVar2) {
    return (char *)0x0;
  }
  cVar4 = '\0';
  if (*(char *)(param_1 + 0x31) != '\0') {
    cVar4 = *pcVar2;
    pcVar2 = pcVar2 + 1;
  }
  *param_2 = cVar4;
  pcVar1 = *(char **)(param_1 + 0x10);
  pcVar3 = pcVar2;
  if (pcVar2 < pcVar1) {
    cVar4 = *pcVar2;
    pcVar5 = pcVar2;
    while( true ) {
      if (cVar4 == '\0') {
        *(char **)(param_1 + 0x20) = pcVar5 + 1;
        return pcVar2;
      }
      pcVar5 = pcVar5 + 1;
      pcVar3 = pcVar1;
      if (pcVar1 == pcVar5) break;
      cVar4 = *pcVar5;
    }
  }
  *(char **)(param_1 + 0x20) = pcVar3;
  return pcVar2;
}


MOV EAX,dword ptr [RDI + 0x1c]
ADD RAX,qword ptr [RDI + 0x20]
CMP RAX,qword ptr [RDI + 0x28]
JNC 0x0016b4a8
XOR EDX,EDX
CMP byte ptr [RDI + 0x31],0x0
JNZ 0x0016b488
MOV byte ptr [RSI],DL
MOV RCX,qword ptr [RDI + 0x10]
CMP RCX,RAX
JBE 0x0016b4ab
CMP byte ptr [RAX],0x0
MOV RDX,RAX
JNZ 0x0016b475
JMP 0x0016b498
CMP byte ptr [RDX],0x0
JZ 0x0016b498
ADD RDX,0x1
CMP RCX,RDX
JNZ 0x0016b470
MOV qword ptr [RDI + 0x20],RCX
RET
MOVZX EDX,byte ptr [RAX]
ADD RAX,0x1
JMP 0x0016b455
LEA RCX,[RDX + 0x1]
MOV qword ptr [RDI + 0x20],RCX
RET
XOR EAX,EAX
RET
MOV RCX,RAX
JMP 0x0016b47e
(translation_unit "char * FUN_0016b440(long 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 *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));\n  if (*(char **)(param_1 + 0x28) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x31) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 0x10);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\n  }\n  *(char **)(param_1 + 0x20) = pcVar3;\n  return pcVar2;\n}\n\n" (function_definition "char * FUN_0016b440(long 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 *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));\n  if (*(char **)(param_1 + 0x28) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x31) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 0x10);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\n  }\n  *(char **)(param_1 + 0x20) = pcVar3;\n  return pcVar2;\n}" primitive_type (pointer_declarator "* FUN_0016b440(long param_1,char *param_2)" * (function_declarator "FUN_0016b440(long param_1,char *param_2)" identifier (parameter_list "(long param_1,char *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) 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 *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));\n  if (*(char **)(param_1 + 0x28) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x31) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 0x10);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\n  }\n  *(char **)(param_1 + 0x20) = pcVar3;\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 *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));" (assignment_expression "pcVar2 = (char *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20))" identifier = (cast_expression "(char *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20))" ( (binary_expression "(ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20)" (binary_expression "(ulong)*(uint *)(param_1 + 0x1c)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)(param_1 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) + (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )))) ;) (if_statement "if (*(char **)(param_1 + 0x28) <= pcVar2) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "(*(char **)(param_1 + 0x28) <= pcVar2)" ( (binary_expression "*(char **)(param_1 + 0x28) <= pcVar2" (pointer_expression "*(char **)(param_1 + 0x28)" * (cast_expression "(char **)(param_1 + 0x28)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" 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 + 0x31) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x31) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x31) != '\0'" (pointer_expression "*(char *)(param_1 + 0x31)" * (cast_expression "(char *)(param_1 + 0x31)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31)" ( (binary_expression "param_1 + 0x31" 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 + 0x10);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0x10)" identifier = (pointer_expression "*(char **)(param_1 + 0x10)" * (cast_expression "(char **)(param_1 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" 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( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\n  }" if (parenthesized_expression "(pcVar2 < pcVar1)" ( (binary_expression "pcVar2 < pcVar1" identifier < identifier) )) (compound_statement "{\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\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( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }" { (if_statement "if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }" if (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }" { (expression_statement "*(char **)(param_1 + 0x20) = pcVar5 + 1;" (assignment_expression "*(char **)(param_1 + 0x20) = pcVar5 + 1" (pointer_expression "*(char **)(param_1 + 0x20)" * (cast_expression "(char **)(param_1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (return_statement "return pcVar2;" return identifier ;) })) (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) break;" if (parenthesized_expression "(pcVar1 == pcVar5)" ( (binary_expression "pcVar1 == pcVar5" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) })) })) (expression_statement "*(char **)(param_1 + 0x20) = pcVar3;" (assignment_expression "*(char **)(param_1 + 0x20) = pcVar3" (pointer_expression "*(char **)(param_1 + 0x20)" * (cast_expression "(char **)(param_1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" 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  uint8_t *puVar1;\n  uint8_t *puVar2;\n  uint8_t *puVar3;\n  uint8_t uVar4;\n  uint8_t *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( true ) {\n      if (uVar4 == '\0') {\n        this->pinfo_ = puVar5 + 1;\n        return (char *)puVar2;\n      }\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) break;\n      uVar4 = *puVar5;\n    }\n  }\n  this->pinfo_ = puVar3;\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  uint8_t *puVar1;\n  uint8_t *puVar2;\n  uint8_t *puVar3;\n  uint8_t uVar4;\n  uint8_t *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( true ) {\n      if (uVar4 == '\0') {\n        this->pinfo_ = puVar5 + 1;\n        return (char *)puVar2;\n      }\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) break;\n      uVar4 = *puVar5;\n    }\n  }\n  this->pinfo_ = puVar3;\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  uint8_t *puVar1;\n  uint8_t *puVar2;\n  uint8_t *puVar3;\n  uint8_t uVar4;\n  uint8_t *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( true ) {\n      if (uVar4 == '\0') {\n        this->pinfo_ = puVar5 + 1;\n        return (char *)puVar2;\n      }\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) break;\n      uVar4 = *puVar5;\n    }\n  }\n  this->pinfo_ = puVar3;\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  uint8_t *puVar1;\n  uint8_t *puVar2;\n  uint8_t *puVar3;\n  uint8_t uVar4;\n  uint8_t *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( true ) {\n      if (uVar4 == '\0') {\n        this->pinfo_ = puVar5 + 1;\n        return (char *)puVar2;\n      }\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) break;\n      uVar4 = *puVar5;\n    }\n  }\n  this->pinfo_ = puVar3;\n  return (char *)puVar2;\n}" { (declaration "uint8_t *puVar1;" primitive_type (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint8_t *puVar2;" primitive_type (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint8_t *puVar3;" primitive_type (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint8_t uVar4;" primitive_type identifier ;) (declaration "uint8_t *puVar5;" primitive_type (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( true ) {\n      if (uVar4 == '\0') {\n        this->pinfo_ = puVar5 + 1;\n        return (char *)puVar2;\n      }\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) break;\n      uVar4 = *puVar5;\n    }\n  }" if (parenthesized_expression "(puVar2 < puVar1)" ( (binary_expression "puVar2 < puVar1" identifier < identifier) )) (compound_statement "{\n    uVar4 = *puVar2;\n    puVar5 = puVar2;\n    while( true ) {\n      if (uVar4 == '\0') {\n        this->pinfo_ = puVar5 + 1;\n        return (char *)puVar2;\n      }\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) break;\n      uVar4 = *puVar5;\n    }\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( true ) {\n      if (uVar4 == '\0') {\n        this->pinfo_ = puVar5 + 1;\n        return (char *)puVar2;\n      }\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) break;\n      uVar4 = *puVar5;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (uVar4 == '\0') {\n        this->pinfo_ = puVar5 + 1;\n        return (char *)puVar2;\n      }\n      puVar5 = puVar5 + 1;\n      puVar3 = puVar1;\n      if (puVar1 == puVar5) break;\n      uVar4 = *puVar5;\n    }" { (if_statement "if (uVar4 == '\0') {\n        this->pinfo_ = puVar5 + 1;\n        return (char *)puVar2;\n      }" if (parenthesized_expression "(uVar4 == '\0')" ( (binary_expression "uVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        this->pinfo_ = puVar5 + 1;\n        return (char *)puVar2;\n      }" { (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)) ;) (return_statement "return (char *)puVar2;" return (cast_expression "(char *)puVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (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) break;" if (parenthesized_expression "(puVar1 == puVar5)" ( (binary_expression "puVar1 == puVar5" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = *puVar5;" (assignment_expression "uVar4 = *puVar5" identifier = (pointer_expression "*puVar5" * 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_0016b440(long 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 *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));\n  if (*(char **)(param_1 + 0x28) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x31) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 0x10);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\n  }\n  *(char **)(param_1 + 0x20) = pcVar3;\n  return pcVar2;\n}\n\n" (function_definition "char * FUN_0016b440(long 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 *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));\n  if (*(char **)(param_1 + 0x28) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x31) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 0x10);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\n  }\n  *(char **)(param_1 + 0x20) = pcVar3;\n  return pcVar2;\n}" primitive_type (pointer_declarator "* FUN_0016b440(long param_1,char *param_2)" * (function_declarator "FUN_0016b440(long param_1,char *param_2)" identifier (parameter_list "(long param_1,char *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) 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 *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));\n  if (*(char **)(param_1 + 0x28) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x31) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 0x10);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\n  }\n  *(char **)(param_1 + 0x20) = pcVar3;\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 *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));" (assignment_expression "pcVar2 = (char *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20))" identifier = (cast_expression "(char *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20))" ( (binary_expression "(ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20)" (binary_expression "(ulong)*(uint *)(param_1 + 0x1c)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)(param_1 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) + (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )))) ;) (if_statement "if (*(char **)(param_1 + 0x28) <= pcVar2) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "(*(char **)(param_1 + 0x28) <= pcVar2)" ( (binary_expression "*(char **)(param_1 + 0x28) <= pcVar2" (pointer_expression "*(char **)(param_1 + 0x28)" * (cast_expression "(char **)(param_1 + 0x28)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" 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 + 0x31) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x31) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x31) != '\0'" (pointer_expression "*(char *)(param_1 + 0x31)" * (cast_expression "(char *)(param_1 + 0x31)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x31)" ( (binary_expression "param_1 + 0x31" 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 + 0x10);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0x10)" identifier = (pointer_expression "*(char **)(param_1 + 0x10)" * (cast_expression "(char **)(param_1 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" 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( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\n  }" if (parenthesized_expression "(pcVar2 < pcVar1)" ( (binary_expression "pcVar2 < pcVar1" identifier < identifier) )) (compound_statement "{\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\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( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }" { (if_statement "if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }" if (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }" { (expression_statement "*(char **)(param_1 + 0x20) = pcVar5 + 1;" (assignment_expression "*(char **)(param_1 + 0x20) = pcVar5 + 1" (pointer_expression "*(char **)(param_1 + 0x20)" * (cast_expression "(char **)(param_1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (return_statement "return pcVar2;" return identifier ;) })) (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) break;" if (parenthesized_expression "(pcVar1 == pcVar5)" ( (binary_expression "pcVar1 == pcVar5" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) })) })) (expression_statement "*(char **)(param_1 + 0x20) = pcVar3;" (assignment_expression "*(char **)(param_1 + 0x20) = pcVar3" (pointer_expression "*(char **)(param_1 + 0x20)" * (cast_expression "(char **)(param_1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) 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 (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (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)) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (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) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "char * FUN_0016b440(long 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 *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));\n  if (*(char **)(param_1 + 0x28) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x31) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 0x10);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\n  }\n  *(char **)(param_1 + 0x20) = pcVar3;\n  return pcVar2;\n}" (primitive_type "char") (pointer_declarator "* FUN_0016b440(long param_1,char *param_2)" (* "*") (function_declarator "FUN_0016b440(long param_1,char *param_2)" (identifier "FUN_0016b440") (parameter_list "(long param_1,char *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (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 *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));\n  if (*(char **)(param_1 + 0x28) <= pcVar2) {\n    return (char *)0x0;\n  }\n  cVar4 = '\0';\n  if (*(char *)(param_1 + 0x31) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }\n  *param_2 = cVar4;\n  pcVar1 = *(char **)(param_1 + 0x10);\n  pcVar3 = pcVar2;\n  if (pcVar2 < pcVar1) {\n    cVar4 = *pcVar2;\n    pcVar5 = pcVar2;\n    while( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\n  }\n  *(char **)(param_1 + 0x20) = pcVar3;\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 *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));" (assignment_expression "pcVar2 = (char *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20))" (identifier "pcVar2") (= "=") (cast_expression "(char *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20))" (( "(") (binary_expression "(ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20)" (binary_expression "(ulong)*(uint *)(param_1 + 0x1c)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(uint *)(param_1 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) () ")")))) (; ";")) (if_statement "if (*(char **)(param_1 + 0x28) <= pcVar2) {\n    return (char *)0x0;\n  }" (if "if") (parenthesized_expression "(*(char **)(param_1 + 0x28) <= pcVar2)" (( "(") (binary_expression "*(char **)(param_1 + 0x28) <= pcVar2" (pointer_expression "*(char **)(param_1 + 0x28)" (* "*") (cast_expression "(char **)(param_1 + 0x28)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (<= "<=") (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 + 0x31) != '\0') {\n    cVar4 = *pcVar2;\n    pcVar2 = pcVar2 + 1;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x31) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x31) != '\0'" (pointer_expression "*(char *)(param_1 + 0x31)" (* "*") (cast_expression "(char *)(param_1 + 0x31)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x31)" (( "(") (binary_expression "param_1 + 0x31" (identifier "param_1") (+ "+") (number_literal "0x31")) () ")")))) (!= "!=") (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 + 0x10);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0x10)" (identifier "pcVar1") (= "=") (pointer_expression "*(char **)(param_1 + 0x10)" (* "*") (cast_expression "(char **)(param_1 + 0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (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( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\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( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }\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( true ) {\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }\n      pcVar5 = pcVar5 + 1;\n      pcVar3 = pcVar1;\n      if (pcVar1 == pcVar5) break;\n      cVar4 = *pcVar5;\n    }" ({ "{") (if_statement "if (cVar4 == '\0') {\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }" (if "if") (parenthesized_expression "(cVar4 == '\0')" (( "(") (binary_expression "cVar4 == '\0'" (identifier "cVar4") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        *(char **)(param_1 + 0x20) = pcVar5 + 1;\n        return pcVar2;\n      }" ({ "{") (expression_statement "*(char **)(param_1 + 0x20) = pcVar5 + 1;" (assignment_expression "*(char **)(param_1 + 0x20) = pcVar5 + 1" (pointer_expression "*(char **)(param_1 + 0x20)" (* "*") (cast_expression "(char **)(param_1 + 0x20)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}"))) (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) break;" (if "if") (parenthesized_expression "(pcVar1 == pcVar5)" (( "(") (binary_expression "pcVar1 == pcVar5" (identifier "pcVar1") (== "==") (identifier "pcVar5")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" (identifier "cVar4") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*(char **)(param_1 + 0x20) = pcVar3;" (assignment_expression "*(char **)(param_1 + 0x20) = pcVar3" (pointer_expression "*(char **)(param_1 + 0x20)" (* "*") (cast_expression "(char **)(param_1 + 0x20)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (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)

{
  uint8_t *var_2;
  uint8_t *var_1;
  uint8_t *puVar3;
  uint8_t var_3;
  uint8_t *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( true ) {
      if (var_3 == '\0') {
        this->pinfo_ = var_4 + 1;
        return (char *)var_1;
      }
      var_4 = var_4 + 1;
      puVar3 = var_2;
      if (var_2 == var_4) break;
      var_3 = *var_4;
    }
  }
  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: (sized_type_specifier) 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: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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 (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (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)))) (return_statement (identifier)))) (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: (break_statement)) (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: (identifier))) (return_statement (identifier)))))

char * MASKED(long param_1,char *param_2)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  
  pcVar2 = (char *)((ulong)*(uint *)(param_1 + 0x1c) + *(long *)(param_1 + 0x20));
  if (*(char **)(param_1 + 0x28) <= pcVar2) {
    return (char *)0x0;
  }
  cVar4 = '\0';
  if (*(char *)(param_1 + 0x31) != '\0') {
    cVar4 = *pcVar2;
    pcVar2 = pcVar2 + 1;
  }
  *param_2 = cVar4;
  pcVar1 = *(char **)(param_1 + 0x10);
  pcVar3 = pcVar2;
  if (pcVar2 < pcVar1) {
    cVar4 = *pcVar2;
    pcVar5 = pcVar2;
    while( true ) {
      if (cVar4 == '\0') {
        *(char **)(param_1 + 0x20) = pcVar5 + 1;
        return pcVar2;
      }
      pcVar5 = pcVar5 + 1;
      pcVar3 = pcVar1;
      if (pcVar1 == pcVar5) break;
      cVar4 = *pcVar5;
    }
  }
  *(char **)(param_1 + 0x20) = pcVar3;
  return pcVar2;
}

