
/* DWARF original prototype: void read_next_header(const_iterator * this) */

void __thiscall gold::Archive::const_iterator::read_next_header(const_iterator *this)

{
  Header *pname;
  ulong uVar1;
  _func_int_varargs *p_Var2;
  pointer pcVar3;
  size_type sVar4;
  int iVar5;
  long lVar6;
  char *format;
  File_read *pFVar7;
  long lVar8;
  ulong uVar9;
  Input_file *pIVar10;
  uchar buf [60];
  undefined4 extraout_var;
  
  uVar9 = this->off_;
  pIVar10 = this->archive_->input_file_;
  uVar1 = (pIVar10->file_).size_;
  if ((long)(uVar1 - uVar9) < 0x3c) {
LAB_0028d408:
    if (uVar1 != uVar9) {
      p_Var2 = (this->archive_->super_Library_base)._vptr_Library_base[2];
      if (p_Var2 == do_filename) {
        pFVar7 = &this->archive_->input_file_->file_;
      }
      else {
        iVar5 = (*p_Var2)();
        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);
      }
      pcVar3 = (pFVar7->name_)._M_dataplus._M_p;
      format = (char *)gettext("%s: short archive header at %zu");
      gold_error(format,pcVar3,uVar9);
      this->off_ = uVar1;
    }
  }
  else {
    pname = &this->header_;
    while( true ) {
      File_read::read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf);
      lVar6 = interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,
                               &(this->header_).nested_off);
      if (lVar6 == -1) break;
      lVar8 = this->off_;
      sVar4 = (this->header_).name._M_string_length;
      (this->header_).size = lVar6;
      (this->header_).off = lVar8;
      if (sVar4 != 0) {
        iVar5 = std::string::compare((string *)pname,"/");
        if (iVar5 != 0) {
          iVar5 = std::string::compare((string *)pname,"/SYM64/");
          if (iVar5 != 0) {
            return;
          }
        }
        lVar8 = this->off_;
        lVar6 = (this->header_).size;
      }
      uVar9 = lVar8 + lVar6 + 0x3c;
      if ((uVar9 & 1) != 0) {
        uVar9 = lVar8 + lVar6 + 0x3d;
      }
      this->off_ = uVar9;
      if ((long)(uVar1 - uVar9) < 0x3c) goto LAB_0028d408;
      pIVar10 = this->archive_->input_file_;
    }
  }
  (this->header_).off = uVar1;
  return;
}



void FUN_0028d300(long *param_1)

{
  long *plVar1;
  ulong uVar2;
  code *pcVar3;
  undefined8 uVar4;
  int iVar5;
  long lVar6;
  undefined8 *puVar7;
  undefined8 uVar8;
  long lVar9;
  ulong uVar10;
  undefined1 local_78 [72];
  
  uVar10 = param_1[1];
  lVar6 = *(long *)(*param_1 + 0x38);
  uVar2 = *(ulong *)(lVar6 + 0x58);
  if ((long)(uVar2 - uVar10) < 0x3c) {
LAB_0028d408:
    if (uVar2 != uVar10) {
      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);
      if (pcVar3 == FUN_00290110) {
        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);
      }
      else {
        puVar7 = (undefined8 *)(*pcVar3)();
      }
      uVar4 = *puVar7;
      uVar8 = gettext("%s: short archive header at %zu");
      FUN_00178320(uVar8,uVar4,uVar10);
      param_1[1] = uVar2;
    }
  }
  else {
    plVar1 = param_1 + 2;
    while( true ) {
      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);
      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);
      if (lVar6 == -1) break;
      lVar9 = param_1[1];
      param_1[8] = lVar6;
      param_1[6] = lVar9;
      if (param_1[3] != 0) {
        iVar5 = FUN_002e3a50(plVar1,"/");
        if (iVar5 != 0) {
          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");
          if (iVar5 != 0) {
            return;
          }
        }
        lVar9 = param_1[1];
        lVar6 = param_1[8];
      }
      uVar10 = lVar9 + lVar6 + 0x3c;
      if ((uVar10 & 1) != 0) {
        uVar10 = lVar9 + lVar6 + 0x3d;
      }
      param_1[1] = uVar10;
      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;
      lVar6 = *(long *)(*param_1 + 0x38);
    }
  }
  param_1[6] = uVar2;
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x58
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RAX + 0x38]
MOV R13,qword ptr [RDI + 0x58]
MOV RAX,R13
SUB RAX,RSI
CMP RAX,0x3b
JLE 0x0028d408
LEA R14,[RBX + 0x38]
LEA R12,[RBX + 0x10]
LEA RBP,[RSP + 0x10]
LEA R15,[0x38a650]
JMP 0x0028d37c
ADD RDX,RAX
LEA RSI,[RDX + 0x3c]
TEST SIL,0x1
JZ 0x0028d361
LEA RSI,[RDX + 0x3d]
MOV RAX,R13
MOV qword ptr [RBX + 0x8],RSI
SUB RAX,RSI
CMP RAX,0x3b
JLE 0x0028d408
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX + 0x38]
ADD RDI,0x28
MOV RCX,RBP
MOV EDX,0x3c
CALL 0x00179cb0
MOV RDX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RBX]
MOV R8,R14
MOV RCX,R12
MOV RSI,RBP
CALL 0x0028cf50
CMP RAX,-0x1
JZ 0x0028d458
MOV RDX,qword ptr [RBX + 0x8]
CMP qword ptr [RBX + 0x18],0x0
MOV qword ptr [RBX + 0x40],RAX
MOV qword ptr [RBX + 0x30],RDX
JZ 0x0028d350
MOV RSI,R15
MOV RDI,R12
CALL 0x002e3a50
TEST EAX,EAX
JNZ 0x0028d3e0
MOV RDX,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RBX + 0x40]
JMP 0x0028d350
LEA RSI,[0x38a64a]
MOV RDI,R12
CALL 0x002e3a50
TEST EAX,EAX
JZ 0x0028d3ce
ADD RSP,0x58
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
CMP R13,RSI
JZ 0x0028d458
MOV RDI,qword ptr [RBX]
LEA RDX,[0x290110]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x10]
CMP RAX,RDX
JNZ 0x0028d46b
MOV RAX,qword ptr [RDI + 0x38]
ADD RAX,0x28
LEA RDI,[0x38a7b8]
MOV qword ptr [RSP + 0x8],RSI
MOV RBP,qword ptr [RAX]
CALL 0x00147320
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,RAX
XOR EAX,EAX
MOV RDX,RSI
MOV RSI,RBP
CALL 0x00178320
MOV qword ptr [RBX + 0x8],R13
MOV qword ptr [RBX + 0x30],R13
ADD RSP,0x58
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV qword ptr [RSP + 0x8],RSI
CALL RAX
MOV RSI,qword ptr [RSP + 0x8]
JMP 0x0028d42b
(translation_unit "void FUN_0028d300(long *param_1)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  code *pcVar3;\n  undefined8 uVar4;\n  int iVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  undefined8 uVar8;\n  long lVar9;\n  ulong uVar10;\n  undefined1 local_78 [72];\n  \n  uVar10 = param_1[1];\n  lVar6 = *(long *)(*param_1 + 0x38);\n  uVar2 = *(ulong *)(lVar6 + 0x58);\n  if ((long)(uVar2 - uVar10) < 0x3c) {\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }\n  else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }\n  param_1[6] = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_0028d300(long *param_1)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  code *pcVar3;\n  undefined8 uVar4;\n  int iVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  undefined8 uVar8;\n  long lVar9;\n  ulong uVar10;\n  undefined1 local_78 [72];\n  \n  uVar10 = param_1[1];\n  lVar6 = *(long *)(*param_1 + 0x38);\n  uVar2 = *(ulong *)(lVar6 + 0x58);\n  if ((long)(uVar2 - uVar10) < 0x3c) {\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }\n  else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }\n  param_1[6] = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0028d300(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  code *pcVar3;\n  undefined8 uVar4;\n  int iVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  undefined8 uVar8;\n  long lVar9;\n  ulong uVar10;\n  undefined1 local_78 [72];\n  \n  uVar10 = param_1[1];\n  lVar6 = *(long *)(*param_1 + 0x38);\n  uVar2 = *(ulong *)(lVar6 + 0x58);\n  if ((long)(uVar2 - uVar10) < 0x3c) {\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }\n  else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }\n  param_1[6] = uVar2;\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "undefined1 local_78 [72];" type_identifier (array_declarator "local_78 [72]" identifier [ number_literal ]) ;) (expression_statement "uVar10 = param_1[1];" (assignment_expression "uVar10 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "lVar6 = *(long *)(*param_1 + 0x38);" (assignment_expression "lVar6 = *(long *)(*param_1 + 0x38)" identifier = (pointer_expression "*(long *)(*param_1 + 0x38)" * (cast_expression "(long *)(*param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(ulong *)(lVar6 + 0x58);" (assignment_expression "uVar2 = *(ulong *)(lVar6 + 0x58)" identifier = (pointer_expression "*(ulong *)(lVar6 + 0x58)" * (cast_expression "(ulong *)(lVar6 + 0x58)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x58)" ( (binary_expression "lVar6 + 0x58" identifier + number_literal) ))))) ;) (if_statement "if ((long)(uVar2 - uVar10) < 0x3c) {\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }\n  else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }" if (parenthesized_expression "((long)(uVar2 - uVar10) < 0x3c)" ( (binary_expression "(long)(uVar2 - uVar10) < 0x3c" (cast_expression "(long)(uVar2 - uVar10)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(uVar2 - uVar10)" ( (binary_expression "uVar2 - uVar10" identifier - identifier) ))) < number_literal) )) (compound_statement "{\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }" { (labeled_statement "LAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }" statement_identifier : (if_statement "if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }" if (parenthesized_expression "(uVar2 != uVar10)" ( (binary_expression "uVar2 != uVar10" identifier != identifier) )) (compound_statement "{\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }" { (expression_statement "pcVar3 = *(code **)(*(long *)*param_1 + 0x10);" (assignment_expression "pcVar3 = *(code **)(*(long *)*param_1 + 0x10)" identifier = (pointer_expression "*(code **)(*(long *)*param_1 + 0x10)" * (cast_expression "(code **)(*(long *)*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)*param_1 + 0x10)" ( (binary_expression "*(long *)*param_1 + 0x10" (pointer_expression "*(long *)*param_1" * (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) + number_literal) ))))) ;) (if_statement "if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }" if (parenthesized_expression "(pcVar3 == FUN_00290110)" ( (binary_expression "pcVar3 == FUN_00290110" identifier == identifier) )) (compound_statement "{\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }" { (expression_statement "puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);" (assignment_expression "puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28)" identifier = (cast_expression "(undefined8 *)(((long *)*param_1)[7] + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((long *)*param_1)[7] + 0x28)" ( (binary_expression "((long *)*param_1)[7] + 0x28" (subscript_expression "((long *)*param_1)[7]" (parenthesized_expression "((long *)*param_1)" ( (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )) [ number_literal ]) + number_literal) )))) ;) }) (else_clause "else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }" else (compound_statement "{\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }" { (expression_statement "puVar7 = (undefined8 *)(*pcVar3)();" (assignment_expression "puVar7 = (undefined8 *)(*pcVar3)()" identifier = (cast_expression "(undefined8 *)(*pcVar3)()" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))))) ;) }))) (expression_statement "uVar4 = *puVar7;" (assignment_expression "uVar4 = *puVar7" identifier = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "uVar8 = gettext("%s: short archive header at %zu");" (assignment_expression "uVar8 = gettext("%s: short archive header at %zu")" identifier = (call_expression "gettext("%s: short archive header at %zu")" identifier (argument_list "("%s: short archive header at %zu")" ( (string_literal ""%s: short archive header at %zu"" " string_content ") )))) ;) (expression_statement "FUN_00178320(uVar8,uVar4,uVar10);" (call_expression "FUN_00178320(uVar8,uVar4,uVar10)" identifier (argument_list "(uVar8,uVar4,uVar10)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_1[1] = uVar2;" (assignment_expression "param_1[1] = uVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) }))) }) (else_clause "else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }" else (compound_statement "{\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }" { (expression_statement "plVar1 = param_1 + 2;" (assignment_expression "plVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (while_statement "while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }" { (expression_statement "FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);" (call_expression "FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78)" identifier (argument_list "(lVar6 + 0x28,uVar10,0x3c,local_78)" ( (binary_expression "lVar6 + 0x28" identifier + number_literal) , identifier , number_literal , identifier ))) ;) (expression_statement "lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);" (assignment_expression "lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7)" identifier = (call_expression "FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7)" identifier (argument_list "(*param_1,local_78,param_1[1],plVar1,param_1 + 7)" ( (pointer_expression "*param_1" * identifier) , identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier , (binary_expression "param_1 + 7" identifier + number_literal) )))) ;) (if_statement "if (lVar6 == -1) break;" if (parenthesized_expression "(lVar6 == -1)" ( (binary_expression "lVar6 == -1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar9 = param_1[1];" (assignment_expression "lVar9 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[8] = lVar6;" (assignment_expression "param_1[8] = lVar6" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = lVar9;" (assignment_expression "param_1[6] = lVar9" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }" if (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }" { (expression_statement "iVar5 = FUN_002e3a50(plVar1,"/");" (assignment_expression "iVar5 = FUN_002e3a50(plVar1,"/")" identifier = (call_expression "FUN_002e3a50(plVar1,"/")" identifier (argument_list "(plVar1,"/")" ( identifier , (string_literal ""/"" " string_content ") )))) ;) (if_statement "if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }" { (expression_statement "iVar5 = FUN_002e3a50(plVar1,"/SYM64/");" (assignment_expression "iVar5 = FUN_002e3a50(plVar1,"/SYM64/")" identifier = (call_expression "FUN_002e3a50(plVar1,"/SYM64/")" identifier (argument_list "(plVar1,"/SYM64/")" ( identifier , (string_literal ""/SYM64/"" " string_content ") )))) ;) (if_statement "if (iVar5 != 0) {\n            return;\n          }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) })) (expression_statement "lVar9 = param_1[1];" (assignment_expression "lVar9 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "lVar6 = param_1[8];" (assignment_expression "lVar6 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) })) (expression_statement "uVar10 = lVar9 + lVar6 + 0x3c;" (assignment_expression "uVar10 = lVar9 + lVar6 + 0x3c" identifier = (binary_expression "lVar9 + lVar6 + 0x3c" (binary_expression "lVar9 + lVar6" identifier + identifier) + number_literal)) ;) (if_statement "if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }" if (parenthesized_expression "((uVar10 & 1) != 0)" ( (binary_expression "(uVar10 & 1) != 0" (parenthesized_expression "(uVar10 & 1)" ( (binary_expression "uVar10 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }" { (expression_statement "uVar10 = lVar9 + lVar6 + 0x3d;" (assignment_expression "uVar10 = lVar9 + lVar6 + 0x3d" identifier = (binary_expression "lVar9 + lVar6 + 0x3d" (binary_expression "lVar9 + lVar6" identifier + identifier) + number_literal)) ;) })) (expression_statement "param_1[1] = uVar10;" (assignment_expression "param_1[1] = uVar10" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;" if (parenthesized_expression "((long)(uVar2 - uVar10) < 0x3c)" ( (binary_expression "(long)(uVar2 - uVar10) < 0x3c" (cast_expression "(long)(uVar2 - uVar10)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(uVar2 - uVar10)" ( (binary_expression "uVar2 - uVar10" identifier - identifier) ))) < number_literal) )) (goto_statement "goto LAB_0028d408;" goto statement_identifier ;)) (expression_statement "lVar6 = *(long *)(*param_1 + 0x38);" (assignment_expression "lVar6 = *(long *)(*param_1 + 0x38)" identifier = (pointer_expression "*(long *)(*param_1 + 0x38)" * (cast_expression "(long *)(*param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) })) }))) (expression_statement "param_1[6] = uVar2;" (assignment_expression "param_1[6] = uVar2" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void read_next_header(const_iterator * this) */\n\nvoid __thiscall gold::Archive::const_iterator::read_next_header(const_iterator *this)\n\n{\n  Header *pname;\n  ulong uVar1;\n  _func_int_varargs *p_Var2;\n  pointer pcVar3;\n  size_type sVar4;\n  int iVar5;\n  long lVar6;\n  char *format;\n  File_read *pFVar7;\n  long lVar8;\n  ulong uVar9;\n  Input_file *pIVar10;\n  uchar buf [60];\n  undefined4 extraout_var;\n  \n  uVar9 = this->off_;\n  pIVar10 = this->archive_->input_file_;\n  uVar1 = (pIVar10->file_).size_;\n  if ((long)(uVar1 - uVar9) < 0x3c) {\nLAB_0028d408:\n    if (uVar1 != uVar9) {\n      p_Var2 = (this->archive_->super_Library_base)._vptr_Library_base[2];\n      if (p_Var2 == do_filename) {\n        pFVar7 = &this->archive_->input_file_->file_;\n      }\n      else {\n        iVar5 = (*p_Var2)();\n        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);\n      }\n      pcVar3 = (pFVar7->name_)._M_dataplus._M_p;\n      format = (char *)gettext("%s: short archive header at %zu");\n      gold_error(format,pcVar3,uVar9);\n      this->off_ = uVar1;\n    }\n  }\n  else {\n    pname = &this->header_;\n    while( true ) {\n      File_read::read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf);\n      lVar6 = interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off);\n      if (lVar6 == -1) break;\n      lVar8 = this->off_;\n      sVar4 = (this->header_).name._M_string_length;\n      (this->header_).size = lVar6;\n      (this->header_).off = lVar8;\n      if (sVar4 != 0) {\n        iVar5 = std::string::compare((string *)pname,"/");\n        if (iVar5 != 0) {\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar8 = this->off_;\n        lVar6 = (this->header_).size;\n      }\n      uVar9 = lVar8 + lVar6 + 0x3c;\n      if ((uVar9 & 1) != 0) {\n        uVar9 = lVar8 + lVar6 + 0x3d;\n      }\n      this->off_ = uVar9;\n      if ((long)(uVar1 - uVar9) < 0x3c) goto LAB_0028d408;\n      pIVar10 = this->archive_->input_file_;\n    }\n  }\n  (this->header_).off = uVar1;\n  return;\n}\n\n" comment (function_definition "void __thiscall gold::Archive::const_iterator::read_next_header(const_iterator *this)\n\n{\n  Header *pname;\n  ulong uVar1;\n  _func_int_varargs *p_Var2;\n  pointer pcVar3;\n  size_type sVar4;\n  int iVar5;\n  long lVar6;\n  char *format;\n  File_read *pFVar7;\n  long lVar8;\n  ulong uVar9;\n  Input_file *pIVar10;\n  uchar buf [60];\n  undefined4 extraout_var;\n  \n  uVar9 = this->off_;\n  pIVar10 = this->archive_->input_file_;\n  uVar1 = (pIVar10->file_).size_;\n  if ((long)(uVar1 - uVar9) < 0x3c) {\nLAB_0028d408:\n    if (uVar1 != uVar9) {\n      p_Var2 = (this->archive_->super_Library_base)._vptr_Library_base[2];\n      if (p_Var2 == do_filename) {\n        pFVar7 = &this->archive_->input_file_->file_;\n      }\n      else {\n        iVar5 = (*p_Var2)();\n        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);\n      }\n      pcVar3 = (pFVar7->name_)._M_dataplus._M_p;\n      format = (char *)gettext("%s: short archive header at %zu");\n      gold_error(format,pcVar3,uVar9);\n      this->off_ = uVar1;\n    }\n  }\n  else {\n    pname = &this->header_;\n    while( true ) {\n      File_read::read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf);\n      lVar6 = interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off);\n      if (lVar6 == -1) break;\n      lVar8 = this->off_;\n      sVar4 = (this->header_).name._M_string_length;\n      (this->header_).size = lVar6;\n      (this->header_).off = lVar8;\n      if (sVar4 != 0) {\n        iVar5 = std::string::compare((string *)pname,"/");\n        if (iVar5 != 0) {\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar8 = this->off_;\n        lVar6 = (this->header_).size;\n      }\n      uVar9 = lVar8 + lVar6 + 0x3c;\n      if ((uVar9 & 1) != 0) {\n        uVar9 = lVar8 + lVar6 + 0x3d;\n      }\n      this->off_ = uVar9;\n      if ((long)(uVar1 - uVar9) < 0x3c) goto LAB_0028d408;\n      pIVar10 = this->archive_->input_file_;\n    }\n  }\n  (this->header_).off = uVar1;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Archive::const_iterator::" identifier : : identifier : : identifier : :) (function_declarator "read_next_header(const_iterator *this)" identifier (parameter_list "(const_iterator *this)" ( (parameter_declaration "const_iterator *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  Header *pname;\n  ulong uVar1;\n  _func_int_varargs *p_Var2;\n  pointer pcVar3;\n  size_type sVar4;\n  int iVar5;\n  long lVar6;\n  char *format;\n  File_read *pFVar7;\n  long lVar8;\n  ulong uVar9;\n  Input_file *pIVar10;\n  uchar buf [60];\n  undefined4 extraout_var;\n  \n  uVar9 = this->off_;\n  pIVar10 = this->archive_->input_file_;\n  uVar1 = (pIVar10->file_).size_;\n  if ((long)(uVar1 - uVar9) < 0x3c) {\nLAB_0028d408:\n    if (uVar1 != uVar9) {\n      p_Var2 = (this->archive_->super_Library_base)._vptr_Library_base[2];\n      if (p_Var2 == do_filename) {\n        pFVar7 = &this->archive_->input_file_->file_;\n      }\n      else {\n        iVar5 = (*p_Var2)();\n        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);\n      }\n      pcVar3 = (pFVar7->name_)._M_dataplus._M_p;\n      format = (char *)gettext("%s: short archive header at %zu");\n      gold_error(format,pcVar3,uVar9);\n      this->off_ = uVar1;\n    }\n  }\n  else {\n    pname = &this->header_;\n    while( true ) {\n      File_read::read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf);\n      lVar6 = interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off);\n      if (lVar6 == -1) break;\n      lVar8 = this->off_;\n      sVar4 = (this->header_).name._M_string_length;\n      (this->header_).size = lVar6;\n      (this->header_).off = lVar8;\n      if (sVar4 != 0) {\n        iVar5 = std::string::compare((string *)pname,"/");\n        if (iVar5 != 0) {\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar8 = this->off_;\n        lVar6 = (this->header_).size;\n      }\n      uVar9 = lVar8 + lVar6 + 0x3c;\n      if ((uVar9 & 1) != 0) {\n        uVar9 = lVar8 + lVar6 + 0x3d;\n      }\n      this->off_ = uVar9;\n      if ((long)(uVar1 - uVar9) < 0x3c) goto LAB_0028d408;\n      pIVar10 = this->archive_->input_file_;\n    }\n  }\n  (this->header_).off = uVar1;\n  return;\n}" { (declaration "Header *pname;" type_identifier (pointer_declarator "*pname" * identifier) ;) (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "_func_int_varargs *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "pointer pcVar3;" type_identifier identifier ;) (declaration "size_type sVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "File_read *pFVar7;" type_identifier (pointer_declarator "*pFVar7" * identifier) ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "Input_file *pIVar10;" type_identifier (pointer_declarator "*pIVar10" * identifier) ;) (declaration "uchar buf [60];" type_identifier (array_declarator "buf [60]" identifier [ number_literal ]) ;) (declaration "undefined4 extraout_var;" type_identifier identifier ;) (expression_statement "uVar9 = this->off_;" (assignment_expression "uVar9 = this->off_" identifier = (field_expression "this->off_" identifier -> field_identifier)) ;) (expression_statement "pIVar10 = this->archive_->input_file_;" (assignment_expression "pIVar10 = this->archive_->input_file_" identifier = (field_expression "this->archive_->input_file_" (field_expression "this->archive_" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "uVar1 = (pIVar10->file_).size_;" (assignment_expression "uVar1 = (pIVar10->file_).size_" identifier = (field_expression "(pIVar10->file_).size_" (parenthesized_expression "(pIVar10->file_)" ( (field_expression "pIVar10->file_" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((long)(uVar1 - uVar9) < 0x3c) {\nLAB_0028d408:\n    if (uVar1 != uVar9) {\n      p_Var2 = (this->archive_->super_Library_base)._vptr_Library_base[2];\n      if (p_Var2 == do_filename) {\n        pFVar7 = &this->archive_->input_file_->file_;\n      }\n      else {\n        iVar5 = (*p_Var2)();\n        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);\n      }\n      pcVar3 = (pFVar7->name_)._M_dataplus._M_p;\n      format = (char *)gettext("%s: short archive header at %zu");\n      gold_error(format,pcVar3,uVar9);\n      this->off_ = uVar1;\n    }\n  }\n  else {\n    pname = &this->header_;\n    while( true ) {\n      File_read::read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf);\n      lVar6 = interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off);\n      if (lVar6 == -1) break;\n      lVar8 = this->off_;\n      sVar4 = (this->header_).name._M_string_length;\n      (this->header_).size = lVar6;\n      (this->header_).off = lVar8;\n      if (sVar4 != 0) {\n        iVar5 = std::string::compare((string *)pname,"/");\n        if (iVar5 != 0) {\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar8 = this->off_;\n        lVar6 = (this->header_).size;\n      }\n      uVar9 = lVar8 + lVar6 + 0x3c;\n      if ((uVar9 & 1) != 0) {\n        uVar9 = lVar8 + lVar6 + 0x3d;\n      }\n      this->off_ = uVar9;\n      if ((long)(uVar1 - uVar9) < 0x3c) goto LAB_0028d408;\n      pIVar10 = this->archive_->input_file_;\n    }\n  }" if (parenthesized_expression "((long)(uVar1 - uVar9) < 0x3c)" ( (binary_expression "(long)(uVar1 - uVar9) < 0x3c" (cast_expression "(long)(uVar1 - uVar9)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(uVar1 - uVar9)" ( (binary_expression "uVar1 - uVar9" identifier - identifier) ))) < number_literal) )) (compound_statement "{\nLAB_0028d408:\n    if (uVar1 != uVar9) {\n      p_Var2 = (this->archive_->super_Library_base)._vptr_Library_base[2];\n      if (p_Var2 == do_filename) {\n        pFVar7 = &this->archive_->input_file_->file_;\n      }\n      else {\n        iVar5 = (*p_Var2)();\n        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);\n      }\n      pcVar3 = (pFVar7->name_)._M_dataplus._M_p;\n      format = (char *)gettext("%s: short archive header at %zu");\n      gold_error(format,pcVar3,uVar9);\n      this->off_ = uVar1;\n    }\n  }" { (labeled_statement "LAB_0028d408:\n    if (uVar1 != uVar9) {\n      p_Var2 = (this->archive_->super_Library_base)._vptr_Library_base[2];\n      if (p_Var2 == do_filename) {\n        pFVar7 = &this->archive_->input_file_->file_;\n      }\n      else {\n        iVar5 = (*p_Var2)();\n        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);\n      }\n      pcVar3 = (pFVar7->name_)._M_dataplus._M_p;\n      format = (char *)gettext("%s: short archive header at %zu");\n      gold_error(format,pcVar3,uVar9);\n      this->off_ = uVar1;\n    }" statement_identifier : (if_statement "if (uVar1 != uVar9) {\n      p_Var2 = (this->archive_->super_Library_base)._vptr_Library_base[2];\n      if (p_Var2 == do_filename) {\n        pFVar7 = &this->archive_->input_file_->file_;\n      }\n      else {\n        iVar5 = (*p_Var2)();\n        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);\n      }\n      pcVar3 = (pFVar7->name_)._M_dataplus._M_p;\n      format = (char *)gettext("%s: short archive header at %zu");\n      gold_error(format,pcVar3,uVar9);\n      this->off_ = uVar1;\n    }" if (parenthesized_expression "(uVar1 != uVar9)" ( (binary_expression "uVar1 != uVar9" identifier != identifier) )) (compound_statement "{\n      p_Var2 = (this->archive_->super_Library_base)._vptr_Library_base[2];\n      if (p_Var2 == do_filename) {\n        pFVar7 = &this->archive_->input_file_->file_;\n      }\n      else {\n        iVar5 = (*p_Var2)();\n        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);\n      }\n      pcVar3 = (pFVar7->name_)._M_dataplus._M_p;\n      format = (char *)gettext("%s: short archive header at %zu");\n      gold_error(format,pcVar3,uVar9);\n      this->off_ = uVar1;\n    }" { (expression_statement "p_Var2 = (this->archive_->super_Library_base)._vptr_Library_base[2];" (assignment_expression "p_Var2 = (this->archive_->super_Library_base)._vptr_Library_base[2]" identifier = (subscript_expression "(this->archive_->super_Library_base)._vptr_Library_base[2]" (field_expression "(this->archive_->super_Library_base)._vptr_Library_base" (parenthesized_expression "(this->archive_->super_Library_base)" ( (field_expression "this->archive_->super_Library_base" (field_expression "this->archive_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (if_statement "if (p_Var2 == do_filename) {\n        pFVar7 = &this->archive_->input_file_->file_;\n      }\n      else {\n        iVar5 = (*p_Var2)();\n        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);\n      }" if (parenthesized_expression "(p_Var2 == do_filename)" ( (binary_expression "p_Var2 == do_filename" identifier == identifier) )) (compound_statement "{\n        pFVar7 = &this->archive_->input_file_->file_;\n      }" { (expression_statement "pFVar7 = &this->archive_->input_file_->file_;" (assignment_expression "pFVar7 = &this->archive_->input_file_->file_" identifier = (pointer_expression "&this->archive_->input_file_->file_" & (field_expression "this->archive_->input_file_->file_" (field_expression "this->archive_->input_file_" (field_expression "this->archive_" identifier -> field_identifier) -> field_identifier) -> field_identifier))) ;) }) (else_clause "else {\n        iVar5 = (*p_Var2)();\n        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);\n      }" else (compound_statement "{\n        iVar5 = (*p_Var2)();\n        pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);\n      }" { (expression_statement "iVar5 = (*p_Var2)();" (assignment_expression "iVar5 = (*p_Var2)()" identifier = (call_expression "(*p_Var2)()" (parenthesized_expression "(*p_Var2)" ( (pointer_expression "*p_Var2" * identifier) )) (argument_list "()" ( )))) ;) (expression_statement "pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5);" (assignment_expression "pFVar7 = (File_read *)CONCAT44(extraout_var,iVar5)" identifier = (cast_expression "(File_read *)CONCAT44(extraout_var,iVar5)" ( (type_descriptor "File_read *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "CONCAT44(extraout_var,iVar5)" identifier (argument_list "(extraout_var,iVar5)" ( identifier , identifier ))))) ;) }))) (expression_statement "pcVar3 = (pFVar7->name_)._M_dataplus._M_p;" (assignment_expression "pcVar3 = (pFVar7->name_)._M_dataplus._M_p" identifier = (field_expression "(pFVar7->name_)._M_dataplus._M_p" (field_expression "(pFVar7->name_)._M_dataplus" (parenthesized_expression "(pFVar7->name_)" ( (field_expression "pFVar7->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "format = (char *)gettext("%s: short archive header at %zu");" (assignment_expression "format = (char *)gettext("%s: short archive header at %zu")" identifier = (cast_expression "(char *)gettext("%s: short archive header at %zu")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: short archive header at %zu")" identifier (argument_list "("%s: short archive header at %zu")" ( (string_literal ""%s: short archive header at %zu"" " string_content ") ))))) ;) (expression_statement "gold_error(format,pcVar3,uVar9);" (call_expression "gold_error(format,pcVar3,uVar9)" identifier (argument_list "(format,pcVar3,uVar9)" ( identifier , identifier , identifier ))) ;) (expression_statement "this->off_ = uVar1;" (assignment_expression "this->off_ = uVar1" (field_expression "this->off_" identifier -> field_identifier) = identifier) ;) }))) }) (else_clause "else {\n    pname = &this->header_;\n    while( true ) {\n      File_read::read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf);\n      lVar6 = interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off);\n      if (lVar6 == -1) break;\n      lVar8 = this->off_;\n      sVar4 = (this->header_).name._M_string_length;\n      (this->header_).size = lVar6;\n      (this->header_).off = lVar8;\n      if (sVar4 != 0) {\n        iVar5 = std::string::compare((string *)pname,"/");\n        if (iVar5 != 0) {\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar8 = this->off_;\n        lVar6 = (this->header_).size;\n      }\n      uVar9 = lVar8 + lVar6 + 0x3c;\n      if ((uVar9 & 1) != 0) {\n        uVar9 = lVar8 + lVar6 + 0x3d;\n      }\n      this->off_ = uVar9;\n      if ((long)(uVar1 - uVar9) < 0x3c) goto LAB_0028d408;\n      pIVar10 = this->archive_->input_file_;\n    }\n  }" else (compound_statement "{\n    pname = &this->header_;\n    while( true ) {\n      File_read::read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf);\n      lVar6 = interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off);\n      if (lVar6 == -1) break;\n      lVar8 = this->off_;\n      sVar4 = (this->header_).name._M_string_length;\n      (this->header_).size = lVar6;\n      (this->header_).off = lVar8;\n      if (sVar4 != 0) {\n        iVar5 = std::string::compare((string *)pname,"/");\n        if (iVar5 != 0) {\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar8 = this->off_;\n        lVar6 = (this->header_).size;\n      }\n      uVar9 = lVar8 + lVar6 + 0x3c;\n      if ((uVar9 & 1) != 0) {\n        uVar9 = lVar8 + lVar6 + 0x3d;\n      }\n      this->off_ = uVar9;\n      if ((long)(uVar1 - uVar9) < 0x3c) goto LAB_0028d408;\n      pIVar10 = this->archive_->input_file_;\n    }\n  }" { (expression_statement "pname = &this->header_;" (assignment_expression "pname = &this->header_" identifier = (pointer_expression "&this->header_" & (field_expression "this->header_" identifier -> field_identifier))) ;) (while_statement "while( true ) {\n      File_read::read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf);\n      lVar6 = interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off);\n      if (lVar6 == -1) break;\n      lVar8 = this->off_;\n      sVar4 = (this->header_).name._M_string_length;\n      (this->header_).size = lVar6;\n      (this->header_).off = lVar8;\n      if (sVar4 != 0) {\n        iVar5 = std::string::compare((string *)pname,"/");\n        if (iVar5 != 0) {\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar8 = this->off_;\n        lVar6 = (this->header_).size;\n      }\n      uVar9 = lVar8 + lVar6 + 0x3c;\n      if ((uVar9 & 1) != 0) {\n        uVar9 = lVar8 + lVar6 + 0x3d;\n      }\n      this->off_ = uVar9;\n      if ((long)(uVar1 - uVar9) < 0x3c) goto LAB_0028d408;\n      pIVar10 = this->archive_->input_file_;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      File_read::read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf);\n      lVar6 = interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off);\n      if (lVar6 == -1) break;\n      lVar8 = this->off_;\n      sVar4 = (this->header_).name._M_string_length;\n      (this->header_).size = lVar6;\n      (this->header_).off = lVar8;\n      if (sVar4 != 0) {\n        iVar5 = std::string::compare((string *)pname,"/");\n        if (iVar5 != 0) {\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar8 = this->off_;\n        lVar6 = (this->header_).size;\n      }\n      uVar9 = lVar8 + lVar6 + 0x3c;\n      if ((uVar9 & 1) != 0) {\n        uVar9 = lVar8 + lVar6 + 0x3d;\n      }\n      this->off_ = uVar9;\n      if ((long)(uVar1 - uVar9) < 0x3c) goto LAB_0028d408;\n      pIVar10 = this->archive_->input_file_;\n    }" { (labeled_statement "File_read::read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf);" statement_identifier : (ERROR ":" :) (expression_statement "read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf);" (call_expression "read(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf)" identifier (argument_list "(&pIVar10->file_,(int)uVar9,(void *)0x3c,(size_t)buf)" ( (pointer_expression "&pIVar10->file_" & (field_expression "pIVar10->file_" identifier -> field_identifier)) , (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(void *)0x3c" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(size_t)buf" ( (type_descriptor "size_t" primitive_type) ) identifier) ))) ;)) (expression_statement "lVar6 = interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off);" (assignment_expression "lVar6 = interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off)" identifier = (call_expression "interpret_header(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off)" identifier (argument_list "(this->archive_,(Archive_header *)buf,this->off_,&pname->name,\n                               &(this->header_).nested_off)" ( (field_expression "this->archive_" identifier -> field_identifier) , (cast_expression "(Archive_header *)buf" ( (type_descriptor "Archive_header *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (field_expression "this->off_" identifier -> field_identifier) , (pointer_expression "&pname->name" & (field_expression "pname->name" identifier -> field_identifier)) , (pointer_expression "&(this->header_).nested_off" & (field_expression "(this->header_).nested_off" (parenthesized_expression "(this->header_)" ( (field_expression "this->header_" identifier -> field_identifier) )) . field_identifier)) )))) ;) (if_statement "if (lVar6 == -1) break;" if (parenthesized_expression "(lVar6 == -1)" ( (binary_expression "lVar6 == -1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar8 = this->off_;" (assignment_expression "lVar8 = this->off_" identifier = (field_expression "this->off_" identifier -> field_identifier)) ;) (expression_statement "sVar4 = (this->header_).name._M_string_length;" (assignment_expression "sVar4 = (this->header_).name._M_string_length" identifier = (field_expression "(this->header_).name._M_string_length" (field_expression "(this->header_).name" (parenthesized_expression "(this->header_)" ( (field_expression "this->header_" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "(this->header_).size = lVar6;" (assignment_expression "(this->header_).size = lVar6" (field_expression "(this->header_).size" (parenthesized_expression "(this->header_)" ( (field_expression "this->header_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(this->header_).off = lVar8;" (assignment_expression "(this->header_).off = lVar8" (field_expression "(this->header_).off" (parenthesized_expression "(this->header_)" ( (field_expression "this->header_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (sVar4 != 0) {\n        iVar5 = std::string::compare((string *)pname,"/");\n        if (iVar5 != 0) {\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar8 = this->off_;\n        lVar6 = (this->header_).size;\n      }" if (parenthesized_expression "(sVar4 != 0)" ( (binary_expression "sVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar5 = std::string::compare((string *)pname,"/");\n        if (iVar5 != 0) {\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar8 = this->off_;\n        lVar6 = (this->header_).size;\n      }" { (ERROR "iVar5 = std::" (assignment_expression "iVar5 = std" identifier = identifier) : :) (labeled_statement "string::compare((string *)pname,"/");" statement_identifier : (ERROR ":" :) (expression_statement "compare((string *)pname,"/");" (call_expression "compare((string *)pname,"/")" identifier (argument_list "((string *)pname,"/")" ( (cast_expression "(string *)pname" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""/"" " string_content ") ))) ;)) (if_statement "if (iVar5 != 0) {\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar5 = std::string::compare((string *)pname,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }" { (ERROR "iVar5 = std::" (assignment_expression "iVar5 = std" identifier = identifier) : :) (labeled_statement "string::compare((string *)pname,"/SYM64/");" statement_identifier : (ERROR ":" :) (expression_statement "compare((string *)pname,"/SYM64/");" (call_expression "compare((string *)pname,"/SYM64/")" identifier (argument_list "((string *)pname,"/SYM64/")" ( (cast_expression "(string *)pname" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""/SYM64/"" " string_content ") ))) ;)) (if_statement "if (iVar5 != 0) {\n            return;\n          }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) })) (expression_statement "lVar8 = this->off_;" (assignment_expression "lVar8 = this->off_" identifier = (field_expression "this->off_" identifier -> field_identifier)) ;) (expression_statement "lVar6 = (this->header_).size;" (assignment_expression "lVar6 = (this->header_).size" identifier = (field_expression "(this->header_).size" (parenthesized_expression "(this->header_)" ( (field_expression "this->header_" identifier -> field_identifier) )) . field_identifier)) ;) })) (expression_statement "uVar9 = lVar8 + lVar6 + 0x3c;" (assignment_expression "uVar9 = lVar8 + lVar6 + 0x3c" identifier = (binary_expression "lVar8 + lVar6 + 0x3c" (binary_expression "lVar8 + lVar6" identifier + identifier) + number_literal)) ;) (if_statement "if ((uVar9 & 1) != 0) {\n        uVar9 = lVar8 + lVar6 + 0x3d;\n      }" if (parenthesized_expression "((uVar9 & 1) != 0)" ( (binary_expression "(uVar9 & 1) != 0" (parenthesized_expression "(uVar9 & 1)" ( (binary_expression "uVar9 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar9 = lVar8 + lVar6 + 0x3d;\n      }" { (expression_statement "uVar9 = lVar8 + lVar6 + 0x3d;" (assignment_expression "uVar9 = lVar8 + lVar6 + 0x3d" identifier = (binary_expression "lVar8 + lVar6 + 0x3d" (binary_expression "lVar8 + lVar6" identifier + identifier) + number_literal)) ;) })) (expression_statement "this->off_ = uVar9;" (assignment_expression "this->off_ = uVar9" (field_expression "this->off_" identifier -> field_identifier) = identifier) ;) (if_statement "if ((long)(uVar1 - uVar9) < 0x3c) goto LAB_0028d408;" if (parenthesized_expression "((long)(uVar1 - uVar9) < 0x3c)" ( (binary_expression "(long)(uVar1 - uVar9) < 0x3c" (cast_expression "(long)(uVar1 - uVar9)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(uVar1 - uVar9)" ( (binary_expression "uVar1 - uVar9" identifier - identifier) ))) < number_literal) )) (goto_statement "goto LAB_0028d408;" goto statement_identifier ;)) (expression_statement "pIVar10 = this->archive_->input_file_;" (assignment_expression "pIVar10 = this->archive_->input_file_" identifier = (field_expression "this->archive_->input_file_" (field_expression "this->archive_" identifier -> field_identifier) -> field_identifier)) ;) })) }))) (expression_statement "(this->header_).off = uVar1;" (assignment_expression "(this->header_).off = uVar1" (field_expression "(this->header_).off" (parenthesized_expression "(this->header_)" ( (field_expression "this->header_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0028d300(long *param_1)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  code *pcVar3;\n  undefined8 uVar4;\n  int iVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  undefined8 uVar8;\n  long lVar9;\n  ulong uVar10;\n  undefined1 local_78 [72];\n  \n  uVar10 = param_1[1];\n  lVar6 = *(long *)(*param_1 + 0x38);\n  uVar2 = *(ulong *)(lVar6 + 0x58);\n  if ((long)(uVar2 - uVar10) < 0x3c) {\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }\n  else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }\n  param_1[6] = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_0028d300(long *param_1)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  code *pcVar3;\n  undefined8 uVar4;\n  int iVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  undefined8 uVar8;\n  long lVar9;\n  ulong uVar10;\n  undefined1 local_78 [72];\n  \n  uVar10 = param_1[1];\n  lVar6 = *(long *)(*param_1 + 0x38);\n  uVar2 = *(ulong *)(lVar6 + 0x58);\n  if ((long)(uVar2 - uVar10) < 0x3c) {\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }\n  else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }\n  param_1[6] = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0028d300(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  code *pcVar3;\n  undefined8 uVar4;\n  int iVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  undefined8 uVar8;\n  long lVar9;\n  ulong uVar10;\n  undefined1 local_78 [72];\n  \n  uVar10 = param_1[1];\n  lVar6 = *(long *)(*param_1 + 0x38);\n  uVar2 = *(ulong *)(lVar6 + 0x58);\n  if ((long)(uVar2 - uVar10) < 0x3c) {\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }\n  else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }\n  param_1[6] = uVar2;\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "undefined1 local_78 [72];" type_identifier (array_declarator "local_78 [72]" identifier [ number_literal ]) ;) (expression_statement "uVar10 = param_1[1];" (assignment_expression "uVar10 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "lVar6 = *(long *)(*param_1 + 0x38);" (assignment_expression "lVar6 = *(long *)(*param_1 + 0x38)" identifier = (pointer_expression "*(long *)(*param_1 + 0x38)" * (cast_expression "(long *)(*param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(ulong *)(lVar6 + 0x58);" (assignment_expression "uVar2 = *(ulong *)(lVar6 + 0x58)" identifier = (pointer_expression "*(ulong *)(lVar6 + 0x58)" * (cast_expression "(ulong *)(lVar6 + 0x58)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x58)" ( (binary_expression "lVar6 + 0x58" identifier + number_literal) ))))) ;) (if_statement "if ((long)(uVar2 - uVar10) < 0x3c) {\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }\n  else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }" if (parenthesized_expression "((long)(uVar2 - uVar10) < 0x3c)" ( (binary_expression "(long)(uVar2 - uVar10) < 0x3c" (cast_expression "(long)(uVar2 - uVar10)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(uVar2 - uVar10)" ( (binary_expression "uVar2 - uVar10" identifier - identifier) ))) < number_literal) )) (compound_statement "{\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }" { (labeled_statement "LAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }" statement_identifier : (if_statement "if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }" if (parenthesized_expression "(uVar2 != uVar10)" ( (binary_expression "uVar2 != uVar10" identifier != identifier) )) (compound_statement "{\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }" { (expression_statement "pcVar3 = *(code **)(*(long *)*param_1 + 0x10);" (assignment_expression "pcVar3 = *(code **)(*(long *)*param_1 + 0x10)" identifier = (pointer_expression "*(code **)(*(long *)*param_1 + 0x10)" * (cast_expression "(code **)(*(long *)*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)*param_1 + 0x10)" ( (binary_expression "*(long *)*param_1 + 0x10" (pointer_expression "*(long *)*param_1" * (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) + number_literal) ))))) ;) (if_statement "if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }" if (parenthesized_expression "(pcVar3 == FUN_00290110)" ( (binary_expression "pcVar3 == FUN_00290110" identifier == identifier) )) (compound_statement "{\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }" { (expression_statement "puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);" (assignment_expression "puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28)" identifier = (cast_expression "(undefined8 *)(((long *)*param_1)[7] + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((long *)*param_1)[7] + 0x28)" ( (binary_expression "((long *)*param_1)[7] + 0x28" (subscript_expression "((long *)*param_1)[7]" (parenthesized_expression "((long *)*param_1)" ( (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )) [ number_literal ]) + number_literal) )))) ;) }) (else_clause "else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }" else (compound_statement "{\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }" { (expression_statement "puVar7 = (undefined8 *)(*pcVar3)();" (assignment_expression "puVar7 = (undefined8 *)(*pcVar3)()" identifier = (cast_expression "(undefined8 *)(*pcVar3)()" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))))) ;) }))) (expression_statement "uVar4 = *puVar7;" (assignment_expression "uVar4 = *puVar7" identifier = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "uVar8 = gettext("%s: short archive header at %zu");" (assignment_expression "uVar8 = gettext("%s: short archive header at %zu")" identifier = (call_expression "gettext("%s: short archive header at %zu")" identifier (argument_list "("%s: short archive header at %zu")" ( (string_literal ""%s: short archive header at %zu"" " string_content ") )))) ;) (expression_statement "FUN_00178320(uVar8,uVar4,uVar10);" (call_expression "FUN_00178320(uVar8,uVar4,uVar10)" identifier (argument_list "(uVar8,uVar4,uVar10)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_1[1] = uVar2;" (assignment_expression "param_1[1] = uVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) }))) }) (else_clause "else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }" else (compound_statement "{\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }" { (expression_statement "plVar1 = param_1 + 2;" (assignment_expression "plVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (while_statement "while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }" { (expression_statement "FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);" (call_expression "FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78)" identifier (argument_list "(lVar6 + 0x28,uVar10,0x3c,local_78)" ( (binary_expression "lVar6 + 0x28" identifier + number_literal) , identifier , number_literal , identifier ))) ;) (expression_statement "lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);" (assignment_expression "lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7)" identifier = (call_expression "FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7)" identifier (argument_list "(*param_1,local_78,param_1[1],plVar1,param_1 + 7)" ( (pointer_expression "*param_1" * identifier) , identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier , (binary_expression "param_1 + 7" identifier + number_literal) )))) ;) (if_statement "if (lVar6 == -1) break;" if (parenthesized_expression "(lVar6 == -1)" ( (binary_expression "lVar6 == -1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar9 = param_1[1];" (assignment_expression "lVar9 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[8] = lVar6;" (assignment_expression "param_1[8] = lVar6" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = lVar9;" (assignment_expression "param_1[6] = lVar9" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }" if (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }" { (expression_statement "iVar5 = FUN_002e3a50(plVar1,"/");" (assignment_expression "iVar5 = FUN_002e3a50(plVar1,"/")" identifier = (call_expression "FUN_002e3a50(plVar1,"/")" identifier (argument_list "(plVar1,"/")" ( identifier , (string_literal ""/"" " string_content ") )))) ;) (if_statement "if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }" { (expression_statement "iVar5 = FUN_002e3a50(plVar1,"/SYM64/");" (assignment_expression "iVar5 = FUN_002e3a50(plVar1,"/SYM64/")" identifier = (call_expression "FUN_002e3a50(plVar1,"/SYM64/")" identifier (argument_list "(plVar1,"/SYM64/")" ( identifier , (string_literal ""/SYM64/"" " string_content ") )))) ;) (if_statement "if (iVar5 != 0) {\n            return;\n          }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) })) (expression_statement "lVar9 = param_1[1];" (assignment_expression "lVar9 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "lVar6 = param_1[8];" (assignment_expression "lVar6 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) })) (expression_statement "uVar10 = lVar9 + lVar6 + 0x3c;" (assignment_expression "uVar10 = lVar9 + lVar6 + 0x3c" identifier = (binary_expression "lVar9 + lVar6 + 0x3c" (binary_expression "lVar9 + lVar6" identifier + identifier) + number_literal)) ;) (if_statement "if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }" if (parenthesized_expression "((uVar10 & 1) != 0)" ( (binary_expression "(uVar10 & 1) != 0" (parenthesized_expression "(uVar10 & 1)" ( (binary_expression "uVar10 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }" { (expression_statement "uVar10 = lVar9 + lVar6 + 0x3d;" (assignment_expression "uVar10 = lVar9 + lVar6 + 0x3d" identifier = (binary_expression "lVar9 + lVar6 + 0x3d" (binary_expression "lVar9 + lVar6" identifier + identifier) + number_literal)) ;) })) (expression_statement "param_1[1] = uVar10;" (assignment_expression "param_1[1] = uVar10" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;" if (parenthesized_expression "((long)(uVar2 - uVar10) < 0x3c)" ( (binary_expression "(long)(uVar2 - uVar10) < 0x3c" (cast_expression "(long)(uVar2 - uVar10)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(uVar2 - uVar10)" ( (binary_expression "uVar2 - uVar10" identifier - identifier) ))) < number_literal) )) (goto_statement "goto LAB_0028d408;" goto statement_identifier ;)) (expression_statement "lVar6 = *(long *)(*param_1 + 0x38);" (assignment_expression "lVar6 = *(long *)(*param_1 + 0x38)" identifier = (pointer_expression "*(long *)(*param_1 + 0x38)" * (cast_expression "(long *)(*param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) })) }))) (expression_statement "param_1[6] = uVar2;" (assignment_expression "param_1[6] = uVar2" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )) [ LIT ]) + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))))) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , (subscript_expression IDENT [ LIT ]) , IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) })) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0028d300(long *param_1)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  code *pcVar3;\n  undefined8 uVar4;\n  int iVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  undefined8 uVar8;\n  long lVar9;\n  ulong uVar10;\n  undefined1 local_78 [72];\n  \n  uVar10 = param_1[1];\n  lVar6 = *(long *)(*param_1 + 0x38);\n  uVar2 = *(ulong *)(lVar6 + 0x58);\n  if ((long)(uVar2 - uVar10) < 0x3c) {\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }\n  else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }\n  param_1[6] = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0028d300(long *param_1)" (identifier "FUN_0028d300") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  code *pcVar3;\n  undefined8 uVar4;\n  int iVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  undefined8 uVar8;\n  long lVar9;\n  ulong uVar10;\n  undefined1 local_78 [72];\n  \n  uVar10 = param_1[1];\n  lVar6 = *(long *)(*param_1 + 0x38);\n  uVar2 = *(ulong *)(lVar6 + 0x58);\n  if ((long)(uVar2 - uVar10) < 0x3c) {\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }\n  else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }\n  param_1[6] = uVar2;\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (declaration "undefined8 *puVar7;" (type_identifier "undefined8") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined8 uVar8;" (type_identifier "undefined8") (identifier "uVar8") (; ";")) (declaration "long lVar9;" (sized_type_specifier "long" (long "long")) (identifier "lVar9") (; ";")) (declaration "ulong uVar10;" (type_identifier "ulong") (identifier "uVar10") (; ";")) (declaration "undefined1 local_78 [72];" (type_identifier "undefined1") (array_declarator "local_78 [72]" (identifier "local_78") ([ "[") (number_literal "72") (] "]")) (; ";")) (expression_statement "uVar10 = param_1[1];" (assignment_expression "uVar10 = param_1[1]" (identifier "uVar10") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "lVar6 = *(long *)(*param_1 + 0x38);" (assignment_expression "lVar6 = *(long *)(*param_1 + 0x38)" (identifier "lVar6") (= "=") (pointer_expression "*(long *)(*param_1 + 0x38)" (* "*") (cast_expression "(long *)(*param_1 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x38)" (( "(") (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(ulong *)(lVar6 + 0x58);" (assignment_expression "uVar2 = *(ulong *)(lVar6 + 0x58)" (identifier "uVar2") (= "=") (pointer_expression "*(ulong *)(lVar6 + 0x58)" (* "*") (cast_expression "(ulong *)(lVar6 + 0x58)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x58)" (( "(") (binary_expression "lVar6 + 0x58" (identifier "lVar6") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (if_statement "if ((long)(uVar2 - uVar10) < 0x3c) {\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }\n  else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }" (if "if") (parenthesized_expression "((long)(uVar2 - uVar10) < 0x3c)" (( "(") (binary_expression "(long)(uVar2 - uVar10) < 0x3c" (cast_expression "(long)(uVar2 - uVar10)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(uVar2 - uVar10)" (( "(") (binary_expression "uVar2 - uVar10" (identifier "uVar2") (- "-") (identifier "uVar10")) () ")"))) (< "<") (number_literal "0x3c")) () ")")) (compound_statement "{\nLAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }\n  }" ({ "{") (labeled_statement "LAB_0028d408:\n    if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }" (statement_identifier "LAB_0028d408") (: ":") (if_statement "if (uVar2 != uVar10) {\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }" (if "if") (parenthesized_expression "(uVar2 != uVar10)" (( "(") (binary_expression "uVar2 != uVar10" (identifier "uVar2") (!= "!=") (identifier "uVar10")) () ")")) (compound_statement "{\n      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);\n      if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }\n      uVar4 = *puVar7;\n      uVar8 = gettext("%s: short archive header at %zu");\n      FUN_00178320(uVar8,uVar4,uVar10);\n      param_1[1] = uVar2;\n    }" ({ "{") (expression_statement "pcVar3 = *(code **)(*(long *)*param_1 + 0x10);" (assignment_expression "pcVar3 = *(code **)(*(long *)*param_1 + 0x10)" (identifier "pcVar3") (= "=") (pointer_expression "*(code **)(*(long *)*param_1 + 0x10)" (* "*") (cast_expression "(code **)(*(long *)*param_1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)*param_1 + 0x10)" (( "(") (binary_expression "*(long *)*param_1 + 0x10" (pointer_expression "*(long *)*param_1" (* "*") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (pcVar3 == FUN_00290110) {\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }\n      else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }" (if "if") (parenthesized_expression "(pcVar3 == FUN_00290110)" (( "(") (binary_expression "pcVar3 == FUN_00290110" (identifier "pcVar3") (== "==") (identifier "FUN_00290110")) () ")")) (compound_statement "{\n        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);\n      }" ({ "{") (expression_statement "puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);" (assignment_expression "puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28)" (identifier "puVar7") (= "=") (cast_expression "(undefined8 *)(((long *)*param_1)[7] + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((long *)*param_1)[7] + 0x28)" (( "(") (binary_expression "((long *)*param_1)[7] + 0x28" (subscript_expression "((long *)*param_1)[7]" (parenthesized_expression "((long *)*param_1)" (( "(") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) ([ "[") (number_literal "7") (] "]")) (+ "+") (number_literal "0x28")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }" (else "else") (compound_statement "{\n        puVar7 = (undefined8 *)(*pcVar3)();\n      }" ({ "{") (expression_statement "puVar7 = (undefined8 *)(*pcVar3)();" (assignment_expression "puVar7 = (undefined8 *)(*pcVar3)()" (identifier "puVar7") (= "=") (cast_expression "(undefined8 *)(*pcVar3)()" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}")))) (expression_statement "uVar4 = *puVar7;" (assignment_expression "uVar4 = *puVar7" (identifier "uVar4") (= "=") (pointer_expression "*puVar7" (* "*") (identifier "puVar7"))) (; ";")) (expression_statement "uVar8 = gettext("%s: short archive header at %zu");" (assignment_expression "uVar8 = gettext("%s: short archive header at %zu")" (identifier "uVar8") (= "=") (call_expression "gettext("%s: short archive header at %zu")" (identifier "gettext") (argument_list "("%s: short archive header at %zu")" (( "(") (string_literal ""%s: short archive header at %zu"" (" """) (string_content "%s: short archive header at %zu") (" """)) () ")")))) (; ";")) (expression_statement "FUN_00178320(uVar8,uVar4,uVar10);" (call_expression "FUN_00178320(uVar8,uVar4,uVar10)" (identifier "FUN_00178320") (argument_list "(uVar8,uVar4,uVar10)" (( "(") (identifier "uVar8") (, ",") (identifier "uVar4") (, ",") (identifier "uVar10") () ")"))) (; ";")) (expression_statement "param_1[1] = uVar2;" (assignment_expression "param_1[1] = uVar2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }" (else "else") (compound_statement "{\n    plVar1 = param_1 + 2;\n    while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }\n  }" ({ "{") (expression_statement "plVar1 = param_1 + 2;" (assignment_expression "plVar1 = param_1 + 2" (identifier "plVar1") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (while_statement "while( true ) {\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);\n      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);\n      if (lVar6 == -1) break;\n      lVar9 = param_1[1];\n      param_1[8] = lVar6;\n      param_1[6] = lVar9;\n      if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }\n      uVar10 = lVar9 + lVar6 + 0x3c;\n      if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }\n      param_1[1] = uVar10;\n      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;\n      lVar6 = *(long *)(*param_1 + 0x38);\n    }" ({ "{") (expression_statement "FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);" (call_expression "FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78)" (identifier "FUN_00179cb0") (argument_list "(lVar6 + 0x28,uVar10,0x3c,local_78)" (( "(") (binary_expression "lVar6 + 0x28" (identifier "lVar6") (+ "+") (number_literal "0x28")) (, ",") (identifier "uVar10") (, ",") (number_literal "0x3c") (, ",") (identifier "local_78") () ")"))) (; ";")) (expression_statement "lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);" (assignment_expression "lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7)" (identifier "lVar6") (= "=") (call_expression "FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7)" (identifier "FUN_0028cf50") (argument_list "(*param_1,local_78,param_1[1],plVar1,param_1 + 7)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "local_78") (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "plVar1") (, ",") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")")))) (; ";")) (if_statement "if (lVar6 == -1) break;" (if "if") (parenthesized_expression "(lVar6 == -1)" (( "(") (binary_expression "lVar6 == -1" (identifier "lVar6") (== "==") (number_literal "-1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar9 = param_1[1];" (assignment_expression "lVar9 = param_1[1]" (identifier "lVar9") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1[8] = lVar6;" (assignment_expression "param_1[8] = lVar6" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "lVar6")) (; ";")) (expression_statement "param_1[6] = lVar9;" (assignment_expression "param_1[6] = lVar9" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "lVar9")) (; ";")) (if_statement "if (param_1[3] != 0) {\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }" (if "if") (parenthesized_expression "(param_1[3] != 0)" (( "(") (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar5 = FUN_002e3a50(plVar1,"/");\n        if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }\n        lVar9 = param_1[1];\n        lVar6 = param_1[8];\n      }" ({ "{") (expression_statement "iVar5 = FUN_002e3a50(plVar1,"/");" (assignment_expression "iVar5 = FUN_002e3a50(plVar1,"/")" (identifier "iVar5") (= "=") (call_expression "FUN_002e3a50(plVar1,"/")" (identifier "FUN_002e3a50") (argument_list "(plVar1,"/")" (( "(") (identifier "plVar1") (, ",") (string_literal ""/"" (" """) (string_content "/") (" """)) () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");\n          if (iVar5 != 0) {\n            return;\n          }\n        }" ({ "{") (expression_statement "iVar5 = FUN_002e3a50(plVar1,"/SYM64/");" (assignment_expression "iVar5 = FUN_002e3a50(plVar1,"/SYM64/")" (identifier "iVar5") (= "=") (call_expression "FUN_002e3a50(plVar1,"/SYM64/")" (identifier "FUN_002e3a50") (argument_list "(plVar1,"/SYM64/")" (( "(") (identifier "plVar1") (, ",") (string_literal ""/SYM64/"" (" """) (string_content "/SYM64/") (" """)) () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n            return;\n          }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            return;\n          }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "lVar9 = param_1[1];" (assignment_expression "lVar9 = param_1[1]" (identifier "lVar9") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "lVar6 = param_1[8];" (assignment_expression "lVar6 = param_1[8]" (identifier "lVar6") (= "=") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]"))) (; ";")) (} "}"))) (expression_statement "uVar10 = lVar9 + lVar6 + 0x3c;" (assignment_expression "uVar10 = lVar9 + lVar6 + 0x3c" (identifier "uVar10") (= "=") (binary_expression "lVar9 + lVar6 + 0x3c" (binary_expression "lVar9 + lVar6" (identifier "lVar9") (+ "+") (identifier "lVar6")) (+ "+") (number_literal "0x3c"))) (; ";")) (if_statement "if ((uVar10 & 1) != 0) {\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }" (if "if") (parenthesized_expression "((uVar10 & 1) != 0)" (( "(") (binary_expression "(uVar10 & 1) != 0" (parenthesized_expression "(uVar10 & 1)" (( "(") (binary_expression "uVar10 & 1" (identifier "uVar10") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar10 = lVar9 + lVar6 + 0x3d;\n      }" ({ "{") (expression_statement "uVar10 = lVar9 + lVar6 + 0x3d;" (assignment_expression "uVar10 = lVar9 + lVar6 + 0x3d" (identifier "uVar10") (= "=") (binary_expression "lVar9 + lVar6 + 0x3d" (binary_expression "lVar9 + lVar6" (identifier "lVar9") (+ "+") (identifier "lVar6")) (+ "+") (number_literal "0x3d"))) (; ";")) (} "}"))) (expression_statement "param_1[1] = uVar10;" (assignment_expression "param_1[1] = uVar10" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (if_statement "if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;" (if "if") (parenthesized_expression "((long)(uVar2 - uVar10) < 0x3c)" (( "(") (binary_expression "(long)(uVar2 - uVar10) < 0x3c" (cast_expression "(long)(uVar2 - uVar10)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(uVar2 - uVar10)" (( "(") (binary_expression "uVar2 - uVar10" (identifier "uVar2") (- "-") (identifier "uVar10")) () ")"))) (< "<") (number_literal "0x3c")) () ")")) (goto_statement "goto LAB_0028d408;" (goto "goto") (statement_identifier "LAB_0028d408") (; ";"))) (expression_statement "lVar6 = *(long *)(*param_1 + 0x38);" (assignment_expression "lVar6 = *(long *)(*param_1 + 0x38)" (identifier "lVar6") (= "=") (pointer_expression "*(long *)(*param_1 + 0x38)" (* "*") (cast_expression "(long *)(*param_1 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x38)" (( "(") (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (} "}"))) (} "}")))) (expression_statement "param_1[6] = uVar2;" (assignment_expression "param_1[6] = uVar2" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void read_next_header(const_iterator * this) */

void __thiscall gold::Archive::type_1::function_1(type_1 *this)

{
  type_2 *pname;
  type_3 var_1;
  type_4 *var_3;
  type_5 pcVar3;
  type_6 var_11;
  int var_13;
  long var_10;
  char *format;
  type_7 *pFVar7;
  long var_14;
  type_3 var_2;
  type_8 *pIVar10;
  type_9 buf [60];
  type_10 extraout_var;
  
  var_2 = this->off_;
  pIVar10 = this->archive_->input_file_;
  var_1 = (pIVar10->file_).size_;
  if ((long)(var_1 - var_2) < 0x3c) {
LAB_0028d408:
    if (var_1 != var_2) {
      var_3 = (this->archive_->super_Library_base)._vptr_Library_base[2];
      if (var_3 == var_4) {
        pFVar7 = &this->archive_->input_file_->file_;
      }
      else {
        var_13 = (*var_3)();
        pFVar7 = (type_7 *)var_5(extraout_var,var_13);
      }
      pcVar3 = (pFVar7->name_)._M_dataplus._M_p;
      format = (char *)var_6("%s: short archive header at %zu");
      var_7(format,pcVar3,var_2);
      this->off_ = var_1;
    }
  }
  else {
    pname = &this->header_;
    while( true ) {
      File_read::var_8(&pIVar10->file_,(int)var_2,(void *)0x3c,(size_t)buf);
      var_10 = var_9(this->archive_,(type_11 *)buf,this->off_,&pname->name,
                               &(this->header_).nested_off);
      if (var_10 == -1) break;
      var_14 = this->off_;
      var_11 = (this->header_).name._M_string_length;
      (this->header_).size = var_10;
      (this->header_).off = var_14;
      if (var_11 != 0) {
        var_13 = std::string::var_12((type_12 *)pname,"/");
        if (var_13 != 0) {
          var_13 = std::string::var_12((type_12 *)pname,"/SYM64/");
          if (var_13 != 0) {
            return;
          }
        }
        var_14 = this->off_;
        var_10 = (this->header_).size;
      }
      var_2 = var_14 + var_10 + 0x3c;
      if ((var_2 & 1) != 0) {
        var_2 = var_14 + var_10 + 0x3d;
      }
      this->off_ = var_2;
      if ((long)(var_1 - var_2) < 0x3c) goto LAB_0028d408;
      pIVar10 = this->archive_->input_file_;
    }
  }
  (this->header_).off = var_1;
  return;
}


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

void MASKED(long *param_1)

{
  long *plVar1;
  ulong uVar2;
  code *pcVar3;
  undefined8 uVar4;
  int iVar5;
  long lVar6;
  undefined8 *puVar7;
  undefined8 uVar8;
  long lVar9;
  ulong uVar10;
  undefined1 local_78 [72];
  
  uVar10 = param_1[1];
  lVar6 = *(long *)(*param_1 + 0x38);
  uVar2 = *(ulong *)(lVar6 + 0x58);
  if ((long)(uVar2 - uVar10) < 0x3c) {
LAB_0028d408:
    if (uVar2 != uVar10) {
      pcVar3 = *(code **)(*(long *)*param_1 + 0x10);
      if (pcVar3 == FUN_00290110) {
        puVar7 = (undefined8 *)(((long *)*param_1)[7] + 0x28);
      }
      else {
        puVar7 = (undefined8 *)(*pcVar3)();
      }
      uVar4 = *puVar7;
      uVar8 = gettext("%s: short archive header at %zu");
      FUN_00178320(uVar8,uVar4,uVar10);
      param_1[1] = uVar2;
    }
  }
  else {
    plVar1 = param_1 + 2;
    while( true ) {
      FUN_00179cb0(lVar6 + 0x28,uVar10,0x3c,local_78);
      lVar6 = FUN_0028cf50(*param_1,local_78,param_1[1],plVar1,param_1 + 7);
      if (lVar6 == -1) break;
      lVar9 = param_1[1];
      param_1[8] = lVar6;
      param_1[6] = lVar9;
      if (param_1[3] != 0) {
        iVar5 = FUN_002e3a50(plVar1,"/");
        if (iVar5 != 0) {
          iVar5 = FUN_002e3a50(plVar1,"/SYM64/");
          if (iVar5 != 0) {
            return;
          }
        }
        lVar9 = param_1[1];
        lVar6 = param_1[8];
      }
      uVar10 = lVar9 + lVar6 + 0x3c;
      if ((uVar10 & 1) != 0) {
        uVar10 = lVar9 + lVar6 + 0x3d;
      }
      param_1[1] = uVar10;
      if ((long)(uVar2 - uVar10) < 0x3c) goto LAB_0028d408;
      lVar6 = *(long *)(*param_1 + 0x38);
    }
  }
  param_1[6] = uVar2;
  return;
}

