
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* 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)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  bool bVar4;
  uchar *puVar5;
  int *piVar6;
  char *pcVar7;
  char *pcVar8;
  char *pcVar9;
  
  if (this->map_is_anonymous_ == false) {
    unmap(this);
    this->file_size_ = file_size;
    bVar4 = map_no_anonymous(this,true);
    if (!bVar4) {
      piVar6 = __errno_location();
      pcVar7 = strerror(*piVar6);
      pcVar9 = this->name_;
      pcVar8 = "%s: mmap: %s";
LAB_000bec49:
      pcVar8 = (char *)gettext(pcVar8);
                    /* WARNING: Subroutine does not return */
      gold_fatal(pcVar8,pcVar9,pcVar7);
    }
  }
  else {
    if (this->map_is_allocated_ == false) {
      puVar5 = (uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1);
      if (puVar5 == (uchar *)0xffffffff) {
        piVar6 = __errno_location();
        pcVar7 = strerror(*piVar6);
        pcVar9 = this->name_;
        pcVar8 = "%s: mremap: %s";
        goto LAB_000bec49;
      }
    }
    else {
      puVar5 = (uchar *)realloc(this->base_,(uint)file_size);
      if (puVar5 == (uchar *)0x0) {
                    /* WARNING: Subroutine does not return */
        gold_nomem();
      }
      uVar1 = (uint)this->file_size_;
      iVar2 = *(int *)((int)&this->file_size_ + 4);
      iVar3 = iVar2 - file_size._4_4_;
      if ((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=
          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0) {
        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);
      }
    }
    this->base_ = puVar5;
    this->file_size_ = file_size;
  }
  return;
}



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

void FUN_000beb70(undefined4 *param_1,uint param_2,int param_3)

{
  uint uVar1;
  int iVar2;
  char cVar3;
  void *pvVar4;
  int *piVar5;
  char *pcVar6;
  char *pcVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  
  if (*(char *)(param_1 + 5) == '\0') {
    FUN_000beaf0(param_1);
    param_1[2] = param_2;
    param_1[3] = param_3;
    cVar3 = FUN_000be3b0(param_1,1);
    if (cVar3 == '\0') {
      piVar5 = __errno_location();
      pcVar6 = strerror(*piVar5);
      uVar9 = *param_1;
      pcVar7 = "%s: mmap: %s";
LAB_000bec49:
      uVar8 = gettext(pcVar7);
                    /* WARNING: Subroutine does not return */
      FUN_0005aca0(uVar8,uVar9,pcVar6);
    }
  }
  else {
    if (*(char *)((int)param_1 + 0x15) == '\0') {
      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);
      if (pvVar4 == (void *)0xffffffff) {
        piVar5 = __errno_location();
        pcVar6 = strerror(*piVar5);
        uVar9 = *param_1;
        pcVar7 = "%s: mremap: %s";
        goto LAB_000bec49;
      }
    }
    else {
      pvVar4 = realloc((void *)param_1[4],param_2);
      if (pvVar4 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
        FUN_0005f060();
      }
      uVar1 = param_1[2];
      iVar2 = param_1[3] - param_3;
      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=
          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {
        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);
      }
    }
    param_1[4] = pvVar4;
    param_1[2] = param_2;
    param_1[3] = param_3;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x243487
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x34]
MOV EBP,dword ptr [ESP + 0x38]
CMP byte ptr [ESI + 0x14],0x0
JZ 0x000bec10
CMP byte ptr [ESI + 0x15],0x0
MOV EAX,dword ptr [ESI + 0x10]
JZ 0x000bebd8
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x000261a0
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JZ 0x000bec82
MOV EAX,dword ptr [ESI + 0x8]
MOV ECX,dword ptr [ESI + 0xc]
CMP EAX,EDI
SBB ECX,EBP
JL 0x000bec60
MOV dword ptr [ESI + 0x10],EDX
MOV dword ptr [ESI + 0x8],EDI
MOV dword ptr [ESI + 0xc],EBP
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH 0x1
PUSH EDI
PUSH dword ptr [ESI + 0x8]
PUSH EAX
CALL 0x00026280
ADD ESP,0x10
MOV EDX,EAX
CMP EAX,-0x1
JNZ 0x000bebc4
CALL 0x00026090
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00026100
MOV ESI,dword ptr [ESI]
MOV EDI,EAX
LEA EAX,[EBX + 0xfff286d9]
JMP 0x000bec49
SUB ESP,0xc
PUSH ESI
CALL 0x000beaf0
MOV dword ptr [ESI + 0x8],EDI
MOV dword ptr [ESI + 0xc],EBP
POP EAX
POP EDX
PUSH 0x1
PUSH ESI
CALL 0x000be3b0
ADD ESP,0x10
TEST AL,AL
JNZ 0x000bebcd
CALL 0x00026090
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00026100
MOV ESI,dword ptr [ESI]
MOV EDI,EAX
LEA EAX,[EBX + 0xfff286e8]
MOV dword ptr [ESP],EAX
CALL 0x000263b0
ADD ESP,0xc
PUSH EDI
PUSH ESI
PUSH EAX
CALL 0x0005aca0
MOV ECX,EDI
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x4
SUB ECX,EAX
ADD EAX,EDX
PUSH ECX
PUSH 0x0
PUSH EAX
CALL 0x000262f0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x000bebc4
CALL 0x0005f060
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000beb70(undefined4 *param_1,uint param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  char cVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  if (*(char *)(param_1 + 5) == '\0') {\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000beb70(undefined4 *param_1,uint param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  char cVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  if (*(char *)(param_1 + 5) == '\0') {\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000beb70(undefined4 *param_1,uint param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,uint param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char cVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  if (*(char *)(param_1 + 5) == '\0') {\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1 + 5) == '\0') {\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 5) == '\0')" ( (binary_expression "*(char *)(param_1 + 5) == '\0'" (pointer_expression "*(char *)(param_1 + 5)" * (cast_expression "(char *)(param_1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }" { (expression_statement "FUN_000beaf0(param_1);" (call_expression "FUN_000beaf0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (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 "param_1[3] = param_3;" (assignment_expression "param_1[3] = param_3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "cVar3 = FUN_000be3b0(param_1,1);" (assignment_expression "cVar3 = FUN_000be3b0(param_1,1)" identifier = (call_expression "FUN_000be3b0(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal )))) ;) (if_statement "if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    /* WARNING: Subroutine does not return */\n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar5);" (assignment_expression "pcVar6 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar7 = "%s: mmap: %s";" (assignment_expression "pcVar7 = "%s: mmap: %s"" identifier = (string_literal ""%s: mmap: %s"" " string_content ")) ;) (labeled_statement "LAB_000bec49:\n      uVar8 = gettext(pcVar7);" statement_identifier : (expression_statement "uVar8 = gettext(pcVar7);" (assignment_expression "uVar8 = gettext(pcVar7)" identifier = (call_expression "gettext(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;)) comment (expression_statement "FUN_0005aca0(uVar8,uVar9,pcVar6);" (call_expression "FUN_0005aca0(uVar8,uVar9,pcVar6)" identifier (argument_list "(uVar8,uVar9,pcVar6)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }" else (compound_statement "{\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }" { (if_statement "if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }" if (parenthesized_expression "(*(char *)((int)param_1 + 0x15) == '\0')" ( (binary_expression "*(char *)((int)param_1 + 0x15) == '\0'" (pointer_expression "*(char *)((int)param_1 + 0x15)" * (cast_expression "(char *)((int)param_1 + 0x15)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x15)" ( (binary_expression "(int)param_1 + 0x15" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }" { (expression_statement "pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);" (assignment_expression "pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1)" identifier = (call_expression "mremap((void *)param_1[4],param_1[2],param_2,1)" identifier (argument_list "((void *)param_1[4],param_1[2],param_2,1)" ( (cast_expression "(void *)param_1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , number_literal )))) ;) (if_statement "if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }" if (parenthesized_expression "(pvVar4 == (void *)0xffffffff)" ( (binary_expression "pvVar4 == (void *)0xffffffff" identifier == (cast_expression "(void *)0xffffffff" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar5);" (assignment_expression "pcVar6 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" identifier = (pointer_expression "*param_1" * 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_000bec49;" goto statement_identifier ;) })) }) (else_clause "else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }" else (compound_statement "{\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }" { (expression_statement "pvVar4 = realloc((void *)param_1[4],param_2);" (assignment_expression "pvVar4 = realloc((void *)param_1[4],param_2)" identifier = (call_expression "realloc((void *)param_1[4],param_2)" identifier (argument_list "((void *)param_1[4],param_2)" ( (cast_expression "(void *)param_1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (pvVar4 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f060();\n      }" if (parenthesized_expression "(pvVar4 == (void *)0x0)" ( (binary_expression "pvVar4 == (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_0005f060();\n      }" { comment (expression_statement "FUN_0005f060();" (call_expression "FUN_0005f060()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = param_1[3] - param_3;" (assignment_expression "iVar2 = param_1[3] - param_3" identifier = (binary_expression "param_1[3] - param_3" (subscript_expression "param_1[3]" identifier [ number_literal ]) - identifier)) ;) (if_statement "if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }" if (parenthesized_expression "((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0)" ( (binary_expression "(SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0" (parenthesized_expression "(SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2)))" ( (binary_expression "SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))" (call_expression "SBORROW4(param_1[3],param_3)" identifier (argument_list "(param_1[3],param_3)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , identifier ))) != (call_expression "SBORROW4(iVar2,(uint)(uVar1 < param_2))" identifier (argument_list "(iVar2,(uint)(uVar1 < param_2))" ( identifier , (call_expression "(uint)(uVar1 < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < param_2)" ( (binary_expression "uVar1 < param_2" identifier < identifier) ))) )))) )) != (binary_expression "(int)(iVar2 - (uint)(uVar1 < param_2)) < 0" (cast_expression "(int)(iVar2 - (uint)(uVar1 < param_2))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iVar2 - (uint)(uVar1 < param_2))" ( (binary_expression "iVar2 - (uint)(uVar1 < param_2)" identifier - (call_expression "(uint)(uVar1 < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < param_2)" ( (binary_expression "uVar1 < param_2" identifier < identifier) )))) ))) < number_literal)) )) (compound_statement "{\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }" { (expression_statement "memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);" (call_expression "memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1)" identifier (argument_list "((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1)" ( (cast_expression "(void *)(uVar1 + (int)pvVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 + (int)pvVar4)" ( (binary_expression "uVar1 + (int)pvVar4" identifier + (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , number_literal , (binary_expression "param_2 - uVar1" identifier - identifier) ))) ;) })) }))) (expression_statement "param_1[4] = pvVar4;" (assignment_expression "param_1[4] = pvVar4" (subscript_expression "param_1[4]" 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) ;) (expression_statement "param_1[3] = param_3;" (assignment_expression "param_1[3] = param_3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* 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  uint uVar1;\n  int iVar2;\n  int iVar3;\n  bool bVar4;\n  uchar *puVar5;\n  int *piVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  \n  if (this->map_is_anonymous_ == false) {\n    unmap(this);\n    this->file_size_ = file_size;\n    bVar4 = map_no_anonymous(this,true);\n    if (!bVar4) {\n      piVar6 = __errno_location();\n      pcVar7 = strerror(*piVar6);\n      pcVar9 = this->name_;\n      pcVar8 = "%s: mmap: %s";\nLAB_000bec49:\n      pcVar8 = (char *)gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar8,pcVar9,pcVar7);\n    }\n  }\n  else {\n    if (this->map_is_allocated_ == false) {\n      puVar5 = (uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1);\n      if (puVar5 == (uchar *)0xffffffff) {\n        piVar6 = __errno_location();\n        pcVar7 = strerror(*piVar6);\n        pcVar9 = this->name_;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      puVar5 = (uchar *)realloc(this->base_,(uint)file_size);\n      if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      uVar1 = (uint)this->file_size_;\n      iVar2 = *(int *)((int)&this->file_size_ + 4);\n      iVar3 = iVar2 - file_size._4_4_;\n      if ((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0) {\n        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);\n      }\n    }\n    this->base_ = puVar5;\n    this->file_size_ = file_size;\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Output_file::resize(Output_file *this,off_t file_size)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  bool bVar4;\n  uchar *puVar5;\n  int *piVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  \n  if (this->map_is_anonymous_ == false) {\n    unmap(this);\n    this->file_size_ = file_size;\n    bVar4 = map_no_anonymous(this,true);\n    if (!bVar4) {\n      piVar6 = __errno_location();\n      pcVar7 = strerror(*piVar6);\n      pcVar9 = this->name_;\n      pcVar8 = "%s: mmap: %s";\nLAB_000bec49:\n      pcVar8 = (char *)gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar8,pcVar9,pcVar7);\n    }\n  }\n  else {\n    if (this->map_is_allocated_ == false) {\n      puVar5 = (uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1);\n      if (puVar5 == (uchar *)0xffffffff) {\n        piVar6 = __errno_location();\n        pcVar7 = strerror(*piVar6);\n        pcVar9 = this->name_;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      puVar5 = (uchar *)realloc(this->base_,(uint)file_size);\n      if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      uVar1 = (uint)this->file_size_;\n      iVar2 = *(int *)((int)&this->file_size_ + 4);\n      iVar3 = iVar2 - file_size._4_4_;\n      if ((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0) {\n        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);\n      }\n    }\n    this->base_ = puVar5;\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  uint uVar1;\n  int iVar2;\n  int iVar3;\n  bool bVar4;\n  uchar *puVar5;\n  int *piVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  \n  if (this->map_is_anonymous_ == false) {\n    unmap(this);\n    this->file_size_ = file_size;\n    bVar4 = map_no_anonymous(this,true);\n    if (!bVar4) {\n      piVar6 = __errno_location();\n      pcVar7 = strerror(*piVar6);\n      pcVar9 = this->name_;\n      pcVar8 = "%s: mmap: %s";\nLAB_000bec49:\n      pcVar8 = (char *)gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar8,pcVar9,pcVar7);\n    }\n  }\n  else {\n    if (this->map_is_allocated_ == false) {\n      puVar5 = (uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1);\n      if (puVar5 == (uchar *)0xffffffff) {\n        piVar6 = __errno_location();\n        pcVar7 = strerror(*piVar6);\n        pcVar9 = this->name_;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      puVar5 = (uchar *)realloc(this->base_,(uint)file_size);\n      if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      uVar1 = (uint)this->file_size_;\n      iVar2 = *(int *)((int)&this->file_size_ + 4);\n      iVar3 = iVar2 - file_size._4_4_;\n      if ((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0) {\n        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);\n      }\n    }\n    this->base_ = puVar5;\n    this->file_size_ = file_size;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "uchar *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (if_statement "if (this->map_is_anonymous_ == false) {\n    unmap(this);\n    this->file_size_ = file_size;\n    bVar4 = map_no_anonymous(this,true);\n    if (!bVar4) {\n      piVar6 = __errno_location();\n      pcVar7 = strerror(*piVar6);\n      pcVar9 = this->name_;\n      pcVar8 = "%s: mmap: %s";\nLAB_000bec49:\n      pcVar8 = (char *)gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar8,pcVar9,pcVar7);\n    }\n  }\n  else {\n    if (this->map_is_allocated_ == false) {\n      puVar5 = (uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1);\n      if (puVar5 == (uchar *)0xffffffff) {\n        piVar6 = __errno_location();\n        pcVar7 = strerror(*piVar6);\n        pcVar9 = this->name_;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      puVar5 = (uchar *)realloc(this->base_,(uint)file_size);\n      if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      uVar1 = (uint)this->file_size_;\n      iVar2 = *(int *)((int)&this->file_size_ + 4);\n      iVar3 = iVar2 - file_size._4_4_;\n      if ((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0) {\n        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);\n      }\n    }\n    this->base_ = puVar5;\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    bVar4 = map_no_anonymous(this,true);\n    if (!bVar4) {\n      piVar6 = __errno_location();\n      pcVar7 = strerror(*piVar6);\n      pcVar9 = this->name_;\n      pcVar8 = "%s: mmap: %s";\nLAB_000bec49:\n      pcVar8 = (char *)gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar8,pcVar9,pcVar7);\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 "bVar4 = map_no_anonymous(this,true);" (assignment_expression "bVar4 = map_no_anonymous(this,true)" identifier = (call_expression "map_no_anonymous(this,true)" identifier (argument_list "(this,true)" ( identifier , true )))) ;) (if_statement "if (!bVar4) {\n      piVar6 = __errno_location();\n      pcVar7 = strerror(*piVar6);\n      pcVar9 = this->name_;\n      pcVar8 = "%s: mmap: %s";\nLAB_000bec49:\n      pcVar8 = (char *)gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar8,pcVar9,pcVar7);\n    }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n      piVar6 = __errno_location();\n      pcVar7 = strerror(*piVar6);\n      pcVar9 = this->name_;\n      pcVar8 = "%s: mmap: %s";\nLAB_000bec49:\n      pcVar8 = (char *)gettext(pcVar8);\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(pcVar8,pcVar9,pcVar7);\n    }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar7 = strerror(*piVar6);" (assignment_expression "pcVar7 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "pcVar9 = this->name_;" (assignment_expression "pcVar9 = this->name_" identifier = (field_expression "this->name_" identifier -> field_identifier)) ;) (expression_statement "pcVar8 = "%s: mmap: %s";" (assignment_expression "pcVar8 = "%s: mmap: %s"" identifier = (string_literal ""%s: mmap: %s"" " string_content ")) ;) (labeled_statement "LAB_000bec49:\n      pcVar8 = (char *)gettext(pcVar8);" statement_identifier : (expression_statement "pcVar8 = (char *)gettext(pcVar8);" (assignment_expression "pcVar8 = (char *)gettext(pcVar8)" identifier = (cast_expression "(char *)gettext(pcVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))))) ;)) comment (expression_statement "gold_fatal(pcVar8,pcVar9,pcVar7);" (call_expression "gold_fatal(pcVar8,pcVar9,pcVar7)" identifier (argument_list "(pcVar8,pcVar9,pcVar7)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n    if (this->map_is_allocated_ == false) {\n      puVar5 = (uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1);\n      if (puVar5 == (uchar *)0xffffffff) {\n        piVar6 = __errno_location();\n        pcVar7 = strerror(*piVar6);\n        pcVar9 = this->name_;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      puVar5 = (uchar *)realloc(this->base_,(uint)file_size);\n      if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      uVar1 = (uint)this->file_size_;\n      iVar2 = *(int *)((int)&this->file_size_ + 4);\n      iVar3 = iVar2 - file_size._4_4_;\n      if ((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0) {\n        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);\n      }\n    }\n    this->base_ = puVar5;\n    this->file_size_ = file_size;\n  }" else (compound_statement "{\n    if (this->map_is_allocated_ == false) {\n      puVar5 = (uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1);\n      if (puVar5 == (uchar *)0xffffffff) {\n        piVar6 = __errno_location();\n        pcVar7 = strerror(*piVar6);\n        pcVar9 = this->name_;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      puVar5 = (uchar *)realloc(this->base_,(uint)file_size);\n      if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      uVar1 = (uint)this->file_size_;\n      iVar2 = *(int *)((int)&this->file_size_ + 4);\n      iVar3 = iVar2 - file_size._4_4_;\n      if ((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0) {\n        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);\n      }\n    }\n    this->base_ = puVar5;\n    this->file_size_ = file_size;\n  }" { (if_statement "if (this->map_is_allocated_ == false) {\n      puVar5 = (uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1);\n      if (puVar5 == (uchar *)0xffffffff) {\n        piVar6 = __errno_location();\n        pcVar7 = strerror(*piVar6);\n        pcVar9 = this->name_;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      puVar5 = (uchar *)realloc(this->base_,(uint)file_size);\n      if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      uVar1 = (uint)this->file_size_;\n      iVar2 = *(int *)((int)&this->file_size_ + 4);\n      iVar3 = iVar2 - file_size._4_4_;\n      if ((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0) {\n        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);\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      puVar5 = (uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1);\n      if (puVar5 == (uchar *)0xffffffff) {\n        piVar6 = __errno_location();\n        pcVar7 = strerror(*piVar6);\n        pcVar9 = this->name_;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }" { (expression_statement "puVar5 = (uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1);" (assignment_expression "puVar5 = (uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1)" identifier = (cast_expression "(uchar *)mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "mremap(this->base_,(size_t)this->file_size_,(uint)file_size,1)" identifier (argument_list "(this->base_,(size_t)this->file_size_,(uint)file_size,1)" ( (field_expression "this->base_" identifier -> field_identifier) , (cast_expression "(size_t)this->file_size_" ( (type_descriptor "size_t" primitive_type) ) (field_expression "this->file_size_" identifier -> field_identifier)) , (cast_expression "(uint)file_size" ( (type_descriptor "uint" type_identifier) ) identifier) , number_literal ))))) ;) (if_statement "if (puVar5 == (uchar *)0xffffffff) {\n        piVar6 = __errno_location();\n        pcVar7 = strerror(*piVar6);\n        pcVar9 = this->name_;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }" if (parenthesized_expression "(puVar5 == (uchar *)0xffffffff)" ( (binary_expression "puVar5 == (uchar *)0xffffffff" identifier == (cast_expression "(uchar *)0xffffffff" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar6 = __errno_location();\n        pcVar7 = strerror(*piVar6);\n        pcVar9 = this->name_;\n        pcVar8 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar7 = strerror(*piVar6);" (assignment_expression "pcVar7 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "pcVar9 = this->name_;" (assignment_expression "pcVar9 = this->name_" identifier = (field_expression "this->name_" identifier -> field_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_000bec49;" goto statement_identifier ;) })) }) (else_clause "else {\n      puVar5 = (uchar *)realloc(this->base_,(uint)file_size);\n      if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      uVar1 = (uint)this->file_size_;\n      iVar2 = *(int *)((int)&this->file_size_ + 4);\n      iVar3 = iVar2 - file_size._4_4_;\n      if ((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0) {\n        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);\n      }\n    }" else (compound_statement "{\n      puVar5 = (uchar *)realloc(this->base_,(uint)file_size);\n      if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }\n      uVar1 = (uint)this->file_size_;\n      iVar2 = *(int *)((int)&this->file_size_ + 4);\n      iVar3 = iVar2 - file_size._4_4_;\n      if ((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0) {\n        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);\n      }\n    }" { (expression_statement "puVar5 = (uchar *)realloc(this->base_,(uint)file_size);" (assignment_expression "puVar5 = (uchar *)realloc(this->base_,(uint)file_size)" identifier = (cast_expression "(uchar *)realloc(this->base_,(uint)file_size)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(this->base_,(uint)file_size)" identifier (argument_list "(this->base_,(uint)file_size)" ( (field_expression "this->base_" identifier -> field_identifier) , (cast_expression "(uint)file_size" ( (type_descriptor "uint" type_identifier) ) identifier) ))))) ;) (if_statement "if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        gold_nomem();\n      }" if (parenthesized_expression "(puVar5 == (uchar *)0x0)" ( (binary_expression "puVar5 == (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 "uVar1 = (uint)this->file_size_;" (assignment_expression "uVar1 = (uint)this->file_size_" identifier = (cast_expression "(uint)this->file_size_" ( (type_descriptor "uint" type_identifier) ) (field_expression "this->file_size_" identifier -> field_identifier))) ;) (expression_statement "iVar2 = *(int *)((int)&this->file_size_ + 4);" (assignment_expression "iVar2 = *(int *)((int)&this->file_size_ + 4)" identifier = (pointer_expression "*(int *)((int)&this->file_size_ + 4)" * (cast_expression "(int *)((int)&this->file_size_ + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&this->file_size_ + 4)" ( (binary_expression "(int)&this->file_size_ + 4" (cast_expression "(int)&this->file_size_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&this->file_size_" & (field_expression "this->file_size_" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "iVar3 = iVar2 - file_size._4_4_;" (assignment_expression "iVar3 = iVar2 - file_size._4_4_" identifier = (binary_expression "iVar2 - file_size._4_4_" identifier - (field_expression "file_size._4_4_" identifier . field_identifier))) ;) (if_statement "if ((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0) {\n        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);\n      }" if (parenthesized_expression "((SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0)" ( (binary_expression "(SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))) !=\n          (int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0" (parenthesized_expression "(SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size)))" ( (binary_expression "SBORROW4(iVar2,file_size._4_4_) != SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))" (call_expression "SBORROW4(iVar2,file_size._4_4_)" identifier (argument_list "(iVar2,file_size._4_4_)" ( identifier , (field_expression "file_size._4_4_" identifier . field_identifier) ))) != (call_expression "SBORROW4(iVar3,(uint)(uVar1 < (uint)file_size))" identifier (argument_list "(iVar3,(uint)(uVar1 < (uint)file_size))" ( identifier , (call_expression "(uint)(uVar1 < (uint)file_size)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < (uint)file_size)" ( (binary_expression "uVar1 < (uint)file_size" identifier < (cast_expression "(uint)file_size" ( (type_descriptor "uint" type_identifier) ) identifier)) ))) )))) )) != (binary_expression "(int)(iVar3 - (uint)(uVar1 < (uint)file_size)) < 0" (cast_expression "(int)(iVar3 - (uint)(uVar1 < (uint)file_size))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iVar3 - (uint)(uVar1 < (uint)file_size))" ( (binary_expression "iVar3 - (uint)(uVar1 < (uint)file_size)" identifier - (call_expression "(uint)(uVar1 < (uint)file_size)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < (uint)file_size)" ( (binary_expression "uVar1 < (uint)file_size" identifier < (cast_expression "(uint)file_size" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) ))) < number_literal)) )) (compound_statement "{\n        memset(puVar5 + uVar1,0,(uint)file_size - uVar1);\n      }" { (expression_statement "memset(puVar5 + uVar1,0,(uint)file_size - uVar1);" (call_expression "memset(puVar5 + uVar1,0,(uint)file_size - uVar1)" identifier (argument_list "(puVar5 + uVar1,0,(uint)file_size - uVar1)" ( (binary_expression "puVar5 + uVar1" identifier + identifier) , number_literal , (binary_expression "(uint)file_size - uVar1" (cast_expression "(uint)file_size" ( (type_descriptor "uint" type_identifier) ) identifier) - identifier) ))) ;) })) }))) (expression_statement "this->base_ = puVar5;" (assignment_expression "this->base_ = puVar5" (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_000beb70(undefined4 *param_1,uint param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  char cVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  if (*(char *)(param_1 + 5) == '\0') {\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000beb70(undefined4 *param_1,uint param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  char cVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  if (*(char *)(param_1 + 5) == '\0') {\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000beb70(undefined4 *param_1,uint param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,uint param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char cVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  if (*(char *)(param_1 + 5) == '\0') {\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (if_statement "if (*(char *)(param_1 + 5) == '\0') {\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 5) == '\0')" ( (binary_expression "*(char *)(param_1 + 5) == '\0'" (pointer_expression "*(char *)(param_1 + 5)" * (cast_expression "(char *)(param_1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }" { (expression_statement "FUN_000beaf0(param_1);" (call_expression "FUN_000beaf0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (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 "param_1[3] = param_3;" (assignment_expression "param_1[3] = param_3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "cVar3 = FUN_000be3b0(param_1,1);" (assignment_expression "cVar3 = FUN_000be3b0(param_1,1)" identifier = (call_expression "FUN_000be3b0(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal )))) ;) (if_statement "if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar5);" (assignment_expression "pcVar6 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar7 = "%s: mmap: %s";" (assignment_expression "pcVar7 = "%s: mmap: %s"" identifier = (string_literal ""%s: mmap: %s"" " string_content ")) ;) (labeled_statement "LAB_000bec49:\n      uVar8 = gettext(pcVar7);" statement_identifier : (expression_statement "uVar8 = gettext(pcVar7);" (assignment_expression "uVar8 = gettext(pcVar7)" identifier = (call_expression "gettext(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;)) (expression_statement "FUN_0005aca0(uVar8,uVar9,pcVar6);" (call_expression "FUN_0005aca0(uVar8,uVar9,pcVar6)" identifier (argument_list "(uVar8,uVar9,pcVar6)" ( identifier , identifier , identifier ))) ;) })) }) (else_clause "else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }" else (compound_statement "{\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }" { (if_statement "if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }" if (parenthesized_expression "(*(char *)((int)param_1 + 0x15) == '\0')" ( (binary_expression "*(char *)((int)param_1 + 0x15) == '\0'" (pointer_expression "*(char *)((int)param_1 + 0x15)" * (cast_expression "(char *)((int)param_1 + 0x15)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x15)" ( (binary_expression "(int)param_1 + 0x15" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }" { (expression_statement "pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);" (assignment_expression "pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1)" identifier = (call_expression "mremap((void *)param_1[4],param_1[2],param_2,1)" identifier (argument_list "((void *)param_1[4],param_1[2],param_2,1)" ( (cast_expression "(void *)param_1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , number_literal )))) ;) (if_statement "if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }" if (parenthesized_expression "(pvVar4 == (void *)0xffffffff)" ( (binary_expression "pvVar4 == (void *)0xffffffff" identifier == (cast_expression "(void *)0xffffffff" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar5);" (assignment_expression "pcVar6 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" identifier = (pointer_expression "*param_1" * 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_000bec49;" goto statement_identifier ;) })) }) (else_clause "else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }" else (compound_statement "{\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }" { (expression_statement "pvVar4 = realloc((void *)param_1[4],param_2);" (assignment_expression "pvVar4 = realloc((void *)param_1[4],param_2)" identifier = (call_expression "realloc((void *)param_1[4],param_2)" identifier (argument_list "((void *)param_1[4],param_2)" ( (cast_expression "(void *)param_1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }" if (parenthesized_expression "(pvVar4 == (void *)0x0)" ( (binary_expression "pvVar4 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n        FUN_0005f060();\n      }" { (expression_statement "FUN_0005f060();" (call_expression "FUN_0005f060()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = param_1[3] - param_3;" (assignment_expression "iVar2 = param_1[3] - param_3" identifier = (binary_expression "param_1[3] - param_3" (subscript_expression "param_1[3]" identifier [ number_literal ]) - identifier)) ;) (if_statement "if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }" if (parenthesized_expression "((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0)" ( (binary_expression "(SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0" (parenthesized_expression "(SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2)))" ( (binary_expression "SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))" (call_expression "SBORROW4(param_1[3],param_3)" identifier (argument_list "(param_1[3],param_3)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , identifier ))) != (call_expression "SBORROW4(iVar2,(uint)(uVar1 < param_2))" identifier (argument_list "(iVar2,(uint)(uVar1 < param_2))" ( identifier , (call_expression "(uint)(uVar1 < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < param_2)" ( (binary_expression "uVar1 < param_2" identifier < identifier) ))) )))) )) != (binary_expression "(int)(iVar2 - (uint)(uVar1 < param_2)) < 0" (cast_expression "(int)(iVar2 - (uint)(uVar1 < param_2))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iVar2 - (uint)(uVar1 < param_2))" ( (binary_expression "iVar2 - (uint)(uVar1 < param_2)" identifier - (call_expression "(uint)(uVar1 < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < param_2)" ( (binary_expression "uVar1 < param_2" identifier < identifier) )))) ))) < number_literal)) )) (compound_statement "{\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }" { (expression_statement "memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);" (call_expression "memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1)" identifier (argument_list "((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1)" ( (cast_expression "(void *)(uVar1 + (int)pvVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 + (int)pvVar4)" ( (binary_expression "uVar1 + (int)pvVar4" identifier + (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , number_literal , (binary_expression "param_2 - uVar1" identifier - identifier) ))) ;) })) }))) (expression_statement "param_1[4] = pvVar4;" (assignment_expression "param_1[4] = pvVar4" (subscript_expression "param_1[4]" 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) ;) (expression_statement "param_1[3] = param_3;" (assignment_expression "param_1[3] = param_3" (subscript_expression "param_1[3]" 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) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE 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 ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 TYPE) ) 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 ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT ))) != (call_expression IDENT (argument_list ( IDENT , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) )))) )) != (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) ))) < LIT)) )) (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 TYPE) ) IDENT)) ))) , LIT , (binary_expression IDENT - IDENT) ))) ;) })) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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_000beb70(undefined4 *param_1,uint param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  char cVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  if (*(char *)(param_1 + 5) == '\0') {\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000beb70(undefined4 *param_1,uint param_2,int param_3)" (identifier "FUN_000beb70") (parameter_list "(undefined4 *param_1,uint param_2,int param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char cVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  if (*(char *)(param_1 + 5) == '\0') {\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "void *pvVar4;" (primitive_type "void") (pointer_declarator "*pvVar4" (* "*") (identifier "pvVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (if_statement "if (*(char *)(param_1 + 5) == '\0') {\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 5) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 5) == '\0'" (pointer_expression "*(char *)(param_1 + 5)" (* "*") (cast_expression "(char *)(param_1 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_000beaf0(param_1);\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n    cVar3 = FUN_000be3b0(param_1,1);\n    if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }\n  }" ({ "{") (expression_statement "FUN_000beaf0(param_1);" (call_expression "FUN_000beaf0(param_1)" (identifier "FUN_000beaf0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (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 "param_1[3] = param_3;" (assignment_expression "param_1[3] = param_3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "cVar3 = FUN_000be3b0(param_1,1);" (assignment_expression "cVar3 = FUN_000be3b0(param_1,1)" (identifier "cVar3") (= "=") (call_expression "FUN_000be3b0(param_1,1)" (identifier "FUN_000be3b0") (argument_list "(param_1,1)" (( "(") (identifier "param_1") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (cVar3 == '\0') {\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }" (if "if") (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar5 = __errno_location();\n      pcVar6 = strerror(*piVar5);\n      uVar9 = *param_1;\n      pcVar7 = "%s: mmap: %s";\nLAB_000bec49:\n      uVar8 = gettext(pcVar7);\n                    \n      FUN_0005aca0(uVar8,uVar9,pcVar6);\n    }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar6 = strerror(*piVar5);" (assignment_expression "pcVar6 = strerror(*piVar5)" (identifier "pcVar6") (= "=") (call_expression "strerror(*piVar5)" (identifier "strerror") (argument_list "(*piVar5)" (( "(") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) () ")")))) (; ";")) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" (identifier "uVar9") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar7 = "%s: mmap: %s";" (assignment_expression "pcVar7 = "%s: mmap: %s"" (identifier "pcVar7") (= "=") (string_literal ""%s: mmap: %s"" (" """) (string_content "%s: mmap: %s") (" """))) (; ";")) (labeled_statement "LAB_000bec49:\n      uVar8 = gettext(pcVar7);" (statement_identifier "LAB_000bec49") (: ":") (expression_statement "uVar8 = gettext(pcVar7);" (assignment_expression "uVar8 = gettext(pcVar7)" (identifier "uVar8") (= "=") (call_expression "gettext(pcVar7)" (identifier "gettext") (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")")))) (; ";"))) (expression_statement "FUN_0005aca0(uVar8,uVar9,pcVar6);" (call_expression "FUN_0005aca0(uVar8,uVar9,pcVar6)" (identifier "FUN_0005aca0") (argument_list "(uVar8,uVar9,pcVar6)" (( "(") (identifier "uVar8") (, ",") (identifier "uVar9") (, ",") (identifier "pcVar6") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }" (else "else") (compound_statement "{\n    if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }\n    param_1[4] = pvVar4;\n    param_1[2] = param_2;\n    param_1[3] = param_3;\n  }" ({ "{") (if_statement "if (*(char *)((int)param_1 + 0x15) == '\0') {\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }\n    else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }" (if "if") (parenthesized_expression "(*(char *)((int)param_1 + 0x15) == '\0')" (( "(") (binary_expression "*(char *)((int)param_1 + 0x15) == '\0'" (pointer_expression "*(char *)((int)param_1 + 0x15)" (* "*") (cast_expression "(char *)((int)param_1 + 0x15)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x15)" (( "(") (binary_expression "(int)param_1 + 0x15" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x15")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);\n      if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }\n    }" ({ "{") (expression_statement "pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);" (assignment_expression "pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1)" (identifier "pvVar4") (= "=") (call_expression "mremap((void *)param_1[4],param_1[2],param_2,1)" (identifier "mremap") (argument_list "((void *)param_1[4],param_1[2],param_2,1)" (( "(") (cast_expression "(void *)param_1[4]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (, ",") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "param_2") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (pvVar4 == (void *)0xffffffff) {\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }" (if "if") (parenthesized_expression "(pvVar4 == (void *)0xffffffff)" (( "(") (binary_expression "pvVar4 == (void *)0xffffffff" (identifier "pvVar4") (== "==") (cast_expression "(void *)0xffffffff" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) () ")")) (compound_statement "{\n        piVar5 = __errno_location();\n        pcVar6 = strerror(*piVar5);\n        uVar9 = *param_1;\n        pcVar7 = "%s: mremap: %s";\n        goto LAB_000bec49;\n      }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar6 = strerror(*piVar5);" (assignment_expression "pcVar6 = strerror(*piVar5)" (identifier "pcVar6") (= "=") (call_expression "strerror(*piVar5)" (identifier "strerror") (argument_list "(*piVar5)" (( "(") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) () ")")))) (; ";")) (expression_statement "uVar9 = *param_1;" (assignment_expression "uVar9 = *param_1" (identifier "uVar9") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar7 = "%s: mremap: %s";" (assignment_expression "pcVar7 = "%s: mremap: %s"" (identifier "pcVar7") (= "=") (string_literal ""%s: mremap: %s"" (" """) (string_content "%s: mremap: %s") (" """))) (; ";")) (goto_statement "goto LAB_000bec49;" (goto "goto") (statement_identifier "LAB_000bec49") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }" (else "else") (compound_statement "{\n      pvVar4 = realloc((void *)param_1[4],param_2);\n      if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }\n      uVar1 = param_1[2];\n      iVar2 = param_1[3] - param_3;\n      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }\n    }" ({ "{") (expression_statement "pvVar4 = realloc((void *)param_1[4],param_2);" (assignment_expression "pvVar4 = realloc((void *)param_1[4],param_2)" (identifier "pvVar4") (= "=") (call_expression "realloc((void *)param_1[4],param_2)" (identifier "realloc") (argument_list "((void *)param_1[4],param_2)" (( "(") (cast_expression "(void *)param_1[4]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (pvVar4 == (void *)0x0) {\n                    \n        FUN_0005f060();\n      }" (if "if") (parenthesized_expression "(pvVar4 == (void *)0x0)" (( "(") (binary_expression "pvVar4 == (void *)0x0" (identifier "pvVar4") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n        FUN_0005f060();\n      }" ({ "{") (expression_statement "FUN_0005f060();" (call_expression "FUN_0005f060()" (identifier "FUN_0005f060") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" (identifier "uVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar2 = param_1[3] - param_3;" (assignment_expression "iVar2 = param_1[3] - param_3" (identifier "iVar2") (= "=") (binary_expression "param_1[3] - param_3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (- "-") (identifier "param_3"))) (; ";")) (if_statement "if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }" (if "if") (parenthesized_expression "((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0)" (( "(") (binary_expression "(SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=\n          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0" (parenthesized_expression "(SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2)))" (( "(") (binary_expression "SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))" (call_expression "SBORROW4(param_1[3],param_3)" (identifier "SBORROW4") (argument_list "(param_1[3],param_3)" (( "(") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (, ",") (identifier "param_3") () ")"))) (!= "!=") (call_expression "SBORROW4(iVar2,(uint)(uVar1 < param_2))" (identifier "SBORROW4") (argument_list "(iVar2,(uint)(uVar1 < param_2))" (( "(") (identifier "iVar2") (, ",") (call_expression "(uint)(uVar1 < param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < param_2)" (( "(") (binary_expression "uVar1 < param_2" (identifier "uVar1") (< "<") (identifier "param_2")) () ")"))) () ")")))) () ")")) (!= "!=") (binary_expression "(int)(iVar2 - (uint)(uVar1 < param_2)) < 0" (cast_expression "(int)(iVar2 - (uint)(uVar1 < param_2))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(iVar2 - (uint)(uVar1 < param_2))" (( "(") (binary_expression "iVar2 - (uint)(uVar1 < param_2)" (identifier "iVar2") (- "-") (call_expression "(uint)(uVar1 < param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < param_2)" (( "(") (binary_expression "uVar1 < param_2" (identifier "uVar1") (< "<") (identifier "param_2")) () ")")))) () ")"))) (< "<") (number_literal "0"))) () ")")) (compound_statement "{\n        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);\n      }" ({ "{") (expression_statement "memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);" (call_expression "memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1)" (identifier "memset") (argument_list "((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1)" (( "(") (cast_expression "(void *)(uVar1 + (int)pvVar4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar1 + (int)pvVar4)" (( "(") (binary_expression "uVar1 + (int)pvVar4" (identifier "uVar1") (+ "+") (cast_expression "(int)pvVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar4"))) () ")"))) (, ",") (number_literal "0") (, ",") (binary_expression "param_2 - uVar1" (identifier "param_2") (- "-") (identifier "uVar1")) () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "param_1[4] = pvVar4;" (assignment_expression "param_1[4] = pvVar4" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "pvVar4")) (; ";")) (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 "param_1[3] = param_3;" (assignment_expression "param_1[3] = param_3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_3")) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void resize(Output_file * this, off_t file_size) */

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

{
  type_3 var_13;
  int var_11;
  int var_14;
  bool bVar4;
  type_4 *var_8;
  int *piVar6;
  char *pcVar7;
  char *pcVar8;
  char *pcVar9;
  
  if (this->map_is_anonymous_ == false) {
    var_1(this);
    this->file_size_ = file_size;
    bVar4 = var_2(this,true);
    if (!bVar4) {
      piVar6 = var_3();
      pcVar7 = var_4(*piVar6);
      pcVar9 = this->name_;
      pcVar8 = "%s: mmap: %s";
LAB_000bec49:
      pcVar8 = (char *)var_5(pcVar8);
                    /* WARNING: Subroutine does not return */
      var_6(pcVar8,pcVar9,pcVar7);
    }
  }
  else {
    if (this->map_is_allocated_ == false) {
      var_8 = (type_4 *)var_7(this->base_,(size_t)this->file_size_,(type_3)file_size,1);
      if (var_8 == (type_4 *)0xffffffff) {
        piVar6 = var_3();
        pcVar7 = var_4(*piVar6);
        pcVar9 = this->name_;
        pcVar8 = "%s: mremap: %s";
        goto LAB_000bec49;
      }
    }
    else {
      var_8 = (type_4 *)var_9(this->base_,(type_3)file_size);
      if (var_8 == (type_4 *)0x0) {
                    /* WARNING: Subroutine does not return */
        var_10();
      }
      var_13 = (type_3)this->file_size_;
      var_11 = *(int *)((int)&this->file_size_ + 4);
      var_14 = var_11 - file_size._4_4_;
      if ((var_12(var_11,file_size._4_4_) != var_12(var_14,(type_3)(var_13 < (type_3)file_size))) !=
          (int)(var_14 - (type_3)(var_13 < (type_3)file_size)) < 0) {
        var_15(var_8 + var_13,0,(type_3)file_size - var_13);
      }
    }
    this->base_ = var_8;
    this->file_size_ = file_size;
  }
  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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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 (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))) (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: (primitive_type)) 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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier))) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) right: (number_literal)))) 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: (primitive_type)) 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))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (return_statement))))

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

void MASKED(undefined4 *param_1,uint param_2,int param_3)

{
  uint uVar1;
  int iVar2;
  char cVar3;
  void *pvVar4;
  int *piVar5;
  char *pcVar6;
  char *pcVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  
  if (*(char *)(param_1 + 5) == '\0') {
    FUN_000beaf0(param_1);
    param_1[2] = param_2;
    param_1[3] = param_3;
    cVar3 = FUN_000be3b0(param_1,1);
    if (cVar3 == '\0') {
      piVar5 = __errno_location();
      pcVar6 = strerror(*piVar5);
      uVar9 = *param_1;
      pcVar7 = "%s: mmap: %s";
LAB_000bec49:
      uVar8 = gettext(pcVar7);
                    /* WARNING: Subroutine does not return */
      FUN_0005aca0(uVar8,uVar9,pcVar6);
    }
  }
  else {
    if (*(char *)((int)param_1 + 0x15) == '\0') {
      pvVar4 = mremap((void *)param_1[4],param_1[2],param_2,1);
      if (pvVar4 == (void *)0xffffffff) {
        piVar5 = __errno_location();
        pcVar6 = strerror(*piVar5);
        uVar9 = *param_1;
        pcVar7 = "%s: mremap: %s";
        goto LAB_000bec49;
      }
    }
    else {
      pvVar4 = realloc((void *)param_1[4],param_2);
      if (pvVar4 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
        FUN_0005f060();
      }
      uVar1 = param_1[2];
      iVar2 = param_1[3] - param_3;
      if ((SBORROW4(param_1[3],param_3) != SBORROW4(iVar2,(uint)(uVar1 < param_2))) !=
          (int)(iVar2 - (uint)(uVar1 < param_2)) < 0) {
        memset((void *)(uVar1 + (int)pvVar4),0,param_2 - uVar1);
      }
    }
    param_1[4] = pvVar4;
    param_1[2] = param_2;
    param_1[3] = param_3;
  }
  return;
}

