
char * get_archive_member_name_at(archive_info *arch,ulong offset,archive_info *nested_arch)

{
  int iVar1;
  size_t sVar2;
  char *pcVar3;
  char *pcVar4;
  
  iVar1 = fseek((FILE *)arch->file,offset,0);
  if (iVar1 == 0) {
    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);
    if (sVar2 == 0x3c) {
      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {
        pcVar3 = get_archive_member_name(arch,nested_arch);
        return pcVar3;
      }
      pcVar3 = arch->file_name;
      pcVar4 = "%s: did not find a valid archive header\n";
    }
    else {
      pcVar3 = arch->file_name;
      pcVar4 = "%s: failed to read archive header\n";
    }
  }
  else {
    pcVar3 = arch->file_name;
    pcVar4 = "%s: failed to seek to next file name\n";
  }
  pcVar4 = (char *)dcgettext(0,pcVar4,5);
  error(pcVar4,pcVar3);
  return (char *)0x0;
}



undefined8 FUN_00138290(undefined8 *param_1,long param_2,undefined8 param_3)

{
  int iVar1;
  size_t sVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  char *pcVar5;
  
  iVar1 = fseek((FILE *)param_1[1],param_2,0);
  if (iVar1 == 0) {
    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);
    if (sVar2 == 0x3c) {
      if (*(short *)((long)param_1 + 0x92) == 0xa60) {
        uVar3 = FUN_00138350(param_1,param_3);
        return uVar3;
      }
      uVar3 = *param_1;
      pcVar5 = "%s: did not find a valid archive header\n";
    }
    else {
      uVar3 = *param_1;
      pcVar5 = "%s: failed to read archive header\n";
    }
  }
  else {
    uVar3 = *param_1;
    pcVar5 = "%s: failed to seek to next file name\n";
  }
  uVar4 = dcgettext(0,pcVar5,5);
  error(uVar4,uVar3);
  return 0;
}


PUSH RBP
MOV RBP,RDX
XOR EDX,EDX
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV RDI,qword ptr [RDI + 0x8]
CALL 0x001075c0
TEST EAX,EAX
JNZ 0x001382e8
MOV RCX,qword ptr [RBX + 0x8]
LEA RDI,[RBX + 0x58]
MOV EDX,0x3c
MOV ESI,0x1
CALL 0x00107160
CMP RAX,0x3c
JNZ 0x00138318
CMP word ptr [RBX + 0x92],0xa60
JNZ 0x00138330
ADD RSP,0x8
MOV RSI,RBP
MOV RDI,RBX
POP RBX
POP RBP
JMP 0x00138350
MOV RBX,qword ptr [RBX]
MOV EDX,0x5
LEA RSI,[0x148058]
XOR EDI,EDI
CALL 0x00107230
MOV RSI,RBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00137490
ADD RSP,0x8
XOR EAX,EAX
POP RBX
POP RBP
RET
MOV RBX,qword ptr [RBX]
MOV EDX,0x5
LEA RSI,[0x147f60]
JMP 0x001382f7
MOV RBX,qword ptr [RBX]
MOV EDX,0x5
LEA RSI,[0x148080]
JMP 0x001382f7
(translation_unit "undefined8 FUN_00138290(undefined8 *param_1,long param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  error(uVar4,uVar3);\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00138290(undefined8 *param_1,long param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  error(uVar4,uVar3);\n  return 0;\n}" type_identifier (function_declarator "FUN_00138290(undefined8 *param_1,long param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 *param_1,long param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  error(uVar4,uVar3);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "iVar1 = fseek((FILE *)param_1[1],param_2,0);" (assignment_expression "iVar1 = fseek((FILE *)param_1[1],param_2,0)" identifier = (call_expression "fseek((FILE *)param_1[1],param_2,0)" identifier (argument_list "((FILE *)param_1[1],param_2,0)" ( (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }" { (expression_statement "sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);" (assignment_expression "sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1])" identifier = (call_expression "fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1])" identifier (argument_list "(param_1 + 0xb,1,0x3c,(FILE *)param_1[1])" ( (binary_expression "param_1 + 0xb" identifier + number_literal) , number_literal , number_literal , (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) )))) ;) (if_statement "if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }" if (parenthesized_expression "(sVar2 == 0x3c)" ( (binary_expression "sVar2 == 0x3c" identifier == number_literal) )) (compound_statement "{\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }" { (if_statement "if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }" if (parenthesized_expression "(*(short *)((long)param_1 + 0x92) == 0xa60)" ( (binary_expression "*(short *)((long)param_1 + 0x92) == 0xa60" (pointer_expression "*(short *)((long)param_1 + 0x92)" * (cast_expression "(short *)((long)param_1 + 0x92)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x92)" ( (binary_expression "(long)param_1 + 0x92" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }" { (expression_statement "uVar3 = FUN_00138350(param_1,param_3);" (assignment_expression "uVar3 = FUN_00138350(param_1,param_3)" identifier = (call_expression "FUN_00138350(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar5 = "%s: did not find a valid archive header\n";" (assignment_expression "pcVar5 = "%s: did not find a valid archive header\n"" identifier = (string_literal ""%s: did not find a valid archive header\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }" else (compound_statement "{\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar5 = "%s: failed to read archive header\n";" (assignment_expression "pcVar5 = "%s: failed to read archive header\n"" identifier = (string_literal ""%s: failed to read archive header\n"" " string_content escape_sequence ")) ;) }))) }) (else_clause "else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }" else (compound_statement "{\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar5 = "%s: failed to seek to next file name\n";" (assignment_expression "pcVar5 = "%s: failed to seek to next file name\n"" identifier = (string_literal ""%s: failed to seek to next file name\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "uVar4 = dcgettext(0,pcVar5,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar5,5)" identifier = (call_expression "dcgettext(0,pcVar5,5)" identifier (argument_list "(0,pcVar5,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "error(uVar4,uVar3);" (call_expression "error(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "char * get_archive_member_name_at(archive_info *arch,ulong offset,archive_info *nested_arch)\n\n{\n  int iVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  iVar1 = fseek((FILE *)arch->file,offset,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);\n    if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    pcVar3 = arch->file_name;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }\n  pcVar4 = (char *)dcgettext(0,pcVar4,5);\n  error(pcVar4,pcVar3);\n  return (char *)0x0;\n}\n\n" (function_definition "char * get_archive_member_name_at(archive_info *arch,ulong offset,archive_info *nested_arch)\n\n{\n  int iVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  iVar1 = fseek((FILE *)arch->file,offset,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);\n    if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    pcVar3 = arch->file_name;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }\n  pcVar4 = (char *)dcgettext(0,pcVar4,5);\n  error(pcVar4,pcVar3);\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* get_archive_member_name_at(archive_info *arch,ulong offset,archive_info *nested_arch)" * (function_declarator "get_archive_member_name_at(archive_info *arch,ulong offset,archive_info *nested_arch)" identifier (parameter_list "(archive_info *arch,ulong offset,archive_info *nested_arch)" ( (parameter_declaration "archive_info *arch" type_identifier (pointer_declarator "*arch" * identifier)) , (parameter_declaration "ulong offset" type_identifier identifier) , (parameter_declaration "archive_info *nested_arch" type_identifier (pointer_declarator "*nested_arch" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  iVar1 = fseek((FILE *)arch->file,offset,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);\n    if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    pcVar3 = arch->file_name;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }\n  pcVar4 = (char *)dcgettext(0,pcVar4,5);\n  error(pcVar4,pcVar3);\n  return (char *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "iVar1 = fseek((FILE *)arch->file,offset,0);" (assignment_expression "iVar1 = fseek((FILE *)arch->file,offset,0)" identifier = (call_expression "fseek((FILE *)arch->file,offset,0)" identifier (argument_list "((FILE *)arch->file,offset,0)" ( (cast_expression "(FILE *)arch->file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "arch->file" identifier -> field_identifier)) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);\n    if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    pcVar3 = arch->file_name;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);\n    if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }" { (expression_statement "sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);" (assignment_expression "sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file)" identifier = (call_expression "fread(&arch->arhdr,1,0x3c,(FILE *)arch->file)" identifier (argument_list "(&arch->arhdr,1,0x3c,(FILE *)arch->file)" ( (pointer_expression "&arch->arhdr" & (field_expression "arch->arhdr" identifier -> field_identifier)) , number_literal , number_literal , (cast_expression "(FILE *)arch->file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "arch->file" identifier -> field_identifier)) )))) ;) (if_statement "if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" if (parenthesized_expression "(sVar2 == 0x3c)" ( (binary_expression "sVar2 == 0x3c" identifier == number_literal) )) (compound_statement "{\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }" { (if_statement "if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }" if (parenthesized_expression "(*(short *)(arch->arhdr).ar_fmag == 0xa60)" ( (binary_expression "*(short *)(arch->arhdr).ar_fmag == 0xa60" (pointer_expression "*(short *)(arch->arhdr).ar_fmag" * (cast_expression "(short *)(arch->arhdr).ar_fmag" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (field_expression "(arch->arhdr).ar_fmag" (parenthesized_expression "(arch->arhdr)" ( (field_expression "arch->arhdr" identifier -> field_identifier) )) . field_identifier))) == number_literal) )) (compound_statement "{\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }" { (expression_statement "pcVar3 = get_archive_member_name(arch,nested_arch);" (assignment_expression "pcVar3 = get_archive_member_name(arch,nested_arch)" identifier = (call_expression "get_archive_member_name(arch,nested_arch)" identifier (argument_list "(arch,nested_arch)" ( identifier , identifier )))) ;) (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "pcVar3 = arch->file_name;" (assignment_expression "pcVar3 = arch->file_name" identifier = (field_expression "arch->file_name" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = "%s: did not find a valid archive header\n";" (assignment_expression "pcVar4 = "%s: did not find a valid archive header\n"" identifier = (string_literal ""%s: did not find a valid archive header\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" else (compound_statement "{\n      pcVar3 = arch->file_name;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" { (expression_statement "pcVar3 = arch->file_name;" (assignment_expression "pcVar3 = arch->file_name" identifier = (field_expression "arch->file_name" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = "%s: failed to read archive header\n";" (assignment_expression "pcVar4 = "%s: failed to read archive header\n"" identifier = (string_literal ""%s: failed to read archive header\n"" " string_content escape_sequence ")) ;) }))) }) (else_clause "else {\n    pcVar3 = arch->file_name;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" else (compound_statement "{\n    pcVar3 = arch->file_name;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" { (expression_statement "pcVar3 = arch->file_name;" (assignment_expression "pcVar3 = arch->file_name" identifier = (field_expression "arch->file_name" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = "%s: failed to seek to next file name\n";" (assignment_expression "pcVar4 = "%s: failed to seek to next file name\n"" identifier = (string_literal ""%s: failed to seek to next file name\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "pcVar4 = (char *)dcgettext(0,pcVar4,5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,pcVar4,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar4,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar4,5)" identifier (argument_list "(0,pcVar4,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "error(pcVar4,pcVar3);" (call_expression "error(pcVar4,pcVar3)" identifier (argument_list "(pcVar4,pcVar3)" ( identifier , identifier ))) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined8 FUN_00138290(undefined8 *param_1,long param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  error(uVar4,uVar3);\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00138290(undefined8 *param_1,long param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  error(uVar4,uVar3);\n  return 0;\n}" type_identifier (function_declarator "FUN_00138290(undefined8 *param_1,long param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 *param_1,long param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  error(uVar4,uVar3);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "iVar1 = fseek((FILE *)param_1[1],param_2,0);" (assignment_expression "iVar1 = fseek((FILE *)param_1[1],param_2,0)" identifier = (call_expression "fseek((FILE *)param_1[1],param_2,0)" identifier (argument_list "((FILE *)param_1[1],param_2,0)" ( (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }" { (expression_statement "sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);" (assignment_expression "sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1])" identifier = (call_expression "fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1])" identifier (argument_list "(param_1 + 0xb,1,0x3c,(FILE *)param_1[1])" ( (binary_expression "param_1 + 0xb" identifier + number_literal) , number_literal , number_literal , (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) )))) ;) (if_statement "if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }" if (parenthesized_expression "(sVar2 == 0x3c)" ( (binary_expression "sVar2 == 0x3c" identifier == number_literal) )) (compound_statement "{\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }" { (if_statement "if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }" if (parenthesized_expression "(*(short *)((long)param_1 + 0x92) == 0xa60)" ( (binary_expression "*(short *)((long)param_1 + 0x92) == 0xa60" (pointer_expression "*(short *)((long)param_1 + 0x92)" * (cast_expression "(short *)((long)param_1 + 0x92)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x92)" ( (binary_expression "(long)param_1 + 0x92" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }" { (expression_statement "uVar3 = FUN_00138350(param_1,param_3);" (assignment_expression "uVar3 = FUN_00138350(param_1,param_3)" identifier = (call_expression "FUN_00138350(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar5 = "%s: did not find a valid archive header\n";" (assignment_expression "pcVar5 = "%s: did not find a valid archive header\n"" identifier = (string_literal ""%s: did not find a valid archive header\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }" else (compound_statement "{\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar5 = "%s: failed to read archive header\n";" (assignment_expression "pcVar5 = "%s: failed to read archive header\n"" identifier = (string_literal ""%s: failed to read archive header\n"" " string_content escape_sequence ")) ;) }))) }) (else_clause "else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }" else (compound_statement "{\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar5 = "%s: failed to seek to next file name\n";" (assignment_expression "pcVar5 = "%s: failed to seek to next file name\n"" identifier = (string_literal ""%s: failed to seek to next file name\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "uVar4 = dcgettext(0,pcVar5,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar5,5)" identifier = (call_expression "dcgettext(0,pcVar5,5)" identifier (argument_list "(0,pcVar5,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "error(uVar4,uVar3);" (call_expression "error(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00138290(undefined8 *param_1,long param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  error(uVar4,uVar3);\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_00138290(undefined8 *param_1,long param_2,undefined8 param_3)" (identifier "FUN_00138290") (parameter_list "(undefined8 *param_1,long param_2,undefined8 param_3)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }\n  uVar4 = dcgettext(0,pcVar5,5);\n  error(uVar4,uVar3);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (expression_statement "iVar1 = fseek((FILE *)param_1[1],param_2,0);" (assignment_expression "iVar1 = fseek((FILE *)param_1[1],param_2,0)" (identifier "iVar1") (= "=") (call_expression "fseek((FILE *)param_1[1],param_2,0)" (identifier "fseek") (argument_list "((FILE *)param_1[1],param_2,0)" (( "(") (cast_expression "(FILE *)param_1[1]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }\n  }" ({ "{") (expression_statement "sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);" (assignment_expression "sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1])" (identifier "sVar2") (= "=") (call_expression "fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1])" (identifier "fread") (argument_list "(param_1 + 0xb,1,0x3c,(FILE *)param_1[1])" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) (, ",") (number_literal "1") (, ",") (number_literal "0x3c") (, ",") (cast_expression "(FILE *)param_1[1]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")))) (; ";")) (if_statement "if (sVar2 == 0x3c) {\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }" (if "if") (parenthesized_expression "(sVar2 == 0x3c)" (( "(") (binary_expression "sVar2 == 0x3c" (identifier "sVar2") (== "==") (number_literal "0x3c")) () ")")) (compound_statement "{\n      if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar5 = "%s: did not find a valid archive header\n";\n    }" ({ "{") (if_statement "if (*(short *)((long)param_1 + 0x92) == 0xa60) {\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }" (if "if") (parenthesized_expression "(*(short *)((long)param_1 + 0x92) == 0xa60)" (( "(") (binary_expression "*(short *)((long)param_1 + 0x92) == 0xa60" (pointer_expression "*(short *)((long)param_1 + 0x92)" (* "*") (cast_expression "(short *)((long)param_1 + 0x92)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x92)" (( "(") (binary_expression "(long)param_1 + 0x92" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x92")) () ")")))) (== "==") (number_literal "0xa60")) () ")")) (compound_statement "{\n        uVar3 = FUN_00138350(param_1,param_3);\n        return uVar3;\n      }" ({ "{") (expression_statement "uVar3 = FUN_00138350(param_1,param_3);" (assignment_expression "uVar3 = FUN_00138350(param_1,param_3)" (identifier "uVar3") (= "=") (call_expression "FUN_00138350(param_1,param_3)" (identifier "FUN_00138350") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar5 = "%s: did not find a valid archive header\n";" (assignment_expression "pcVar5 = "%s: did not find a valid archive header\n"" (identifier "pcVar5") (= "=") (string_literal ""%s: did not find a valid archive header\n"" (" """) (string_content "%s: did not find a valid archive header") (escape_sequence "\n") (" """))) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }" (else "else") (compound_statement "{\n      uVar3 = *param_1;\n      pcVar5 = "%s: failed to read archive header\n";\n    }" ({ "{") (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar5 = "%s: failed to read archive header\n";" (assignment_expression "pcVar5 = "%s: failed to read archive header\n"" (identifier "pcVar5") (= "=") (string_literal ""%s: failed to read archive header\n"" (" """) (string_content "%s: failed to read archive header") (escape_sequence "\n") (" """))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }" (else "else") (compound_statement "{\n    uVar3 = *param_1;\n    pcVar5 = "%s: failed to seek to next file name\n";\n  }" ({ "{") (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar5 = "%s: failed to seek to next file name\n";" (assignment_expression "pcVar5 = "%s: failed to seek to next file name\n"" (identifier "pcVar5") (= "=") (string_literal ""%s: failed to seek to next file name\n"" (" """) (string_content "%s: failed to seek to next file name") (escape_sequence "\n") (" """))) (; ";")) (} "}")))) (expression_statement "uVar4 = dcgettext(0,pcVar5,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar5,5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,pcVar5,5)" (identifier "dcgettext") (argument_list "(0,pcVar5,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar5") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar4,uVar3);" (call_expression "error(uVar4,uVar3)" (identifier "error") (argument_list "(uVar4,uVar3)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

char * function_1(type_1 *arch,type_2 offset,type_1 *nested_arch)

{
  int var_2;
  size_t var_4;
  char *pcVar3;
  char *pcVar4;
  
  var_2 = var_1((type_3 *)arch->file,offset,0);
  if (var_2 == 0) {
    var_4 = var_3(&arch->arhdr,1,0x3c,(type_3 *)arch->file);
    if (var_4 == 0x3c) {
      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {
        pcVar3 = var_5(arch,nested_arch);
        return pcVar3;
      }
      pcVar3 = arch->file_name;
      pcVar4 = "%s: did not find a valid archive header\n";
    }
    else {
      pcVar3 = arch->file_name;
      pcVar4 = "%s: failed to read archive header\n";
    }
  }
  else {
    pcVar3 = arch->file_name;
    pcVar4 = "%s: failed to seek to next file name\n";
  }
  pcVar4 = (char *)var_6(0,pcVar4,5);
  var_7(pcVar4,pcVar3);
  return (char *)0x0;
}


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

undefined8 MASKED(undefined8 *param_1,long param_2,undefined8 param_3)

{
  int iVar1;
  size_t sVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  char *pcVar5;
  
  iVar1 = fseek((FILE *)param_1[1],param_2,0);
  if (iVar1 == 0) {
    sVar2 = fread(param_1 + 0xb,1,0x3c,(FILE *)param_1[1]);
    if (sVar2 == 0x3c) {
      if (*(short *)((long)param_1 + 0x92) == 0xa60) {
        uVar3 = FUN_00138350(param_1,param_3);
        return uVar3;
      }
      uVar3 = *param_1;
      pcVar5 = "%s: did not find a valid archive header\n";
    }
    else {
      uVar3 = *param_1;
      pcVar5 = "%s: failed to read archive header\n";
    }
  }
  else {
    uVar3 = *param_1;
    pcVar5 = "%s: failed to seek to next file name\n";
  }
  uVar4 = dcgettext(0,pcVar5,5);
  error(uVar4,uVar3);
  return 0;
}

