
/* DWARF original prototype: void resize(Output_file * this, off_t file_size) */

void __thiscall gold::Output_file::resize(Output_file *this,off_t file_size)

{
  long lVar1;
  bool bVar2;
  uchar *puVar3;
  int *piVar4;
  char *pcVar5;
  char *pcVar6;
  char *pcVar7;
  
  if (this->map_is_anonymous_ == false) {
    unmap(this);
    this->file_size_ = file_size;
    bVar2 = map_no_anonymous(this,true);
    if (!bVar2) {
      piVar4 = __errno_location();
      pcVar5 = strerror(*piVar4);
      pcVar6 = this->name_;
      pcVar7 = "%s: mmap: %s";
LAB_001f1c83:
      pcVar7 = (char *)gettext(pcVar7);
                    /* WARNING: Subroutine does not return */
      gold_fatal(pcVar7,pcVar6,pcVar5);
    }
  }
  else {
    if (this->map_is_allocated_ == false) {
      puVar3 = (uchar *)mremap(this->base_,this->file_size_,file_size,1);
      if (puVar3 == (uchar *)0xffffffffffffffff) {
        piVar4 = __errno_location();
        pcVar5 = strerror(*piVar4);
        pcVar6 = this->name_;
        pcVar7 = "%s: mremap: %s";
        goto LAB_001f1c83;
      }
    }
    else {
      puVar3 = (uchar *)realloc(this->base_,file_size);
      if (puVar3 == (uchar *)0x0) {
                    /* WARNING: Subroutine does not return */
        gold_nomem();
      }
      lVar1 = this->file_size_;
      if (lVar1 < file_size) {
        memset(puVar3 + lVar1,0,file_size - lVar1);
      }
    }
    this->base_ = puVar3;
    this->file_size_ = file_size;
  }
  return;
}



void FUN_001f1bd0(undefined8 *param_1,size_t param_2)

{
  long lVar1;
  char cVar2;
  void *pvVar3;
  int *piVar4;
  char *pcVar5;
  undefined8 uVar6;
  undefined8 uVar7;
  char *pcVar8;
  
  if (*(char *)(param_1 + 4) == '\0') {
    FUN_001f1b60();
    param_1[2] = param_2;
    cVar2 = FUN_001f1530(param_1,1);
    if (cVar2 == '\0') {
      piVar4 = __errno_location();
      pcVar5 = strerror(*piVar4);
      uVar7 = *param_1;
      pcVar8 = "%s: mmap: %s";
LAB_001f1c83:
      uVar6 = gettext(pcVar8);
                    /* WARNING: Subroutine does not return */
      FUN_00191730(uVar6,uVar7,pcVar5);
    }
  }
  else {
    if (*(char *)((long)param_1 + 0x21) == '\0') {
      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);
      if (pvVar3 == (void *)0xffffffffffffffff) {
        piVar4 = __errno_location();
        pcVar5 = strerror(*piVar4);
        uVar7 = *param_1;
        pcVar8 = "%s: mremap: %s";
        goto LAB_001f1c83;
      }
    }
    else {
      pvVar3 = realloc((void *)param_1[3],param_2);
      if (pvVar3 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
        FUN_001998b0();
      }
      lVar1 = param_1[2];
      if (lVar1 < (long)param_2) {
        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);
      }
    }
    param_1[3] = pvVar3;
    param_1[2] = param_2;
  }
  return;
}


PUSH R12
PUSH RBP
MOV RBP,RSI
PUSH RBX
CMP byte ptr [RDI + 0x20],0x0
MOV RBX,RDI
JZ 0x001f1c50
CMP byte ptr [RBX + 0x21],0x0
MOV RDI,qword ptr [RDI + 0x18]
JZ 0x001f1c18
CALL 0x001449c0
MOV R12,RAX
TEST RAX,RAX
JZ 0x001f1cb5
MOV RDI,qword ptr [RBX + 0x10]
CMP RDI,RBP
JL 0x001f1ca0
MOV qword ptr [RBX + 0x18],R12
MOV qword ptr [RBX + 0x10],RBP
POP RBX
POP RBP
POP R12
RET
MOV RSI,qword ptr [RBX + 0x10]
MOV ECX,0x1
MOV RDX,RBP
XOR EAX,EAX
CALL 0x00144440
MOV R12,RAX
CMP RAX,-0x1
JNZ 0x001f1c08
CALL 0x00144760
MOV EDI,dword ptr [RAX]
CALL 0x00144610
MOV RBX,qword ptr [RBX]
LEA RDI,[0x34a604]
MOV RBP,RAX
JMP 0x001f1c83
CALL 0x001f1b60
MOV qword ptr [RBX + 0x10],RBP
MOV ESI,0x1
MOV RDI,RBX
CALL 0x001f1530
TEST AL,AL
JNZ 0x001f1c10
CALL 0x00144760
MOV EDI,dword ptr [RAX]
CALL 0x00144610
MOV RBX,qword ptr [RBX]
LEA RDI,[0x34a613]
MOV RBP,RAX
CALL 0x00144320
MOV RDX,RBP
MOV RSI,RBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00191730
MOV RDX,RBP
XOR ESI,ESI
SUB RDX,RDI
ADD RDI,RAX
CALL 0x00144100
JMP 0x001f1c08
CALL 0x001998b0
(translation_unit "void FUN_001f1bd0(undefined8 *param_1,size_t param_2)\n\n{\n  long lVar1;\n  char cVar2;\n  void *pvVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  undefined8 uVar7;\n  char *pcVar8;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }\n  else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001f1bd0(undefined8 *param_1,size_t param_2)\n\n{\n  long lVar1;\n  char cVar2;\n  void *pvVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  undefined8 uVar7;\n  char *pcVar8;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }\n  else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001f1bd0(undefined8 *param_1,size_t param_2)" identifier (parameter_list "(undefined8 *param_1,size_t param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  char cVar2;\n  void *pvVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  undefined8 uVar7;\n  char *pcVar8;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }\n  else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (if_statement "if (*(char *)(param_1 + 4) == '\0') {\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }\n  else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 4) == '\0')" ( (binary_expression "*(char *)(param_1 + 4) == '\0'" (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }" { (expression_statement "FUN_001f1b60();" (call_expression "FUN_001f1b60()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "cVar2 = FUN_001f1530(param_1,1);" (assignment_expression "cVar2 = FUN_001f1530(param_1,1)" identifier = (call_expression "FUN_001f1530(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal )))) ;) (if_statement "if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar8 = "%s: mmap: %s";" (assignment_expression "pcVar8 = "%s: mmap: %s"" identifier = (string_literal ""%s: mmap: %s"" " string_content ")) ;) (labeled_statement "LAB_001f1c83:\n      uVar6 = gettext(pcVar8);" statement_identifier : (expression_statement "uVar6 = gettext(pcVar8);" (assignment_expression "uVar6 = gettext(pcVar8)" identifier = (call_expression "gettext(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;)) comment (expression_statement "FUN_00191730(uVar6,uVar7,pcVar5);" (call_expression "FUN_00191730(uVar6,uVar7,pcVar5)" identifier (argument_list "(uVar6,uVar7,pcVar5)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }" else (compound_statement "{\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }" { (if_statement "if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }" if (parenthesized_expression "(*(char *)((long)param_1 + 0x21) == '\0')" ( (binary_expression "*(char *)((long)param_1 + 0x21) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0x21)" * (cast_expression "(char *)((long)param_1 + 0x21)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x21)" ( (binary_expression "(long)param_1 + 0x21" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }" { (expression_statement "pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);" (assignment_expression "pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1)" identifier = (call_expression "mremap((void *)param_1[3],param_1[2],param_2,1)" identifier (argument_list "((void *)param_1[3],param_1[2],param_2,1)" ( (cast_expression "(void *)param_1[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) , (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , number_literal )))) ;) (if_statement "if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }" if (parenthesized_expression "(pvVar3 == (void *)0xffffffffffffffff)" ( (binary_expression "pvVar3 == (void *)0xffffffffffffffff" identifier == (cast_expression "(void *)0xffffffffffffffff" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar8 = "%s: mremap: %s";" (assignment_expression "pcVar8 = "%s: mremap: %s"" identifier = (string_literal ""%s: mremap: %s"" " string_content ")) ;) (goto_statement "goto LAB_001f1c83;" goto statement_identifier ;) })) }) (else_clause "else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }" else (compound_statement "{\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }" { (expression_statement "pvVar3 = realloc((void *)param_1[3],param_2);" (assignment_expression "pvVar3 = realloc((void *)param_1[3],param_2)" identifier = (call_expression "realloc((void *)param_1[3],param_2)" identifier (argument_list "((void *)param_1[3],param_2)" ( (cast_expression "(void *)param_1[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001998b0();\n      }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_001998b0();\n      }" { comment (expression_statement "FUN_001998b0();" (call_expression "FUN_001998b0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "lVar1 = param_1[2];" (assignment_expression "lVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }" if (parenthesized_expression "(lVar1 < (long)param_2)" ( (binary_expression "lVar1 < (long)param_2" identifier < (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )) (compound_statement "{\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }" { (expression_statement "memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);" (call_expression "memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1)" identifier (argument_list "((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1)" ( (cast_expression "(void *)(lVar1 + (long)pvVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + (long)pvVar3)" ( (binary_expression "lVar1 + (long)pvVar3" identifier + (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) , number_literal , (binary_expression "param_2 - lVar1" identifier - identifier) ))) ;) })) }))) (expression_statement "param_1[3] = pvVar3;" (assignment_expression "param_1[3] = pvVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void resize(Output_file * this, off_t file_size) */\n\nvoid __thiscall gold::Output_file::resize(Output_file *this,off_t file_size)\n\n{\n  long lVar1;\n  bool bVar2;\n  uchar *puVar3;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  \n  if (this->map_is_anonymous_ == false) {\n    unmap(this);\n    this->file_size_ = file_size;\n    bVar2 = map_no_anonymous(this,true);\n    if (!bVar2) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      pcVar6 = this->name_;\n      pcVar7 = "%s: mmap: %s";\nLAB_001f1c83:\n      pcVar7 = (char *)gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar7,pcVar6,pcVar5);\n    }\n  }\n  else {\n    if (this->map_is_allocated_ == false) {\n      puVar3 = (uchar *)mremap(this->base_,this->file_size_,file_size,1);\n      if (puVar3 == (uchar *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        pcVar6 = this->name_;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      puVar3 = (uchar *)realloc(this->base_,file_size);\n      if (puVar3 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      lVar1 = this->file_size_;\n      if (lVar1 < file_size) {\n        memset(puVar3 + lVar1,0,file_size - lVar1);\n      }\n    }\n    this->base_ = puVar3;\n    this->file_size_ = file_size;\n  }\n  return;\n}\n\n" comment (function_definition "void __thiscall gold::Output_file::resize(Output_file *this,off_t file_size)\n\n{\n  long lVar1;\n  bool bVar2;\n  uchar *puVar3;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  \n  if (this->map_is_anonymous_ == false) {\n    unmap(this);\n    this->file_size_ = file_size;\n    bVar2 = map_no_anonymous(this,true);\n    if (!bVar2) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      pcVar6 = this->name_;\n      pcVar7 = "%s: mmap: %s";\nLAB_001f1c83:\n      pcVar7 = (char *)gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar7,pcVar6,pcVar5);\n    }\n  }\n  else {\n    if (this->map_is_allocated_ == false) {\n      puVar3 = (uchar *)mremap(this->base_,this->file_size_,file_size,1);\n      if (puVar3 == (uchar *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        pcVar6 = this->name_;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      puVar3 = (uchar *)realloc(this->base_,file_size);\n      if (puVar3 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      lVar1 = this->file_size_;\n      if (lVar1 < file_size) {\n        memset(puVar3 + lVar1,0,file_size - lVar1);\n      }\n    }\n    this->base_ = puVar3;\n    this->file_size_ = file_size;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_file::" identifier : : identifier : :) (function_declarator "resize(Output_file *this,off_t file_size)" identifier (parameter_list "(Output_file *this,off_t file_size)" ( (parameter_declaration "Output_file *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "off_t file_size" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  bool bVar2;\n  uchar *puVar3;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  \n  if (this->map_is_anonymous_ == false) {\n    unmap(this);\n    this->file_size_ = file_size;\n    bVar2 = map_no_anonymous(this,true);\n    if (!bVar2) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      pcVar6 = this->name_;\n      pcVar7 = "%s: mmap: %s";\nLAB_001f1c83:\n      pcVar7 = (char *)gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar7,pcVar6,pcVar5);\n    }\n  }\n  else {\n    if (this->map_is_allocated_ == false) {\n      puVar3 = (uchar *)mremap(this->base_,this->file_size_,file_size,1);\n      if (puVar3 == (uchar *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        pcVar6 = this->name_;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      puVar3 = (uchar *)realloc(this->base_,file_size);\n      if (puVar3 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      lVar1 = this->file_size_;\n      if (lVar1 < file_size) {\n        memset(puVar3 + lVar1,0,file_size - lVar1);\n      }\n    }\n    this->base_ = puVar3;\n    this->file_size_ = file_size;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "uchar *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (if_statement "if (this->map_is_anonymous_ == false) {\n    unmap(this);\n    this->file_size_ = file_size;\n    bVar2 = map_no_anonymous(this,true);\n    if (!bVar2) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      pcVar6 = this->name_;\n      pcVar7 = "%s: mmap: %s";\nLAB_001f1c83:\n      pcVar7 = (char *)gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar7,pcVar6,pcVar5);\n    }\n  }\n  else {\n    if (this->map_is_allocated_ == false) {\n      puVar3 = (uchar *)mremap(this->base_,this->file_size_,file_size,1);\n      if (puVar3 == (uchar *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        pcVar6 = this->name_;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      puVar3 = (uchar *)realloc(this->base_,file_size);\n      if (puVar3 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      lVar1 = this->file_size_;\n      if (lVar1 < file_size) {\n        memset(puVar3 + lVar1,0,file_size - lVar1);\n      }\n    }\n    this->base_ = puVar3;\n    this->file_size_ = file_size;\n  }" if (parenthesized_expression "(this->map_is_anonymous_ == false)" ( (binary_expression "this->map_is_anonymous_ == false" (field_expression "this->map_is_anonymous_" identifier -> field_identifier) == false) )) (compound_statement "{\n    unmap(this);\n    this->file_size_ = file_size;\n    bVar2 = map_no_anonymous(this,true);\n    if (!bVar2) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      pcVar6 = this->name_;\n      pcVar7 = "%s: mmap: %s";\nLAB_001f1c83:\n      pcVar7 = (char *)gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar7,pcVar6,pcVar5);\n    }\n  }" { (expression_statement "unmap(this);" (call_expression "unmap(this)" identifier (argument_list "(this)" ( identifier ))) ;) (expression_statement "this->file_size_ = file_size;" (assignment_expression "this->file_size_ = file_size" (field_expression "this->file_size_" identifier -> field_identifier) = identifier) ;) (expression_statement "bVar2 = map_no_anonymous(this,true);" (assignment_expression "bVar2 = map_no_anonymous(this,true)" identifier = (call_expression "map_no_anonymous(this,true)" identifier (argument_list "(this,true)" ( identifier , true )))) ;) (if_statement "if (!bVar2) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      pcVar6 = this->name_;\n      pcVar7 = "%s: mmap: %s";\nLAB_001f1c83:\n      pcVar7 = (char *)gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar7,pcVar6,pcVar5);\n    }" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      pcVar6 = this->name_;\n      pcVar7 = "%s: mmap: %s";\nLAB_001f1c83:\n      pcVar7 = (char *)gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar7,pcVar6,pcVar5);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "pcVar6 = this->name_;" (assignment_expression "pcVar6 = this->name_" identifier = (field_expression "this->name_" identifier -> field_identifier)) ;) (expression_statement "pcVar7 = "%s: mmap: %s";" (assignment_expression "pcVar7 = "%s: mmap: %s"" identifier = (string_literal ""%s: mmap: %s"" " string_content ")) ;) (labeled_statement "LAB_001f1c83:\n      pcVar7 = (char *)gettext(pcVar7);" statement_identifier : (expression_statement "pcVar7 = (char *)gettext(pcVar7);" (assignment_expression "pcVar7 = (char *)gettext(pcVar7)" identifier = (cast_expression "(char *)gettext(pcVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))))) ;)) comment (expression_statement "gold_fatal(pcVar7,pcVar6,pcVar5);" (call_expression "gold_fatal(pcVar7,pcVar6,pcVar5)" identifier (argument_list "(pcVar7,pcVar6,pcVar5)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n    if (this->map_is_allocated_ == false) {\n      puVar3 = (uchar *)mremap(this->base_,this->file_size_,file_size,1);\n      if (puVar3 == (uchar *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        pcVar6 = this->name_;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      puVar3 = (uchar *)realloc(this->base_,file_size);\n      if (puVar3 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      lVar1 = this->file_size_;\n      if (lVar1 < file_size) {\n        memset(puVar3 + lVar1,0,file_size - lVar1);\n      }\n    }\n    this->base_ = puVar3;\n    this->file_size_ = file_size;\n  }" else (compound_statement "{\n    if (this->map_is_allocated_ == false) {\n      puVar3 = (uchar *)mremap(this->base_,this->file_size_,file_size,1);\n      if (puVar3 == (uchar *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        pcVar6 = this->name_;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      puVar3 = (uchar *)realloc(this->base_,file_size);\n      if (puVar3 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      lVar1 = this->file_size_;\n      if (lVar1 < file_size) {\n        memset(puVar3 + lVar1,0,file_size - lVar1);\n      }\n    }\n    this->base_ = puVar3;\n    this->file_size_ = file_size;\n  }" { (if_statement "if (this->map_is_allocated_ == false) {\n      puVar3 = (uchar *)mremap(this->base_,this->file_size_,file_size,1);\n      if (puVar3 == (uchar *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        pcVar6 = this->name_;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      puVar3 = (uchar *)realloc(this->base_,file_size);\n      if (puVar3 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      lVar1 = this->file_size_;\n      if (lVar1 < file_size) {\n        memset(puVar3 + lVar1,0,file_size - lVar1);\n      }\n    }" if (parenthesized_expression "(this->map_is_allocated_ == false)" ( (binary_expression "this->map_is_allocated_ == false" (field_expression "this->map_is_allocated_" identifier -> field_identifier) == false) )) (compound_statement "{\n      puVar3 = (uchar *)mremap(this->base_,this->file_size_,file_size,1);\n      if (puVar3 == (uchar *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        pcVar6 = this->name_;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }" { (expression_statement "puVar3 = (uchar *)mremap(this->base_,this->file_size_,file_size,1);" (assignment_expression "puVar3 = (uchar *)mremap(this->base_,this->file_size_,file_size,1)" identifier = (cast_expression "(uchar *)mremap(this->base_,this->file_size_,file_size,1)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "mremap(this->base_,this->file_size_,file_size,1)" identifier (argument_list "(this->base_,this->file_size_,file_size,1)" ( (field_expression "this->base_" identifier -> field_identifier) , (field_expression "this->file_size_" identifier -> field_identifier) , identifier , number_literal ))))) ;) (if_statement "if (puVar3 == (uchar *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        pcVar6 = this->name_;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }" if (parenthesized_expression "(puVar3 == (uchar *)0xffffffffffffffff)" ( (binary_expression "puVar3 == (uchar *)0xffffffffffffffff" identifier == (cast_expression "(uchar *)0xffffffffffffffff" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        pcVar6 = this->name_;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "pcVar6 = this->name_;" (assignment_expression "pcVar6 = this->name_" identifier = (field_expression "this->name_" identifier -> field_identifier)) ;) (expression_statement "pcVar7 = "%s: mremap: %s";" (assignment_expression "pcVar7 = "%s: mremap: %s"" identifier = (string_literal ""%s: mremap: %s"" " string_content ")) ;) (goto_statement "goto LAB_001f1c83;" goto statement_identifier ;) })) }) (else_clause "else {\n      puVar3 = (uchar *)realloc(this->base_,file_size);\n      if (puVar3 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      lVar1 = this->file_size_;\n      if (lVar1 < file_size) {\n        memset(puVar3 + lVar1,0,file_size - lVar1);\n      }\n    }" else (compound_statement "{\n      puVar3 = (uchar *)realloc(this->base_,file_size);\n      if (puVar3 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      lVar1 = this->file_size_;\n      if (lVar1 < file_size) {\n        memset(puVar3 + lVar1,0,file_size - lVar1);\n      }\n    }" { (expression_statement "puVar3 = (uchar *)realloc(this->base_,file_size);" (assignment_expression "puVar3 = (uchar *)realloc(this->base_,file_size)" identifier = (cast_expression "(uchar *)realloc(this->base_,file_size)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(this->base_,file_size)" identifier (argument_list "(this->base_,file_size)" ( (field_expression "this->base_" identifier -> field_identifier) , identifier ))))) ;) (if_statement "if (puVar3 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }" if (parenthesized_expression "(puVar3 == (uchar *)0x0)" ( (binary_expression "puVar3 == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }" { comment (expression_statement "gold_nomem();" (call_expression "gold_nomem()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "lVar1 = this->file_size_;" (assignment_expression "lVar1 = this->file_size_" identifier = (field_expression "this->file_size_" identifier -> field_identifier)) ;) (if_statement "if (lVar1 < file_size) {\n        memset(puVar3 + lVar1,0,file_size - lVar1);\n      }" if (parenthesized_expression "(lVar1 < file_size)" ( (binary_expression "lVar1 < file_size" identifier < identifier) )) (compound_statement "{\n        memset(puVar3 + lVar1,0,file_size - lVar1);\n      }" { (expression_statement "memset(puVar3 + lVar1,0,file_size - lVar1);" (call_expression "memset(puVar3 + lVar1,0,file_size - lVar1)" identifier (argument_list "(puVar3 + lVar1,0,file_size - lVar1)" ( (binary_expression "puVar3 + lVar1" identifier + identifier) , number_literal , (binary_expression "file_size - lVar1" identifier - identifier) ))) ;) })) }))) (expression_statement "this->base_ = puVar3;" (assignment_expression "this->base_ = puVar3" (field_expression "this->base_" identifier -> field_identifier) = identifier) ;) (expression_statement "this->file_size_ = file_size;" (assignment_expression "this->file_size_ = file_size" (field_expression "this->file_size_" identifier -> field_identifier) = identifier) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001f1bd0(undefined8 *param_1,size_t param_2)\n\n{\n  long lVar1;\n  char cVar2;\n  void *pvVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  undefined8 uVar7;\n  char *pcVar8;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }\n  else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001f1bd0(undefined8 *param_1,size_t param_2)\n\n{\n  long lVar1;\n  char cVar2;\n  void *pvVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  undefined8 uVar7;\n  char *pcVar8;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }\n  else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001f1bd0(undefined8 *param_1,size_t param_2)" identifier (parameter_list "(undefined8 *param_1,size_t param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  char cVar2;\n  void *pvVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  undefined8 uVar7;\n  char *pcVar8;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }\n  else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (if_statement "if (*(char *)(param_1 + 4) == '\0') {\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }\n  else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 4) == '\0')" ( (binary_expression "*(char *)(param_1 + 4) == '\0'" (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }" { (expression_statement "FUN_001f1b60();" (call_expression "FUN_001f1b60()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "cVar2 = FUN_001f1530(param_1,1);" (assignment_expression "cVar2 = FUN_001f1530(param_1,1)" identifier = (call_expression "FUN_001f1530(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal )))) ;) (if_statement "if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar8 = "%s: mmap: %s";" (assignment_expression "pcVar8 = "%s: mmap: %s"" identifier = (string_literal ""%s: mmap: %s"" " string_content ")) ;) (labeled_statement "LAB_001f1c83:\n      uVar6 = gettext(pcVar8);" statement_identifier : (expression_statement "uVar6 = gettext(pcVar8);" (assignment_expression "uVar6 = gettext(pcVar8)" identifier = (call_expression "gettext(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;)) (expression_statement "FUN_00191730(uVar6,uVar7,pcVar5);" (call_expression "FUN_00191730(uVar6,uVar7,pcVar5)" identifier (argument_list "(uVar6,uVar7,pcVar5)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }" else (compound_statement "{\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }" { (if_statement "if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }" if (parenthesized_expression "(*(char *)((long)param_1 + 0x21) == '\0')" ( (binary_expression "*(char *)((long)param_1 + 0x21) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0x21)" * (cast_expression "(char *)((long)param_1 + 0x21)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x21)" ( (binary_expression "(long)param_1 + 0x21" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }" { (expression_statement "pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);" (assignment_expression "pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1)" identifier = (call_expression "mremap((void *)param_1[3],param_1[2],param_2,1)" identifier (argument_list "((void *)param_1[3],param_1[2],param_2,1)" ( (cast_expression "(void *)param_1[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) , (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , number_literal )))) ;) (if_statement "if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }" if (parenthesized_expression "(pvVar3 == (void *)0xffffffffffffffff)" ( (binary_expression "pvVar3 == (void *)0xffffffffffffffff" identifier == (cast_expression "(void *)0xffffffffffffffff" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar8 = "%s: mremap: %s";" (assignment_expression "pcVar8 = "%s: mremap: %s"" identifier = (string_literal ""%s: mremap: %s"" " string_content ")) ;) (goto_statement "goto LAB_001f1c83;" goto statement_identifier ;) })) }) (else_clause "else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }" else (compound_statement "{\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }" { (expression_statement "pvVar3 = realloc((void *)param_1[3],param_2);" (assignment_expression "pvVar3 = realloc((void *)param_1[3],param_2)" identifier = (call_expression "realloc((void *)param_1[3],param_2)" identifier (argument_list "((void *)param_1[3],param_2)" ( (cast_expression "(void *)param_1[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n        FUN_001998b0();\n      }" { (expression_statement "FUN_001998b0();" (call_expression "FUN_001998b0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "lVar1 = param_1[2];" (assignment_expression "lVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }" if (parenthesized_expression "(lVar1 < (long)param_2)" ( (binary_expression "lVar1 < (long)param_2" identifier < (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )) (compound_statement "{\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }" { (expression_statement "memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);" (call_expression "memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1)" identifier (argument_list "((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1)" ( (cast_expression "(void *)(lVar1 + (long)pvVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + (long)pvVar3)" ( (binary_expression "lVar1 + (long)pvVar3" identifier + (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) , number_literal , (binary_expression "param_2 - lVar1" identifier - identifier) ))) ;) })) }))) (expression_statement "param_1[3] = pvVar3;" (assignment_expression "param_1[3] = pvVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (subscript_expression IDENT [ LIT ]) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) , LIT , (binary_expression IDENT - IDENT) ))) ;) })) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_001f1bd0(undefined8 *param_1,size_t param_2)\n\n{\n  long lVar1;\n  char cVar2;\n  void *pvVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  undefined8 uVar7;\n  char *pcVar8;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }\n  else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001f1bd0(undefined8 *param_1,size_t param_2)" (identifier "FUN_001f1bd0") (parameter_list "(undefined8 *param_1,size_t param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) () ")"))) (compound_statement "{\n  long lVar1;\n  char cVar2;\n  void *pvVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  undefined8 uVar7;\n  char *pcVar8;\n  \n  if (*(char *)(param_1 + 4) == '\0') {\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }\n  else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "void *pvVar3;" (primitive_type "void") (pointer_declarator "*pvVar3" (* "*") (identifier "pvVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (declaration "undefined8 uVar7;" (type_identifier "undefined8") (identifier "uVar7") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (if_statement "if (*(char *)(param_1 + 4) == '\0') {\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }\n  else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 4) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 4) == '\0'" (pointer_expression "*(char *)(param_1 + 4)" (* "*") (cast_expression "(char *)(param_1 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_001f1b60();\n    param_1[2] = param_2;\n    cVar2 = FUN_001f1530(param_1,1);\n    if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }\n  }" ({ "{") (expression_statement "FUN_001f1b60();" (call_expression "FUN_001f1b60()" (identifier "FUN_001f1b60") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "cVar2 = FUN_001f1530(param_1,1);" (assignment_expression "cVar2 = FUN_001f1530(param_1,1)" (identifier "cVar2") (= "=") (call_expression "FUN_001f1530(param_1,1)" (identifier "FUN_001f1530") (argument_list "(param_1,1)" (( "(") (identifier "param_1") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (cVar2 == '\0') {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar7 = *param_1;\n      pcVar8 = "%s: mmap: %s";\nLAB_001f1c83:\n      uVar6 = gettext(pcVar8);\n                    \n      FUN_00191730(uVar6,uVar7,pcVar5);\n    }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" (identifier "pcVar5") (= "=") (call_expression "strerror(*piVar4)" (identifier "strerror") (argument_list "(*piVar4)" (( "(") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")")))) (; ";")) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" (identifier "uVar7") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar8 = "%s: mmap: %s";" (assignment_expression "pcVar8 = "%s: mmap: %s"" (identifier "pcVar8") (= "=") (string_literal ""%s: mmap: %s"" (" """) (string_content "%s: mmap: %s") (" """))) (; ";")) (labeled_statement "LAB_001f1c83:\n      uVar6 = gettext(pcVar8);" (statement_identifier "LAB_001f1c83") (: ":") (expression_statement "uVar6 = gettext(pcVar8);" (assignment_expression "uVar6 = gettext(pcVar8)" (identifier "uVar6") (= "=") (call_expression "gettext(pcVar8)" (identifier "gettext") (argument_list "(pcVar8)" (( "(") (identifier "pcVar8") () ")")))) (; ";"))) (expression_statement "FUN_00191730(uVar6,uVar7,pcVar5);" (call_expression "FUN_00191730(uVar6,uVar7,pcVar5)" (identifier "FUN_00191730") (argument_list "(uVar6,uVar7,pcVar5)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar7") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }" (else "else") (compound_statement "{\n    if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }\n    param_1[3] = pvVar3;\n    param_1[2] = param_2;\n  }" ({ "{") (if_statement "if (*(char *)((long)param_1 + 0x21) == '\0') {\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }\n    else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }" (if "if") (parenthesized_expression "(*(char *)((long)param_1 + 0x21) == '\0')" (( "(") (binary_expression "*(char *)((long)param_1 + 0x21) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0x21)" (* "*") (cast_expression "(char *)((long)param_1 + 0x21)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x21)" (( "(") (binary_expression "(long)param_1 + 0x21" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x21")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);\n      if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }\n    }" ({ "{") (expression_statement "pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);" (assignment_expression "pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1)" (identifier "pvVar3") (= "=") (call_expression "mremap((void *)param_1[3],param_1[2],param_2,1)" (identifier "mremap") (argument_list "((void *)param_1[3],param_1[2],param_2,1)" (( "(") (cast_expression "(void *)param_1[3]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (, ",") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "param_2") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (pvVar3 == (void *)0xffffffffffffffff) {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }" (if "if") (parenthesized_expression "(pvVar3 == (void *)0xffffffffffffffff)" (( "(") (binary_expression "pvVar3 == (void *)0xffffffffffffffff" (identifier "pvVar3") (== "==") (cast_expression "(void *)0xffffffffffffffff" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffffffffffff"))) () ")")) (compound_statement "{\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        uVar7 = *param_1;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_001f1c83;\n      }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" (identifier "pcVar5") (= "=") (call_expression "strerror(*piVar4)" (identifier "strerror") (argument_list "(*piVar4)" (( "(") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")")))) (; ";")) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" (identifier "uVar7") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar8 = "%s: mremap: %s";" (assignment_expression "pcVar8 = "%s: mremap: %s"" (identifier "pcVar8") (= "=") (string_literal ""%s: mremap: %s"" (" """) (string_content "%s: mremap: %s") (" """))) (; ";")) (goto_statement "goto LAB_001f1c83;" (goto "goto") (statement_identifier "LAB_001f1c83") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }" (else "else") (compound_statement "{\n      pvVar3 = realloc((void *)param_1[3],param_2);\n      if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }\n      lVar1 = param_1[2];\n      if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }\n    }" ({ "{") (expression_statement "pvVar3 = realloc((void *)param_1[3],param_2);" (assignment_expression "pvVar3 = realloc((void *)param_1[3],param_2)" (identifier "pvVar3") (= "=") (call_expression "realloc((void *)param_1[3],param_2)" (identifier "realloc") (argument_list "((void *)param_1[3],param_2)" (( "(") (cast_expression "(void *)param_1[3]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (pvVar3 == (void *)0x0) {\n                    \n        FUN_001998b0();\n      }" (if "if") (parenthesized_expression "(pvVar3 == (void *)0x0)" (( "(") (binary_expression "pvVar3 == (void *)0x0" (identifier "pvVar3") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n        FUN_001998b0();\n      }" ({ "{") (expression_statement "FUN_001998b0();" (call_expression "FUN_001998b0()" (identifier "FUN_001998b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "lVar1 = param_1[2];" (assignment_expression "lVar1 = param_1[2]" (identifier "lVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (lVar1 < (long)param_2) {\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }" (if "if") (parenthesized_expression "(lVar1 < (long)param_2)" (( "(") (binary_expression "lVar1 < (long)param_2" (identifier "lVar1") (< "<") (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2"))) () ")")) (compound_statement "{\n        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);\n      }" ({ "{") (expression_statement "memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);" (call_expression "memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1)" (identifier "memset") (argument_list "((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1)" (( "(") (cast_expression "(void *)(lVar1 + (long)pvVar3)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + (long)pvVar3)" (( "(") (binary_expression "lVar1 + (long)pvVar3" (identifier "lVar1") (+ "+") (cast_expression "(long)pvVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar3"))) () ")"))) (, ",") (number_literal "0") (, ",") (binary_expression "param_2 - lVar1" (identifier "param_2") (- "-") (identifier "lVar1")) () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "param_1[3] = pvVar3;" (assignment_expression "param_1[3] = pvVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "pvVar3")) (; ";")) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void resize(Output_file * this, off_t file_size) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 var_12)

{
  long var_11;
  bool bVar2;
  type_3 *var_8;
  int *piVar4;
  char *pcVar5;
  char *pcVar6;
  char *pcVar7;
  
  if (this->map_is_anonymous_ == false) {
    var_1(this);
    this->file_size_ = var_12;
    bVar2 = var_2(this,true);
    if (!bVar2) {
      piVar4 = var_3();
      pcVar5 = var_4(*piVar4);
      pcVar6 = this->name_;
      pcVar7 = "%s: mmap: %s";
LAB_001f1c83:
      pcVar7 = (char *)var_5(pcVar7);
                    /* WARNING: Subroutine does not return */
      var_6(pcVar7,pcVar6,pcVar5);
    }
  }
  else {
    if (this->map_is_allocated_ == false) {
      var_8 = (type_3 *)var_7(this->base_,this->file_size_,var_12,1);
      if (var_8 == (type_3 *)0xffffffffffffffff) {
        piVar4 = var_3();
        pcVar5 = var_4(*piVar4);
        pcVar6 = this->name_;
        pcVar7 = "%s: mremap: %s";
        goto LAB_001f1c83;
      }
    }
    else {
      var_8 = (type_3 *)var_9(this->base_,var_12);
      if (var_8 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
        var_10();
      }
      var_11 = this->file_size_;
      if (var_11 < var_12) {
        var_13(var_8 + var_11,0,var_12 - var_11);
      }
    }
    this->base_ = var_8;
    this->file_size_ = var_12;
  }
  return;
}


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

void MASKED(undefined8 *param_1,size_t param_2)

{
  long lVar1;
  char cVar2;
  void *pvVar3;
  int *piVar4;
  char *pcVar5;
  undefined8 uVar6;
  undefined8 uVar7;
  char *pcVar8;
  
  if (*(char *)(param_1 + 4) == '\0') {
    FUN_001f1b60();
    param_1[2] = param_2;
    cVar2 = FUN_001f1530(param_1,1);
    if (cVar2 == '\0') {
      piVar4 = __errno_location();
      pcVar5 = strerror(*piVar4);
      uVar7 = *param_1;
      pcVar8 = "%s: mmap: %s";
LAB_001f1c83:
      uVar6 = gettext(pcVar8);
                    /* WARNING: Subroutine does not return */
      FUN_00191730(uVar6,uVar7,pcVar5);
    }
  }
  else {
    if (*(char *)((long)param_1 + 0x21) == '\0') {
      pvVar3 = mremap((void *)param_1[3],param_1[2],param_2,1);
      if (pvVar3 == (void *)0xffffffffffffffff) {
        piVar4 = __errno_location();
        pcVar5 = strerror(*piVar4);
        uVar7 = *param_1;
        pcVar8 = "%s: mremap: %s";
        goto LAB_001f1c83;
      }
    }
    else {
      pvVar3 = realloc((void *)param_1[3],param_2);
      if (pvVar3 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
        FUN_001998b0();
      }
      lVar1 = param_1[2];
      if (lVar1 < (long)param_2) {
        memset((void *)(lVar1 + (long)pvVar3),0,param_2 - lVar1);
      }
    }
    param_1[3] = pvVar3;
    param_1[2] = param_2;
  }
  return;
}

