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

void __regparm3 write_archive(bfd *iarch)

{
  bfd *pbVar1;
  size_t sVar2;
  char *pcVar3;
  char *from;
  bfd *pbVar4;
  int iVar5;
  
  pbVar1 = iarch->archive_next;
  sVar2 = strlen(iarch->filename);
  pcVar3 = (char *)xmalloc(sVar2 + 1);
  strcpy(pcVar3,iarch->filename);
  from = make_tempname(pcVar3);
  if (from == (char *)0x0) {
    pcVar3 = (char *)dcgettext(0,"could not create temporary file whilst writing archive",5,0);
                    /* WARNING: Subroutine does not return */
    bfd_fatal(pcVar3);
  }
  output_filename = from;
  pbVar4 = (bfd *)bfd_openw(from,iarch->xvec->name);
  if (pbVar4 != (bfd *)0x0) {
    output_bfd = pbVar4;
    bfd_set_format(pbVar4,2);
    pbVar4->field_0x2b = (byte)(((uint)~write_armap >> 0x1f) << 7) | pbVar4->field_0x2b & 0x7f;
    if (ar_truncate != 0) {
      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x8000;
    }
    if (deterministic != 0) {
      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x40000;
    }
    if ((make_thin_archive != 0) || ((iarch->field_0x2c & 1) != 0)) {
      pbVar4->field_0x2c = pbVar4->field_0x2c | 1;
    }
    iVar5 = bfd_set_archive_head(pbVar4,pbVar1);
    if ((iVar5 != 0) && (iVar5 = bfd_close(pbVar4), iVar5 != 0)) {
      output_bfd = (bfd *)0x0;
      output_filename = (char *)0x0;
      bfd_close(iarch);
      iVar5 = smart_rename(from,pcVar3,0);
      if (iVar5 != 0) {
                    /* WARNING: Subroutine does not return */
        xexit(1);
      }
      free(pcVar3);
      free(from);
      return;
    }
  }
                    /* WARNING: Subroutine does not return */
  bfd_fatal(pcVar3);
}



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

void __regparm3 FUN_00015830(undefined4 *param_1)

{
  char *__dest;
  void *__ptr;
  int iVar1;
  undefined4 uVar2;
  undefined1 *puVar3;
  undefined1 *puVar4;
  undefined4 auStackY_60 [9];
  undefined4 uStack_34;
  undefined1 auStack_2c [8];
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1583b;
  local_24 = param_1[0x24];
  strlen((char *)*param_1);
  __dest = (char *)xmalloc();
  strcpy(__dest,(char *)*param_1);
  __ptr = (void *)FUN_000186b0();
  puVar3 = auStack_2c;
  if (__ptr != (void *)0x0) {
    DAT_000212b0 = __ptr;
    iVar1 = bfd_openw();
    if (iVar1 != 0) {
      local_20 = iVar1;
      DAT_000212a8 = iVar1;
      bfd_set_format();
      *(byte *)(local_20 + 0x2b) =
           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;
      if (DAT_000212c8 != 0) {
        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;
      }
      if (DAT_000211ac != 0) {
        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;
      }
      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {
        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;
      }
      local_24 = local_20;
      iVar1 = bfd_set_archive_head();
      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {
        DAT_000212a8 = 0;
        DAT_000212b0 = (void *)0x0;
        bfd_close();
        uStack_34 = 0;
        iVar1 = FUN_00017640();
        puVar4 = auStack_2c;
        if (iVar1 == 0) {
          free(__dest);
          free(__ptr);
          return;
        }
        goto LAB_000159ad;
      }
    }
    puVar3 = &stack0xffffffc4;
    __ptr = (void *)FUN_00017e60();
  }
  *(void **)(puVar3 + -4) = __ptr;
  *(undefined4 *)(puVar3 + -8) = 5;
  *(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";
  puVar4 = puVar3 + -0x10;
  *(undefined4 *)(puVar3 + -0x10) = 0;
  *(undefined4 *)(puVar3 + -0x14) = 0x159a5;
  uVar2 = dcgettext();
  *(undefined4 *)(puVar3 + -0x10) = uVar2;
  *(undefined4 *)(puVar3 + -0x14) = 0x159ad;
  FUN_00017e60();
LAB_000159ad:
  *(undefined4 *)(puVar4 + -0x10) = 1;
                    /* WARNING: Subroutine does not return */
  *(undefined **)(puVar4 + -0x14) = &UNK_000159b7;
  xexit();
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00013710
ADD EBX,0xb7c5
SUB ESP,0x28
MOV EAX,dword ptr [EAX + 0x90]
MOV dword ptr [ESP + 0x14],EAX
PUSH dword ptr [ESI]
CALL 0x00012360
ADD EAX,0x1
MOV dword ptr [ESP],EAX
CALL 0x00012220
POP EDX
POP ECX
PUSH dword ptr [ESI]
PUSH EAX
MOV EBP,EAX
CALL 0x00012270
MOV dword ptr [ESP],EBP
CALL 0x000186b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00015994
MOV EDI,EAX
MOV dword ptr [EBX + 0x2b0],EAX
MOV EAX,dword ptr [ESI + 0x4]
SUB ESP,0x8
PUSH dword ptr [EAX]
PUSH EDI
CALL 0x00012430
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001598b
SUB ESP,0x8
MOV dword ptr [EBX + 0x2a8],EAX
PUSH 0x2
PUSH EAX
MOV dword ptr [ESP + 0x1c],EAX
CALL 0x00012310
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [EBX + 0x290]
ADD ESP,0x10
MOVZX ECX,byte ptr [EDX + 0x2b]
NOT EAX
SHR EAX,0x1f
SHL EAX,0x7
AND ECX,0x7f
OR EAX,ECX
MOV byte ptr [EDX + 0x2b],AL
MOV EAX,dword ptr [EBX + 0x2c8]
TEST EAX,EAX
JZ 0x000158e7
OR dword ptr [EDX + 0x28],0x8000
MOV ECX,dword ptr [EBX + 0x1ac]
TEST ECX,ECX
JZ 0x000158f8
OR dword ptr [EDX + 0x28],0x40000
MOV EAX,dword ptr [EBX + 0x2c0]
TEST EAX,EAX
JZ 0x00015980
OR byte ptr [EDX + 0x2c],0x1
SUB ESP,0x8
PUSH dword ptr [ESP + 0x10]
PUSH EDX
MOV dword ptr [ESP + 0x18],EDX
CALL 0x00012110
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x0001598b
SUB ESP,0xc
PUSH EDX
CALL 0x000124b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001598b
MOV dword ptr [EBX + 0x2a8],0x0
SUB ESP,0xc
PUSH ESI
MOV dword ptr [EBX + 0x2b0],0x0
CALL 0x000124b0
ADD ESP,0xc
PUSH 0x0
PUSH EBP
PUSH EDI
CALL 0x00017640
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000159ad
SUB ESP,0xc
PUSH EBP
CALL 0x00012100
MOV dword ptr [ESP],EDI
CALL 0x00012100
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST byte ptr [ESI + 0x2c],0x1
JZ 0x00015906
JMP 0x00015902
SUB ESP,0xc
PUSH EBP
CALL 0x00017e60
PUSH EAX
LEA EAX,[EBX + 0xffffa450]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012180
MOV dword ptr [ESP],EAX
CALL 0x00017e60
SUB ESP,0xc
PUSH 0x1
CALL 0x000124a0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00015830(undefined4 *param_1)\n\n{\n  char *__dest;\n  void *__ptr;\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined4 auStackY_60 [9];\n  undefined4 uStack_34;\n  undefined1 auStack_2c [8];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1583b;\n  local_24 = param_1[0x24];\n  strlen((char *)*param_1);\n  __dest = (char *)xmalloc();\n  strcpy(__dest,(char *)*param_1);\n  __ptr = (void *)FUN_000186b0();\n  puVar3 = auStack_2c;\n  if (__ptr != (void *)0x0) {\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }\n  *(void **)(puVar3 + -4) = __ptr;\n  *(undefined4 *)(puVar3 + -8) = 5;\n  *(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";\n  puVar4 = puVar3 + -0x10;\n  *(undefined4 *)(puVar3 + -0x10) = 0;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159a5;\n  uVar2 = dcgettext();\n  *(undefined4 *)(puVar3 + -0x10) = uVar2;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159ad;\n  FUN_00017e60();\nLAB_000159ad:\n  *(undefined4 *)(puVar4 + -0x10) = 1;\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar4 + -0x14) = &UNK_000159b7;\n  xexit();\n}\n\n" comment (function_definition "void __regparm3 FUN_00015830(undefined4 *param_1)\n\n{\n  char *__dest;\n  void *__ptr;\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined4 auStackY_60 [9];\n  undefined4 uStack_34;\n  undefined1 auStack_2c [8];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1583b;\n  local_24 = param_1[0x24];\n  strlen((char *)*param_1);\n  __dest = (char *)xmalloc();\n  strcpy(__dest,(char *)*param_1);\n  __ptr = (void *)FUN_000186b0();\n  puVar3 = auStack_2c;\n  if (__ptr != (void *)0x0) {\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }\n  *(void **)(puVar3 + -4) = __ptr;\n  *(undefined4 *)(puVar3 + -8) = 5;\n  *(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";\n  puVar4 = puVar3 + -0x10;\n  *(undefined4 *)(puVar3 + -0x10) = 0;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159a5;\n  uVar2 = dcgettext();\n  *(undefined4 *)(puVar3 + -0x10) = uVar2;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159ad;\n  FUN_00017e60();\nLAB_000159ad:\n  *(undefined4 *)(puVar4 + -0x10) = 1;\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar4 + -0x14) = &UNK_000159b7;\n  xexit();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00015830(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *__dest;\n  void *__ptr;\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined4 auStackY_60 [9];\n  undefined4 uStack_34;\n  undefined1 auStack_2c [8];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1583b;\n  local_24 = param_1[0x24];\n  strlen((char *)*param_1);\n  __dest = (char *)xmalloc();\n  strcpy(__dest,(char *)*param_1);\n  __ptr = (void *)FUN_000186b0();\n  puVar3 = auStack_2c;\n  if (__ptr != (void *)0x0) {\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }\n  *(void **)(puVar3 + -4) = __ptr;\n  *(undefined4 *)(puVar3 + -8) = 5;\n  *(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";\n  puVar4 = puVar3 + -0x10;\n  *(undefined4 *)(puVar3 + -0x10) = 0;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159a5;\n  uVar2 = dcgettext();\n  *(undefined4 *)(puVar3 + -0x10) = uVar2;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159ad;\n  FUN_00017e60();\nLAB_000159ad:\n  *(undefined4 *)(puVar4 + -0x10) = 1;\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar4 + -0x14) = &UNK_000159b7;\n  xexit();\n}" { (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 auStackY_60 [9];" type_identifier (array_declarator "auStackY_60 [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_34;" type_identifier identifier ;) (declaration "undefined1 auStack_2c [8];" type_identifier (array_declarator "auStack_2c [8]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1583b;" (assignment_expression "uStack_14 = 0x1583b" identifier = number_literal) ;) (expression_statement "local_24 = param_1[0x24];" (assignment_expression "local_24 = param_1[0x24]" identifier = (subscript_expression "param_1[0x24]" identifier [ number_literal ])) ;) (expression_statement "strlen((char *)*param_1);" (call_expression "strlen((char *)*param_1)" identifier (argument_list "((char *)*param_1)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "__dest = (char *)xmalloc();" (assignment_expression "__dest = (char *)xmalloc()" identifier = (cast_expression "(char *)xmalloc()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc()" identifier (argument_list "()" ( ))))) ;) (expression_statement "strcpy(__dest,(char *)*param_1);" (call_expression "strcpy(__dest,(char *)*param_1)" identifier (argument_list "(__dest,(char *)*param_1)" ( identifier , (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "__ptr = (void *)FUN_000186b0();" (assignment_expression "__ptr = (void *)FUN_000186b0()" identifier = (cast_expression "(void *)FUN_000186b0()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000186b0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "puVar3 = auStack_2c;" (assignment_expression "puVar3 = auStack_2c" identifier = identifier) ;) (if_statement "if (__ptr != (void *)0x0) {\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }" { (expression_statement "DAT_000212b0 = __ptr;" (assignment_expression "DAT_000212b0 = __ptr" identifier = identifier) ;) (expression_statement "iVar1 = bfd_openw();" (assignment_expression "iVar1 = bfd_openw()" identifier = (call_expression "bfd_openw()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }" { (expression_statement "local_20 = iVar1;" (assignment_expression "local_20 = iVar1" identifier = identifier) ;) (expression_statement "DAT_000212a8 = iVar1;" (assignment_expression "DAT_000212a8 = iVar1" identifier = identifier) ;) (expression_statement "bfd_set_format();" (call_expression "bfd_set_format()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;" (assignment_expression "*(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f" (pointer_expression "*(byte *)(local_20 + 0x2b)" * (cast_expression "(byte *)(local_20 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x2b)" ( (binary_expression "local_20 + 0x2b" identifier + number_literal) )))) = (binary_expression "(byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f" (call_expression "(byte)((~DAT_00021290 >> 0x1f) << 7)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((~DAT_00021290 >> 0x1f) << 7)" ( (binary_expression "(~DAT_00021290 >> 0x1f) << 7" (parenthesized_expression "(~DAT_00021290 >> 0x1f)" ( (binary_expression "~DAT_00021290 >> 0x1f" (unary_expression "~DAT_00021290" ~ identifier) >> number_literal) )) << number_literal) ))) | (binary_expression "*(byte *)(local_20 + 0x2b) & 0x7f" (pointer_expression "*(byte *)(local_20 + 0x2b)" * (cast_expression "(byte *)(local_20 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x2b)" ( (binary_expression "local_20 + 0x2b" identifier + number_literal) )))) & number_literal))) ;) (if_statement "if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }" if (parenthesized_expression "(DAT_000212c8 != 0)" ( (binary_expression "DAT_000212c8 != 0" identifier != number_literal) )) (compound_statement "{\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }" { (expression_statement "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;" (assignment_expression "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000" (pointer_expression "*(uint *)(local_20 + 0x28)" * (cast_expression "(uint *)(local_20 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x28)" ( (binary_expression "local_20 + 0x28" identifier + number_literal) )))) = (binary_expression "*(uint *)(local_20 + 0x28) | 0x8000" (pointer_expression "*(uint *)(local_20 + 0x28)" * (cast_expression "(uint *)(local_20 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x28)" ( (binary_expression "local_20 + 0x28" identifier + number_literal) )))) | number_literal)) ;) })) (if_statement "if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }" if (parenthesized_expression "(DAT_000211ac != 0)" ( (binary_expression "DAT_000211ac != 0" identifier != number_literal) )) (compound_statement "{\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }" { (expression_statement "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;" (assignment_expression "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000" (pointer_expression "*(uint *)(local_20 + 0x28)" * (cast_expression "(uint *)(local_20 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x28)" ( (binary_expression "local_20 + 0x28" identifier + number_literal) )))) = (binary_expression "*(uint *)(local_20 + 0x28) | 0x40000" (pointer_expression "*(uint *)(local_20 + 0x28)" * (cast_expression "(uint *)(local_20 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x28)" ( (binary_expression "local_20 + 0x28" identifier + number_literal) )))) | number_literal)) ;) })) (if_statement "if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }" if (parenthesized_expression "((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0))" ( (binary_expression "(DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)" (parenthesized_expression "(DAT_000212c0 != 0)" ( (binary_expression "DAT_000212c0 != 0" identifier != number_literal) )) || (parenthesized_expression "((*(byte *)(param_1 + 0xb) & 1) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0xb) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0xb) & 1)" ( (binary_expression "*(byte *)(param_1 + 0xb) & 1" (pointer_expression "*(byte *)(param_1 + 0xb)" * (cast_expression "(byte *)(param_1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }" { (expression_statement "*(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;" (assignment_expression "*(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1" (pointer_expression "*(byte *)(local_20 + 0x2c)" * (cast_expression "(byte *)(local_20 + 0x2c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x2c)" ( (binary_expression "local_20 + 0x2c" identifier + number_literal) )))) = (binary_expression "*(byte *)(local_20 + 0x2c) | 1" (pointer_expression "*(byte *)(local_20 + 0x2c)" * (cast_expression "(byte *)(local_20 + 0x2c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x2c)" ( (binary_expression "local_20 + 0x2c" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "local_24 = local_20;" (assignment_expression "local_24 = local_20" identifier = identifier) ;) (expression_statement "iVar1 = bfd_set_archive_head();" (assignment_expression "iVar1 = bfd_set_archive_head()" identifier = (call_expression "bfd_set_archive_head()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = bfd_close(), iVar1 != 0)" ( (comma_expression "iVar1 = bfd_close(), iVar1 != 0" (assignment_expression "iVar1 = bfd_close()" identifier = (call_expression "bfd_close()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }" { (expression_statement "DAT_000212a8 = 0;" (assignment_expression "DAT_000212a8 = 0" identifier = number_literal) ;) (expression_statement "DAT_000212b0 = (void *)0x0;" (assignment_expression "DAT_000212b0 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "bfd_close();" (call_expression "bfd_close()" identifier (argument_list "()" ( ))) ;) (expression_statement "uStack_34 = 0;" (assignment_expression "uStack_34 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00017640();" (assignment_expression "iVar1 = FUN_00017640()" identifier = (call_expression "FUN_00017640()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar4 = auStack_2c;" (assignment_expression "puVar4 = auStack_2c" identifier = identifier) ;) (if_statement "if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          free(__dest);\n          free(__ptr);\n          return;\n        }" { (expression_statement "free(__dest);" (call_expression "free(__dest)" identifier (argument_list "(__dest)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })) (goto_statement "goto LAB_000159ad;" goto statement_identifier ;) })) })) (expression_statement "puVar3 = &stack0xffffffc4;" (assignment_expression "puVar3 = &stack0xffffffc4" identifier = (pointer_expression "&stack0xffffffc4" & identifier)) ;) (expression_statement "__ptr = (void *)FUN_00017e60();" (assignment_expression "__ptr = (void *)FUN_00017e60()" identifier = (cast_expression "(void *)FUN_00017e60()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00017e60()" identifier (argument_list "()" ( ))))) ;) })) (expression_statement "*(void **)(puVar3 + -4) = __ptr;" (assignment_expression "*(void **)(puVar3 + -4) = __ptr" (pointer_expression "*(void **)(puVar3 + -4)" * (cast_expression "(void **)(puVar3 + -4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -4)" ( (binary_expression "puVar3 + -4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar3 + -8) = 5;" (assignment_expression "*(undefined4 *)(puVar3 + -8) = 5" (pointer_expression "*(undefined4 *)(puVar3 + -8)" * (cast_expression "(undefined4 *)(puVar3 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -8)" ( (binary_expression "puVar3 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";" (assignment_expression "*(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive"" (pointer_expression "*(char **)(puVar3 + -0xc)" * (cast_expression "(char **)(puVar3 + -0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -0xc)" ( (binary_expression "puVar3 + -0xc" identifier + number_literal) )))) = (string_literal ""could not create temporary file whilst writing archive"" " string_content ")) ;) (expression_statement "puVar4 = puVar3 + -0x10;" (assignment_expression "puVar4 = puVar3 + -0x10" identifier = (binary_expression "puVar3 + -0x10" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar3 + -0x10) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + -0x10) = 0" (pointer_expression "*(undefined4 *)(puVar3 + -0x10)" * (cast_expression "(undefined4 *)(puVar3 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -0x10)" ( (binary_expression "puVar3 + -0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + -0x14) = 0x159a5;" (assignment_expression "*(undefined4 *)(puVar3 + -0x14) = 0x159a5" (pointer_expression "*(undefined4 *)(puVar3 + -0x14)" * (cast_expression "(undefined4 *)(puVar3 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -0x14)" ( (binary_expression "puVar3 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = dcgettext();" (assignment_expression "uVar2 = dcgettext()" identifier = (call_expression "dcgettext()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(puVar3 + -0x10) = uVar2;" (assignment_expression "*(undefined4 *)(puVar3 + -0x10) = uVar2" (pointer_expression "*(undefined4 *)(puVar3 + -0x10)" * (cast_expression "(undefined4 *)(puVar3 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -0x10)" ( (binary_expression "puVar3 + -0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar3 + -0x14) = 0x159ad;" (assignment_expression "*(undefined4 *)(puVar3 + -0x14) = 0x159ad" (pointer_expression "*(undefined4 *)(puVar3 + -0x14)" * (cast_expression "(undefined4 *)(puVar3 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -0x14)" ( (binary_expression "puVar3 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00017e60();" (call_expression "FUN_00017e60()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_000159ad:\n  *(undefined4 *)(puVar4 + -0x10) = 1;" statement_identifier : (expression_statement "*(undefined4 *)(puVar4 + -0x10) = 1;" (assignment_expression "*(undefined4 *)(puVar4 + -0x10) = 1" (pointer_expression "*(undefined4 *)(puVar4 + -0x10)" * (cast_expression "(undefined4 *)(puVar4 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x10)" ( (binary_expression "puVar4 + -0x10" identifier + number_literal) )))) = number_literal) ;)) comment (expression_statement "*(undefined **)(puVar4 + -0x14) = &UNK_000159b7;" (assignment_expression "*(undefined **)(puVar4 + -0x14) = &UNK_000159b7" (pointer_expression "*(undefined **)(puVar4 + -0x14)" * (cast_expression "(undefined **)(puVar4 + -0x14)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + -0x14)" ( (binary_expression "puVar4 + -0x14" identifier + number_literal) )))) = (pointer_expression "&UNK_000159b7" & identifier)) ;) (expression_statement "xexit();" (call_expression "xexit()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 write_archive(bfd *iarch)\n\n{\n  bfd *pbVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *from;\n  bfd *pbVar4;\n  int iVar5;\n  \n  pbVar1 = iarch->archive_next;\n  sVar2 = strlen(iarch->filename);\n  pcVar3 = (char *)xmalloc(sVar2 + 1);\n  strcpy(pcVar3,iarch->filename);\n  from = make_tempname(pcVar3);\n  if (from == (char *)0x0) {\n    pcVar3 = (char *)dcgettext(0,"could not create temporary file whilst writing archive",5,0);\n                    /* WARNING: Subroutine does not return */\n    bfd_fatal(pcVar3);\n  }\n  output_filename = from;\n  pbVar4 = (bfd *)bfd_openw(from,iarch->xvec->name);\n  if (pbVar4 != (bfd *)0x0) {\n    output_bfd = pbVar4;\n    bfd_set_format(pbVar4,2);\n    pbVar4->field_0x2b = (byte)(((uint)~write_armap >> 0x1f) << 7) | pbVar4->field_0x2b & 0x7f;\n    if (ar_truncate != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x8000;\n    }\n    if (deterministic != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x40000;\n    }\n    if ((make_thin_archive != 0) || ((iarch->field_0x2c & 1) != 0)) {\n      pbVar4->field_0x2c = pbVar4->field_0x2c | 1;\n    }\n    iVar5 = bfd_set_archive_head(pbVar4,pbVar1);\n    if ((iVar5 != 0) && (iVar5 = bfd_close(pbVar4), iVar5 != 0)) {\n      output_bfd = (bfd *)0x0;\n      output_filename = (char *)0x0;\n      bfd_close(iarch);\n      iVar5 = smart_rename(from,pcVar3,0);\n      if (iVar5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        xexit(1);\n      }\n      free(pcVar3);\n      free(from);\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  bfd_fatal(pcVar3);\n}\n\n" comment (function_definition "void __regparm3 write_archive(bfd *iarch)\n\n{\n  bfd *pbVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *from;\n  bfd *pbVar4;\n  int iVar5;\n  \n  pbVar1 = iarch->archive_next;\n  sVar2 = strlen(iarch->filename);\n  pcVar3 = (char *)xmalloc(sVar2 + 1);\n  strcpy(pcVar3,iarch->filename);\n  from = make_tempname(pcVar3);\n  if (from == (char *)0x0) {\n    pcVar3 = (char *)dcgettext(0,"could not create temporary file whilst writing archive",5,0);\n                    /* WARNING: Subroutine does not return */\n    bfd_fatal(pcVar3);\n  }\n  output_filename = from;\n  pbVar4 = (bfd *)bfd_openw(from,iarch->xvec->name);\n  if (pbVar4 != (bfd *)0x0) {\n    output_bfd = pbVar4;\n    bfd_set_format(pbVar4,2);\n    pbVar4->field_0x2b = (byte)(((uint)~write_armap >> 0x1f) << 7) | pbVar4->field_0x2b & 0x7f;\n    if (ar_truncate != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x8000;\n    }\n    if (deterministic != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x40000;\n    }\n    if ((make_thin_archive != 0) || ((iarch->field_0x2c & 1) != 0)) {\n      pbVar4->field_0x2c = pbVar4->field_0x2c | 1;\n    }\n    iVar5 = bfd_set_archive_head(pbVar4,pbVar1);\n    if ((iVar5 != 0) && (iVar5 = bfd_close(pbVar4), iVar5 != 0)) {\n      output_bfd = (bfd *)0x0;\n      output_filename = (char *)0x0;\n      bfd_close(iarch);\n      iVar5 = smart_rename(from,pcVar3,0);\n      if (iVar5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        xexit(1);\n      }\n      free(pcVar3);\n      free(from);\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  bfd_fatal(pcVar3);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "write_archive(bfd *iarch)" identifier (parameter_list "(bfd *iarch)" ( (parameter_declaration "bfd *iarch" type_identifier (pointer_declarator "*iarch" * identifier)) ))) (compound_statement "{\n  bfd *pbVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *from;\n  bfd *pbVar4;\n  int iVar5;\n  \n  pbVar1 = iarch->archive_next;\n  sVar2 = strlen(iarch->filename);\n  pcVar3 = (char *)xmalloc(sVar2 + 1);\n  strcpy(pcVar3,iarch->filename);\n  from = make_tempname(pcVar3);\n  if (from == (char *)0x0) {\n    pcVar3 = (char *)dcgettext(0,"could not create temporary file whilst writing archive",5,0);\n                    /* WARNING: Subroutine does not return */\n    bfd_fatal(pcVar3);\n  }\n  output_filename = from;\n  pbVar4 = (bfd *)bfd_openw(from,iarch->xvec->name);\n  if (pbVar4 != (bfd *)0x0) {\n    output_bfd = pbVar4;\n    bfd_set_format(pbVar4,2);\n    pbVar4->field_0x2b = (byte)(((uint)~write_armap >> 0x1f) << 7) | pbVar4->field_0x2b & 0x7f;\n    if (ar_truncate != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x8000;\n    }\n    if (deterministic != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x40000;\n    }\n    if ((make_thin_archive != 0) || ((iarch->field_0x2c & 1) != 0)) {\n      pbVar4->field_0x2c = pbVar4->field_0x2c | 1;\n    }\n    iVar5 = bfd_set_archive_head(pbVar4,pbVar1);\n    if ((iVar5 != 0) && (iVar5 = bfd_close(pbVar4), iVar5 != 0)) {\n      output_bfd = (bfd *)0x0;\n      output_filename = (char *)0x0;\n      bfd_close(iarch);\n      iVar5 = smart_rename(from,pcVar3,0);\n      if (iVar5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        xexit(1);\n      }\n      free(pcVar3);\n      free(from);\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  bfd_fatal(pcVar3);\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *from;" primitive_type (pointer_declarator "*from" * identifier) ;) (declaration "bfd *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "pbVar1 = iarch->archive_next;" (assignment_expression "pbVar1 = iarch->archive_next" identifier = (field_expression "iarch->archive_next" identifier -> field_identifier)) ;) (expression_statement "sVar2 = strlen(iarch->filename);" (assignment_expression "sVar2 = strlen(iarch->filename)" identifier = (call_expression "strlen(iarch->filename)" identifier (argument_list "(iarch->filename)" ( (field_expression "iarch->filename" identifier -> field_identifier) )))) ;) (expression_statement "pcVar3 = (char *)xmalloc(sVar2 + 1);" (assignment_expression "pcVar3 = (char *)xmalloc(sVar2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "strcpy(pcVar3,iarch->filename);" (call_expression "strcpy(pcVar3,iarch->filename)" identifier (argument_list "(pcVar3,iarch->filename)" ( identifier , (field_expression "iarch->filename" identifier -> field_identifier) ))) ;) (expression_statement "from = make_tempname(pcVar3);" (assignment_expression "from = make_tempname(pcVar3)" identifier = (call_expression "make_tempname(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (if_statement "if (from == (char *)0x0) {\n    pcVar3 = (char *)dcgettext(0,"could not create temporary file whilst writing archive",5,0);\n                    /* WARNING: Subroutine does not return */\n    bfd_fatal(pcVar3);\n  }" if (parenthesized_expression "(from == (char *)0x0)" ( (binary_expression "from == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = (char *)dcgettext(0,"could not create temporary file whilst writing archive",5,0);\n                    /* WARNING: Subroutine does not return */\n    bfd_fatal(pcVar3);\n  }" { (expression_statement "pcVar3 = (char *)dcgettext(0,"could not create temporary file whilst writing archive",5,0);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"could not create temporary file whilst writing archive",5,0)" identifier = (cast_expression "(char *)dcgettext(0,"could not create temporary file whilst writing archive",5,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"could not create temporary file whilst writing archive",5,0)" identifier (argument_list "(0,"could not create temporary file whilst writing archive",5,0)" ( number_literal , (string_literal ""could not create temporary file whilst writing archive"" " string_content ") , number_literal , number_literal ))))) ;) comment (expression_statement "bfd_fatal(pcVar3);" (call_expression "bfd_fatal(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) })) (expression_statement "output_filename = from;" (assignment_expression "output_filename = from" identifier = identifier) ;) (expression_statement "pbVar4 = (bfd *)bfd_openw(from,iarch->xvec->name);" (assignment_expression "pbVar4 = (bfd *)bfd_openw(from,iarch->xvec->name)" identifier = (cast_expression "(bfd *)bfd_openw(from,iarch->xvec->name)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_openw(from,iarch->xvec->name)" identifier (argument_list "(from,iarch->xvec->name)" ( identifier , (field_expression "iarch->xvec->name" (field_expression "iarch->xvec" identifier -> field_identifier) -> field_identifier) ))))) ;) (if_statement "if (pbVar4 != (bfd *)0x0) {\n    output_bfd = pbVar4;\n    bfd_set_format(pbVar4,2);\n    pbVar4->field_0x2b = (byte)(((uint)~write_armap >> 0x1f) << 7) | pbVar4->field_0x2b & 0x7f;\n    if (ar_truncate != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x8000;\n    }\n    if (deterministic != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x40000;\n    }\n    if ((make_thin_archive != 0) || ((iarch->field_0x2c & 1) != 0)) {\n      pbVar4->field_0x2c = pbVar4->field_0x2c | 1;\n    }\n    iVar5 = bfd_set_archive_head(pbVar4,pbVar1);\n    if ((iVar5 != 0) && (iVar5 = bfd_close(pbVar4), iVar5 != 0)) {\n      output_bfd = (bfd *)0x0;\n      output_filename = (char *)0x0;\n      bfd_close(iarch);\n      iVar5 = smart_rename(from,pcVar3,0);\n      if (iVar5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        xexit(1);\n      }\n      free(pcVar3);\n      free(from);\n      return;\n    }\n  }" if (parenthesized_expression "(pbVar4 != (bfd *)0x0)" ( (binary_expression "pbVar4 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    output_bfd = pbVar4;\n    bfd_set_format(pbVar4,2);\n    pbVar4->field_0x2b = (byte)(((uint)~write_armap >> 0x1f) << 7) | pbVar4->field_0x2b & 0x7f;\n    if (ar_truncate != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x8000;\n    }\n    if (deterministic != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x40000;\n    }\n    if ((make_thin_archive != 0) || ((iarch->field_0x2c & 1) != 0)) {\n      pbVar4->field_0x2c = pbVar4->field_0x2c | 1;\n    }\n    iVar5 = bfd_set_archive_head(pbVar4,pbVar1);\n    if ((iVar5 != 0) && (iVar5 = bfd_close(pbVar4), iVar5 != 0)) {\n      output_bfd = (bfd *)0x0;\n      output_filename = (char *)0x0;\n      bfd_close(iarch);\n      iVar5 = smart_rename(from,pcVar3,0);\n      if (iVar5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        xexit(1);\n      }\n      free(pcVar3);\n      free(from);\n      return;\n    }\n  }" { (expression_statement "output_bfd = pbVar4;" (assignment_expression "output_bfd = pbVar4" identifier = identifier) ;) (expression_statement "bfd_set_format(pbVar4,2);" (call_expression "bfd_set_format(pbVar4,2)" identifier (argument_list "(pbVar4,2)" ( identifier , number_literal ))) ;) (expression_statement "pbVar4->field_0x2b = (byte)(((uint)~write_armap >> 0x1f) << 7) | pbVar4->field_0x2b & 0x7f;" (assignment_expression "pbVar4->field_0x2b = (byte)(((uint)~write_armap >> 0x1f) << 7) | pbVar4->field_0x2b & 0x7f" (field_expression "pbVar4->field_0x2b" identifier -> field_identifier) = (binary_expression "(byte)(((uint)~write_armap >> 0x1f) << 7) | pbVar4->field_0x2b & 0x7f" (call_expression "(byte)(((uint)~write_armap >> 0x1f) << 7)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(((uint)~write_armap >> 0x1f) << 7)" ( (binary_expression "((uint)~write_armap >> 0x1f) << 7" (parenthesized_expression "((uint)~write_armap >> 0x1f)" ( (binary_expression "(uint)~write_armap >> 0x1f" (cast_expression "(uint)~write_armap" ( (type_descriptor "uint" type_identifier) ) (unary_expression "~write_armap" ~ identifier)) >> number_literal) )) << number_literal) ))) | (binary_expression "pbVar4->field_0x2b & 0x7f" (field_expression "pbVar4->field_0x2b" identifier -> field_identifier) & number_literal))) ;) (if_statement "if (ar_truncate != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x8000;\n    }" if (parenthesized_expression "(ar_truncate != 0)" ( (binary_expression "ar_truncate != 0" identifier != number_literal) )) (compound_statement "{\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x8000;\n    }" { (expression_statement "*(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x8000;" (assignment_expression "*(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x8000" (pointer_expression "*(uint *)&pbVar4->field_0x28" * (cast_expression "(uint *)&pbVar4->field_0x28" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar4->field_0x28" & (field_expression "pbVar4->field_0x28" identifier -> field_identifier)))) = (binary_expression "*(uint *)&pbVar4->field_0x28 | 0x8000" (pointer_expression "*(uint *)&pbVar4->field_0x28" * (cast_expression "(uint *)&pbVar4->field_0x28" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar4->field_0x28" & (field_expression "pbVar4->field_0x28" identifier -> field_identifier)))) | number_literal)) ;) })) (if_statement "if (deterministic != 0) {\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x40000;\n    }" if (parenthesized_expression "(deterministic != 0)" ( (binary_expression "deterministic != 0" identifier != number_literal) )) (compound_statement "{\n      *(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x40000;\n    }" { (expression_statement "*(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x40000;" (assignment_expression "*(uint *)&pbVar4->field_0x28 = *(uint *)&pbVar4->field_0x28 | 0x40000" (pointer_expression "*(uint *)&pbVar4->field_0x28" * (cast_expression "(uint *)&pbVar4->field_0x28" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar4->field_0x28" & (field_expression "pbVar4->field_0x28" identifier -> field_identifier)))) = (binary_expression "*(uint *)&pbVar4->field_0x28 | 0x40000" (pointer_expression "*(uint *)&pbVar4->field_0x28" * (cast_expression "(uint *)&pbVar4->field_0x28" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar4->field_0x28" & (field_expression "pbVar4->field_0x28" identifier -> field_identifier)))) | number_literal)) ;) })) (if_statement "if ((make_thin_archive != 0) || ((iarch->field_0x2c & 1) != 0)) {\n      pbVar4->field_0x2c = pbVar4->field_0x2c | 1;\n    }" if (parenthesized_expression "((make_thin_archive != 0) || ((iarch->field_0x2c & 1) != 0))" ( (binary_expression "(make_thin_archive != 0) || ((iarch->field_0x2c & 1) != 0)" (parenthesized_expression "(make_thin_archive != 0)" ( (binary_expression "make_thin_archive != 0" identifier != number_literal) )) || (parenthesized_expression "((iarch->field_0x2c & 1) != 0)" ( (binary_expression "(iarch->field_0x2c & 1) != 0" (parenthesized_expression "(iarch->field_0x2c & 1)" ( (binary_expression "iarch->field_0x2c & 1" (field_expression "iarch->field_0x2c" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      pbVar4->field_0x2c = pbVar4->field_0x2c | 1;\n    }" { (expression_statement "pbVar4->field_0x2c = pbVar4->field_0x2c | 1;" (assignment_expression "pbVar4->field_0x2c = pbVar4->field_0x2c | 1" (field_expression "pbVar4->field_0x2c" identifier -> field_identifier) = (binary_expression "pbVar4->field_0x2c | 1" (field_expression "pbVar4->field_0x2c" identifier -> field_identifier) | number_literal)) ;) })) (expression_statement "iVar5 = bfd_set_archive_head(pbVar4,pbVar1);" (assignment_expression "iVar5 = bfd_set_archive_head(pbVar4,pbVar1)" identifier = (call_expression "bfd_set_archive_head(pbVar4,pbVar1)" identifier (argument_list "(pbVar4,pbVar1)" ( identifier , identifier )))) ;) (if_statement "if ((iVar5 != 0) && (iVar5 = bfd_close(pbVar4), iVar5 != 0)) {\n      output_bfd = (bfd *)0x0;\n      output_filename = (char *)0x0;\n      bfd_close(iarch);\n      iVar5 = smart_rename(from,pcVar3,0);\n      if (iVar5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        xexit(1);\n      }\n      free(pcVar3);\n      free(from);\n      return;\n    }" if (parenthesized_expression "((iVar5 != 0) && (iVar5 = bfd_close(pbVar4), iVar5 != 0))" ( (binary_expression "(iVar5 != 0) && (iVar5 = bfd_close(pbVar4), iVar5 != 0)" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar5 = bfd_close(pbVar4), iVar5 != 0)" ( (comma_expression "iVar5 = bfd_close(pbVar4), iVar5 != 0" (assignment_expression "iVar5 = bfd_close(pbVar4)" identifier = (call_expression "bfd_close(pbVar4)" identifier (argument_list "(pbVar4)" ( identifier )))) , (binary_expression "iVar5 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      output_bfd = (bfd *)0x0;\n      output_filename = (char *)0x0;\n      bfd_close(iarch);\n      iVar5 = smart_rename(from,pcVar3,0);\n      if (iVar5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        xexit(1);\n      }\n      free(pcVar3);\n      free(from);\n      return;\n    }" { (expression_statement "output_bfd = (bfd *)0x0;" (assignment_expression "output_bfd = (bfd *)0x0" identifier = (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "output_filename = (char *)0x0;" (assignment_expression "output_filename = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "bfd_close(iarch);" (call_expression "bfd_close(iarch)" identifier (argument_list "(iarch)" ( identifier ))) ;) (expression_statement "iVar5 = smart_rename(from,pcVar3,0);" (assignment_expression "iVar5 = smart_rename(from,pcVar3,0)" identifier = (call_expression "smart_rename(from,pcVar3,0)" identifier (argument_list "(from,pcVar3,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        xexit(1);\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        xexit(1);\n      }" { comment (expression_statement "xexit(1);" (call_expression "xexit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "free(from);" (call_expression "free(from)" identifier (argument_list "(from)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) comment (expression_statement "bfd_fatal(pcVar3);" (call_expression "bfd_fatal(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) })))
(translation_unit "void __regparm3 FUN_00015830(undefined4 *param_1)\n\n{\n  char *__dest;\n  void *__ptr;\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined4 auStackY_60 [9];\n  undefined4 uStack_34;\n  undefined1 auStack_2c [8];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1583b;\n  local_24 = param_1[0x24];\n  strlen((char *)*param_1);\n  __dest = (char *)xmalloc();\n  strcpy(__dest,(char *)*param_1);\n  __ptr = (void *)FUN_000186b0();\n  puVar3 = auStack_2c;\n  if (__ptr != (void *)0x0) {\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }\n  *(void **)(puVar3 + -4) = __ptr;\n  *(undefined4 *)(puVar3 + -8) = 5;\n  *(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";\n  puVar4 = puVar3 + -0x10;\n  *(undefined4 *)(puVar3 + -0x10) = 0;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159a5;\n  uVar2 = dcgettext();\n  *(undefined4 *)(puVar3 + -0x10) = uVar2;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159ad;\n  FUN_00017e60();\nLAB_000159ad:\n  *(undefined4 *)(puVar4 + -0x10) = 1;\n                    \n  *(undefined **)(puVar4 + -0x14) = &UNK_000159b7;\n  xexit();\n}\n\n" (function_definition "void __regparm3 FUN_00015830(undefined4 *param_1)\n\n{\n  char *__dest;\n  void *__ptr;\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined4 auStackY_60 [9];\n  undefined4 uStack_34;\n  undefined1 auStack_2c [8];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1583b;\n  local_24 = param_1[0x24];\n  strlen((char *)*param_1);\n  __dest = (char *)xmalloc();\n  strcpy(__dest,(char *)*param_1);\n  __ptr = (void *)FUN_000186b0();\n  puVar3 = auStack_2c;\n  if (__ptr != (void *)0x0) {\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }\n  *(void **)(puVar3 + -4) = __ptr;\n  *(undefined4 *)(puVar3 + -8) = 5;\n  *(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";\n  puVar4 = puVar3 + -0x10;\n  *(undefined4 *)(puVar3 + -0x10) = 0;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159a5;\n  uVar2 = dcgettext();\n  *(undefined4 *)(puVar3 + -0x10) = uVar2;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159ad;\n  FUN_00017e60();\nLAB_000159ad:\n  *(undefined4 *)(puVar4 + -0x10) = 1;\n                    \n  *(undefined **)(puVar4 + -0x14) = &UNK_000159b7;\n  xexit();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00015830(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *__dest;\n  void *__ptr;\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined4 auStackY_60 [9];\n  undefined4 uStack_34;\n  undefined1 auStack_2c [8];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1583b;\n  local_24 = param_1[0x24];\n  strlen((char *)*param_1);\n  __dest = (char *)xmalloc();\n  strcpy(__dest,(char *)*param_1);\n  __ptr = (void *)FUN_000186b0();\n  puVar3 = auStack_2c;\n  if (__ptr != (void *)0x0) {\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }\n  *(void **)(puVar3 + -4) = __ptr;\n  *(undefined4 *)(puVar3 + -8) = 5;\n  *(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";\n  puVar4 = puVar3 + -0x10;\n  *(undefined4 *)(puVar3 + -0x10) = 0;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159a5;\n  uVar2 = dcgettext();\n  *(undefined4 *)(puVar3 + -0x10) = uVar2;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159ad;\n  FUN_00017e60();\nLAB_000159ad:\n  *(undefined4 *)(puVar4 + -0x10) = 1;\n                    \n  *(undefined **)(puVar4 + -0x14) = &UNK_000159b7;\n  xexit();\n}" { (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 auStackY_60 [9];" type_identifier (array_declarator "auStackY_60 [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_34;" type_identifier identifier ;) (declaration "undefined1 auStack_2c [8];" type_identifier (array_declarator "auStack_2c [8]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1583b;" (assignment_expression "uStack_14 = 0x1583b" identifier = number_literal) ;) (expression_statement "local_24 = param_1[0x24];" (assignment_expression "local_24 = param_1[0x24]" identifier = (subscript_expression "param_1[0x24]" identifier [ number_literal ])) ;) (expression_statement "strlen((char *)*param_1);" (call_expression "strlen((char *)*param_1)" identifier (argument_list "((char *)*param_1)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "__dest = (char *)xmalloc();" (assignment_expression "__dest = (char *)xmalloc()" identifier = (cast_expression "(char *)xmalloc()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc()" identifier (argument_list "()" ( ))))) ;) (expression_statement "strcpy(__dest,(char *)*param_1);" (call_expression "strcpy(__dest,(char *)*param_1)" identifier (argument_list "(__dest,(char *)*param_1)" ( identifier , (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "__ptr = (void *)FUN_000186b0();" (assignment_expression "__ptr = (void *)FUN_000186b0()" identifier = (cast_expression "(void *)FUN_000186b0()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000186b0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "puVar3 = auStack_2c;" (assignment_expression "puVar3 = auStack_2c" identifier = identifier) ;) (if_statement "if (__ptr != (void *)0x0) {\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }" { (expression_statement "DAT_000212b0 = __ptr;" (assignment_expression "DAT_000212b0 = __ptr" identifier = identifier) ;) (expression_statement "iVar1 = bfd_openw();" (assignment_expression "iVar1 = bfd_openw()" identifier = (call_expression "bfd_openw()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }" { (expression_statement "local_20 = iVar1;" (assignment_expression "local_20 = iVar1" identifier = identifier) ;) (expression_statement "DAT_000212a8 = iVar1;" (assignment_expression "DAT_000212a8 = iVar1" identifier = identifier) ;) (expression_statement "bfd_set_format();" (call_expression "bfd_set_format()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;" (assignment_expression "*(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f" (pointer_expression "*(byte *)(local_20 + 0x2b)" * (cast_expression "(byte *)(local_20 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x2b)" ( (binary_expression "local_20 + 0x2b" identifier + number_literal) )))) = (binary_expression "(byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f" (call_expression "(byte)((~DAT_00021290 >> 0x1f) << 7)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((~DAT_00021290 >> 0x1f) << 7)" ( (binary_expression "(~DAT_00021290 >> 0x1f) << 7" (parenthesized_expression "(~DAT_00021290 >> 0x1f)" ( (binary_expression "~DAT_00021290 >> 0x1f" (unary_expression "~DAT_00021290" ~ identifier) >> number_literal) )) << number_literal) ))) | (binary_expression "*(byte *)(local_20 + 0x2b) & 0x7f" (pointer_expression "*(byte *)(local_20 + 0x2b)" * (cast_expression "(byte *)(local_20 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x2b)" ( (binary_expression "local_20 + 0x2b" identifier + number_literal) )))) & number_literal))) ;) (if_statement "if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }" if (parenthesized_expression "(DAT_000212c8 != 0)" ( (binary_expression "DAT_000212c8 != 0" identifier != number_literal) )) (compound_statement "{\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }" { (expression_statement "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;" (assignment_expression "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000" (pointer_expression "*(uint *)(local_20 + 0x28)" * (cast_expression "(uint *)(local_20 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x28)" ( (binary_expression "local_20 + 0x28" identifier + number_literal) )))) = (binary_expression "*(uint *)(local_20 + 0x28) | 0x8000" (pointer_expression "*(uint *)(local_20 + 0x28)" * (cast_expression "(uint *)(local_20 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x28)" ( (binary_expression "local_20 + 0x28" identifier + number_literal) )))) | number_literal)) ;) })) (if_statement "if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }" if (parenthesized_expression "(DAT_000211ac != 0)" ( (binary_expression "DAT_000211ac != 0" identifier != number_literal) )) (compound_statement "{\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }" { (expression_statement "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;" (assignment_expression "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000" (pointer_expression "*(uint *)(local_20 + 0x28)" * (cast_expression "(uint *)(local_20 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x28)" ( (binary_expression "local_20 + 0x28" identifier + number_literal) )))) = (binary_expression "*(uint *)(local_20 + 0x28) | 0x40000" (pointer_expression "*(uint *)(local_20 + 0x28)" * (cast_expression "(uint *)(local_20 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x28)" ( (binary_expression "local_20 + 0x28" identifier + number_literal) )))) | number_literal)) ;) })) (if_statement "if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }" if (parenthesized_expression "((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0))" ( (binary_expression "(DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)" (parenthesized_expression "(DAT_000212c0 != 0)" ( (binary_expression "DAT_000212c0 != 0" identifier != number_literal) )) || (parenthesized_expression "((*(byte *)(param_1 + 0xb) & 1) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0xb) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0xb) & 1)" ( (binary_expression "*(byte *)(param_1 + 0xb) & 1" (pointer_expression "*(byte *)(param_1 + 0xb)" * (cast_expression "(byte *)(param_1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }" { (expression_statement "*(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;" (assignment_expression "*(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1" (pointer_expression "*(byte *)(local_20 + 0x2c)" * (cast_expression "(byte *)(local_20 + 0x2c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x2c)" ( (binary_expression "local_20 + 0x2c" identifier + number_literal) )))) = (binary_expression "*(byte *)(local_20 + 0x2c) | 1" (pointer_expression "*(byte *)(local_20 + 0x2c)" * (cast_expression "(byte *)(local_20 + 0x2c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20 + 0x2c)" ( (binary_expression "local_20 + 0x2c" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "local_24 = local_20;" (assignment_expression "local_24 = local_20" identifier = identifier) ;) (expression_statement "iVar1 = bfd_set_archive_head();" (assignment_expression "iVar1 = bfd_set_archive_head()" identifier = (call_expression "bfd_set_archive_head()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = bfd_close(), iVar1 != 0)" ( (comma_expression "iVar1 = bfd_close(), iVar1 != 0" (assignment_expression "iVar1 = bfd_close()" identifier = (call_expression "bfd_close()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }" { (expression_statement "DAT_000212a8 = 0;" (assignment_expression "DAT_000212a8 = 0" identifier = number_literal) ;) (expression_statement "DAT_000212b0 = (void *)0x0;" (assignment_expression "DAT_000212b0 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "bfd_close();" (call_expression "bfd_close()" identifier (argument_list "()" ( ))) ;) (expression_statement "uStack_34 = 0;" (assignment_expression "uStack_34 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00017640();" (assignment_expression "iVar1 = FUN_00017640()" identifier = (call_expression "FUN_00017640()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar4 = auStack_2c;" (assignment_expression "puVar4 = auStack_2c" identifier = identifier) ;) (if_statement "if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          free(__dest);\n          free(__ptr);\n          return;\n        }" { (expression_statement "free(__dest);" (call_expression "free(__dest)" identifier (argument_list "(__dest)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })) (goto_statement "goto LAB_000159ad;" goto statement_identifier ;) })) })) (expression_statement "puVar3 = &stack0xffffffc4;" (assignment_expression "puVar3 = &stack0xffffffc4" identifier = (pointer_expression "&stack0xffffffc4" & identifier)) ;) (expression_statement "__ptr = (void *)FUN_00017e60();" (assignment_expression "__ptr = (void *)FUN_00017e60()" identifier = (cast_expression "(void *)FUN_00017e60()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00017e60()" identifier (argument_list "()" ( ))))) ;) })) (expression_statement "*(void **)(puVar3 + -4) = __ptr;" (assignment_expression "*(void **)(puVar3 + -4) = __ptr" (pointer_expression "*(void **)(puVar3 + -4)" * (cast_expression "(void **)(puVar3 + -4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -4)" ( (binary_expression "puVar3 + -4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar3 + -8) = 5;" (assignment_expression "*(undefined4 *)(puVar3 + -8) = 5" (pointer_expression "*(undefined4 *)(puVar3 + -8)" * (cast_expression "(undefined4 *)(puVar3 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -8)" ( (binary_expression "puVar3 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";" (assignment_expression "*(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive"" (pointer_expression "*(char **)(puVar3 + -0xc)" * (cast_expression "(char **)(puVar3 + -0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -0xc)" ( (binary_expression "puVar3 + -0xc" identifier + number_literal) )))) = (string_literal ""could not create temporary file whilst writing archive"" " string_content ")) ;) (expression_statement "puVar4 = puVar3 + -0x10;" (assignment_expression "puVar4 = puVar3 + -0x10" identifier = (binary_expression "puVar3 + -0x10" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar3 + -0x10) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + -0x10) = 0" (pointer_expression "*(undefined4 *)(puVar3 + -0x10)" * (cast_expression "(undefined4 *)(puVar3 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -0x10)" ( (binary_expression "puVar3 + -0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + -0x14) = 0x159a5;" (assignment_expression "*(undefined4 *)(puVar3 + -0x14) = 0x159a5" (pointer_expression "*(undefined4 *)(puVar3 + -0x14)" * (cast_expression "(undefined4 *)(puVar3 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -0x14)" ( (binary_expression "puVar3 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = dcgettext();" (assignment_expression "uVar2 = dcgettext()" identifier = (call_expression "dcgettext()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(puVar3 + -0x10) = uVar2;" (assignment_expression "*(undefined4 *)(puVar3 + -0x10) = uVar2" (pointer_expression "*(undefined4 *)(puVar3 + -0x10)" * (cast_expression "(undefined4 *)(puVar3 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -0x10)" ( (binary_expression "puVar3 + -0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar3 + -0x14) = 0x159ad;" (assignment_expression "*(undefined4 *)(puVar3 + -0x14) = 0x159ad" (pointer_expression "*(undefined4 *)(puVar3 + -0x14)" * (cast_expression "(undefined4 *)(puVar3 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -0x14)" ( (binary_expression "puVar3 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00017e60();" (call_expression "FUN_00017e60()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_000159ad:\n  *(undefined4 *)(puVar4 + -0x10) = 1;" statement_identifier : (expression_statement "*(undefined4 *)(puVar4 + -0x10) = 1;" (assignment_expression "*(undefined4 *)(puVar4 + -0x10) = 1" (pointer_expression "*(undefined4 *)(puVar4 + -0x10)" * (cast_expression "(undefined4 *)(puVar4 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x10)" ( (binary_expression "puVar4 + -0x10" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "*(undefined **)(puVar4 + -0x14) = &UNK_000159b7;" (assignment_expression "*(undefined **)(puVar4 + -0x14) = &UNK_000159b7" (pointer_expression "*(undefined **)(puVar4 + -0x14)" * (cast_expression "(undefined **)(puVar4 + -0x14)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + -0x14)" ( (binary_expression "puVar4 + -0x14" identifier + number_literal) )))) = (pointer_expression "&UNK_000159b7" & identifier)) ;) (expression_statement "xexit();" (call_expression "xexit()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) >> LIT) )) << LIT) ))) | (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm3 FUN_00015830(undefined4 *param_1)\n\n{\n  char *__dest;\n  void *__ptr;\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined4 auStackY_60 [9];\n  undefined4 uStack_34;\n  undefined1 auStack_2c [8];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1583b;\n  local_24 = param_1[0x24];\n  strlen((char *)*param_1);\n  __dest = (char *)xmalloc();\n  strcpy(__dest,(char *)*param_1);\n  __ptr = (void *)FUN_000186b0();\n  puVar3 = auStack_2c;\n  if (__ptr != (void *)0x0) {\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }\n  *(void **)(puVar3 + -4) = __ptr;\n  *(undefined4 *)(puVar3 + -8) = 5;\n  *(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";\n  puVar4 = puVar3 + -0x10;\n  *(undefined4 *)(puVar3 + -0x10) = 0;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159a5;\n  uVar2 = dcgettext();\n  *(undefined4 *)(puVar3 + -0x10) = uVar2;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159ad;\n  FUN_00017e60();\nLAB_000159ad:\n  *(undefined4 *)(puVar4 + -0x10) = 1;\n                    \n  *(undefined **)(puVar4 + -0x14) = &UNK_000159b7;\n  xexit();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00015830(undefined4 *param_1)" (identifier "FUN_00015830") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char *__dest;\n  void *__ptr;\n  int iVar1;\n  undefined4 uVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined4 auStackY_60 [9];\n  undefined4 uStack_34;\n  undefined1 auStack_2c [8];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1583b;\n  local_24 = param_1[0x24];\n  strlen((char *)*param_1);\n  __dest = (char *)xmalloc();\n  strcpy(__dest,(char *)*param_1);\n  __ptr = (void *)FUN_000186b0();\n  puVar3 = auStack_2c;\n  if (__ptr != (void *)0x0) {\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }\n  *(void **)(puVar3 + -4) = __ptr;\n  *(undefined4 *)(puVar3 + -8) = 5;\n  *(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";\n  puVar4 = puVar3 + -0x10;\n  *(undefined4 *)(puVar3 + -0x10) = 0;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159a5;\n  uVar2 = dcgettext();\n  *(undefined4 *)(puVar3 + -0x10) = uVar2;\n  *(undefined4 *)(puVar3 + -0x14) = 0x159ad;\n  FUN_00017e60();\nLAB_000159ad:\n  *(undefined4 *)(puVar4 + -0x10) = 1;\n                    \n  *(undefined **)(puVar4 + -0x14) = &UNK_000159b7;\n  xexit();\n}" ({ "{") (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 auStackY_60 [9];" (type_identifier "undefined4") (array_declarator "auStackY_60 [9]" (identifier "auStackY_60") ([ "[") (number_literal "9") (] "]")) (; ";")) (declaration "undefined4 uStack_34;" (type_identifier "undefined4") (identifier "uStack_34") (; ";")) (declaration "undefined1 auStack_2c [8];" (type_identifier "undefined1") (array_declarator "auStack_2c [8]" (identifier "auStack_2c") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1583b;" (assignment_expression "uStack_14 = 0x1583b" (identifier "uStack_14") (= "=") (number_literal "0x1583b")) (; ";")) (expression_statement "local_24 = param_1[0x24];" (assignment_expression "local_24 = param_1[0x24]" (identifier "local_24") (= "=") (subscript_expression "param_1[0x24]" (identifier "param_1") ([ "[") (number_literal "0x24") (] "]"))) (; ";")) (expression_statement "strlen((char *)*param_1);" (call_expression "strlen((char *)*param_1)" (identifier "strlen") (argument_list "((char *)*param_1)" (( "(") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (expression_statement "__dest = (char *)xmalloc();" (assignment_expression "__dest = (char *)xmalloc()" (identifier "__dest") (= "=") (cast_expression "(char *)xmalloc()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc()" (identifier "xmalloc") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "strcpy(__dest,(char *)*param_1);" (call_expression "strcpy(__dest,(char *)*param_1)" (identifier "strcpy") (argument_list "(__dest,(char *)*param_1)" (( "(") (identifier "__dest") (, ",") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (expression_statement "__ptr = (void *)FUN_000186b0();" (assignment_expression "__ptr = (void *)FUN_000186b0()" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_000186b0()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000186b0()" (identifier "FUN_000186b0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "puVar3 = auStack_2c;" (assignment_expression "puVar3 = auStack_2c" (identifier "puVar3") (= "=") (identifier "auStack_2c")) (; ";")) (if_statement "if (__ptr != (void *)0x0) {\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }" (if "if") (parenthesized_expression "(__ptr != (void *)0x0)" (( "(") (binary_expression "__ptr != (void *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    DAT_000212b0 = __ptr;\n    iVar1 = bfd_openw();\n    if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }\n    puVar3 = &stack0xffffffc4;\n    __ptr = (void *)FUN_00017e60();\n  }" ({ "{") (expression_statement "DAT_000212b0 = __ptr;" (assignment_expression "DAT_000212b0 = __ptr" (identifier "DAT_000212b0") (= "=") (identifier "__ptr")) (; ";")) (expression_statement "iVar1 = bfd_openw();" (assignment_expression "iVar1 = bfd_openw()" (identifier "iVar1") (= "=") (call_expression "bfd_openw()" (identifier "bfd_openw") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_20 = iVar1;\n      DAT_000212a8 = iVar1;\n      bfd_set_format();\n      *(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;\n      if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }\n      if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }\n      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }\n      local_24 = local_20;\n      iVar1 = bfd_set_archive_head();\n      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }\n    }" ({ "{") (expression_statement "local_20 = iVar1;" (assignment_expression "local_20 = iVar1" (identifier "local_20") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "DAT_000212a8 = iVar1;" (assignment_expression "DAT_000212a8 = iVar1" (identifier "DAT_000212a8") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "bfd_set_format();" (call_expression "bfd_set_format()" (identifier "bfd_set_format") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;" (assignment_expression "*(byte *)(local_20 + 0x2b) =\n           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f" (pointer_expression "*(byte *)(local_20 + 0x2b)" (* "*") (cast_expression "(byte *)(local_20 + 0x2b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20 + 0x2b)" (( "(") (binary_expression "local_20 + 0x2b" (identifier "local_20") (+ "+") (number_literal "0x2b")) () ")")))) (= "=") (binary_expression "(byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f" (call_expression "(byte)((~DAT_00021290 >> 0x1f) << 7)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((~DAT_00021290 >> 0x1f) << 7)" (( "(") (binary_expression "(~DAT_00021290 >> 0x1f) << 7" (parenthesized_expression "(~DAT_00021290 >> 0x1f)" (( "(") (binary_expression "~DAT_00021290 >> 0x1f" (unary_expression "~DAT_00021290" (~ "~") (identifier "DAT_00021290")) (>> ">>") (number_literal "0x1f")) () ")")) (<< "<<") (number_literal "7")) () ")"))) (| "|") (binary_expression "*(byte *)(local_20 + 0x2b) & 0x7f" (pointer_expression "*(byte *)(local_20 + 0x2b)" (* "*") (cast_expression "(byte *)(local_20 + 0x2b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20 + 0x2b)" (( "(") (binary_expression "local_20 + 0x2b" (identifier "local_20") (+ "+") (number_literal "0x2b")) () ")")))) (& "&") (number_literal "0x7f")))) (; ";")) (if_statement "if (DAT_000212c8 != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }" (if "if") (parenthesized_expression "(DAT_000212c8 != 0)" (( "(") (binary_expression "DAT_000212c8 != 0" (identifier "DAT_000212c8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;\n      }" ({ "{") (expression_statement "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;" (assignment_expression "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000" (pointer_expression "*(uint *)(local_20 + 0x28)" (* "*") (cast_expression "(uint *)(local_20 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20 + 0x28)" (( "(") (binary_expression "local_20 + 0x28" (identifier "local_20") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "*(uint *)(local_20 + 0x28) | 0x8000" (pointer_expression "*(uint *)(local_20 + 0x28)" (* "*") (cast_expression "(uint *)(local_20 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20 + 0x28)" (( "(") (binary_expression "local_20 + 0x28" (identifier "local_20") (+ "+") (number_literal "0x28")) () ")")))) (| "|") (number_literal "0x8000"))) (; ";")) (} "}"))) (if_statement "if (DAT_000211ac != 0) {\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }" (if "if") (parenthesized_expression "(DAT_000211ac != 0)" (( "(") (binary_expression "DAT_000211ac != 0" (identifier "DAT_000211ac") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;\n      }" ({ "{") (expression_statement "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;" (assignment_expression "*(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000" (pointer_expression "*(uint *)(local_20 + 0x28)" (* "*") (cast_expression "(uint *)(local_20 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20 + 0x28)" (( "(") (binary_expression "local_20 + 0x28" (identifier "local_20") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "*(uint *)(local_20 + 0x28) | 0x40000" (pointer_expression "*(uint *)(local_20 + 0x28)" (* "*") (cast_expression "(uint *)(local_20 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20 + 0x28)" (( "(") (binary_expression "local_20 + 0x28" (identifier "local_20") (+ "+") (number_literal "0x28")) () ")")))) (| "|") (number_literal "0x40000"))) (; ";")) (} "}"))) (if_statement "if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }" (if "if") (parenthesized_expression "((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0))" (( "(") (binary_expression "(DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)" (parenthesized_expression "(DAT_000212c0 != 0)" (( "(") (binary_expression "DAT_000212c0 != 0" (identifier "DAT_000212c0") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((*(byte *)(param_1 + 0xb) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0xb) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0xb) & 1)" (( "(") (binary_expression "*(byte *)(param_1 + 0xb) & 1" (pointer_expression "*(byte *)(param_1 + 0xb)" (* "*") (cast_expression "(byte *)(param_1 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;\n      }" ({ "{") (expression_statement "*(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;" (assignment_expression "*(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1" (pointer_expression "*(byte *)(local_20 + 0x2c)" (* "*") (cast_expression "(byte *)(local_20 + 0x2c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20 + 0x2c)" (( "(") (binary_expression "local_20 + 0x2c" (identifier "local_20") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (binary_expression "*(byte *)(local_20 + 0x2c) | 1" (pointer_expression "*(byte *)(local_20 + 0x2c)" (* "*") (cast_expression "(byte *)(local_20 + 0x2c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20 + 0x2c)" (( "(") (binary_expression "local_20 + 0x2c" (identifier "local_20") (+ "+") (number_literal "0x2c")) () ")")))) (| "|") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "local_24 = local_20;" (assignment_expression "local_24 = local_20" (identifier "local_24") (= "=") (identifier "local_20")) (; ";")) (expression_statement "iVar1 = bfd_set_archive_head();" (assignment_expression "iVar1 = bfd_set_archive_head()" (identifier "iVar1") (= "=") (call_expression "bfd_set_archive_head()" (identifier "bfd_set_archive_head") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }" (if "if") (parenthesized_expression "((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0))" (( "(") (binary_expression "(iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = bfd_close(), iVar1 != 0)" (( "(") (comma_expression "iVar1 = bfd_close(), iVar1 != 0" (assignment_expression "iVar1 = bfd_close()" (identifier "iVar1") (= "=") (call_expression "bfd_close()" (identifier "bfd_close") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        DAT_000212a8 = 0;\n        DAT_000212b0 = (void *)0x0;\n        bfd_close();\n        uStack_34 = 0;\n        iVar1 = FUN_00017640();\n        puVar4 = auStack_2c;\n        if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }\n        goto LAB_000159ad;\n      }" ({ "{") (expression_statement "DAT_000212a8 = 0;" (assignment_expression "DAT_000212a8 = 0" (identifier "DAT_000212a8") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_000212b0 = (void *)0x0;" (assignment_expression "DAT_000212b0 = (void *)0x0" (identifier "DAT_000212b0") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "bfd_close();" (call_expression "bfd_close()" (identifier "bfd_close") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uStack_34 = 0;" (assignment_expression "uStack_34 = 0" (identifier "uStack_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = FUN_00017640();" (assignment_expression "iVar1 = FUN_00017640()" (identifier "iVar1") (= "=") (call_expression "FUN_00017640()" (identifier "FUN_00017640") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar4 = auStack_2c;" (assignment_expression "puVar4 = auStack_2c" (identifier "puVar4") (= "=") (identifier "auStack_2c")) (; ";")) (if_statement "if (iVar1 == 0) {\n          free(__dest);\n          free(__ptr);\n          return;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          free(__dest);\n          free(__ptr);\n          return;\n        }" ({ "{") (expression_statement "free(__dest);" (call_expression "free(__dest)" (identifier "free") (argument_list "(__dest)" (( "(") (identifier "__dest") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_000159ad;" (goto "goto") (statement_identifier "LAB_000159ad") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar3 = &stack0xffffffc4;" (assignment_expression "puVar3 = &stack0xffffffc4" (identifier "puVar3") (= "=") (pointer_expression "&stack0xffffffc4" (& "&") (identifier "stack0xffffffc4"))) (; ";")) (expression_statement "__ptr = (void *)FUN_00017e60();" (assignment_expression "__ptr = (void *)FUN_00017e60()" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_00017e60()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00017e60()" (identifier "FUN_00017e60") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}"))) (expression_statement "*(void **)(puVar3 + -4) = __ptr;" (assignment_expression "*(void **)(puVar3 + -4) = __ptr" (pointer_expression "*(void **)(puVar3 + -4)" (* "*") (cast_expression "(void **)(puVar3 + -4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + -4)" (( "(") (binary_expression "puVar3 + -4" (identifier "puVar3") (+ "+") (number_literal "-4")) () ")")))) (= "=") (identifier "__ptr")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + -8) = 5;" (assignment_expression "*(undefined4 *)(puVar3 + -8) = 5" (pointer_expression "*(undefined4 *)(puVar3 + -8)" (* "*") (cast_expression "(undefined4 *)(puVar3 + -8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + -8)" (( "(") (binary_expression "puVar3 + -8" (identifier "puVar3") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "5")) (; ";")) (expression_statement "*(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";" (assignment_expression "*(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive"" (pointer_expression "*(char **)(puVar3 + -0xc)" (* "*") (cast_expression "(char **)(puVar3 + -0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + -0xc)" (( "(") (binary_expression "puVar3 + -0xc" (identifier "puVar3") (+ "+") (number_literal "-0xc")) () ")")))) (= "=") (string_literal ""could not create temporary file whilst writing archive"" (" """) (string_content "could not create temporary file whilst writing archive") (" """))) (; ";")) (expression_statement "puVar4 = puVar3 + -0x10;" (assignment_expression "puVar4 = puVar3 + -0x10" (identifier "puVar4") (= "=") (binary_expression "puVar3 + -0x10" (identifier "puVar3") (+ "+") (number_literal "-0x10"))) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + -0x10) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + -0x10) = 0" (pointer_expression "*(undefined4 *)(puVar3 + -0x10)" (* "*") (cast_expression "(undefined4 *)(puVar3 + -0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + -0x10)" (( "(") (binary_expression "puVar3 + -0x10" (identifier "puVar3") (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + -0x14) = 0x159a5;" (assignment_expression "*(undefined4 *)(puVar3 + -0x14) = 0x159a5" (pointer_expression "*(undefined4 *)(puVar3 + -0x14)" (* "*") (cast_expression "(undefined4 *)(puVar3 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + -0x14)" (( "(") (binary_expression "puVar3 + -0x14" (identifier "puVar3") (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x159a5")) (; ";")) (expression_statement "uVar2 = dcgettext();" (assignment_expression "uVar2 = dcgettext()" (identifier "uVar2") (= "=") (call_expression "dcgettext()" (identifier "dcgettext") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + -0x10) = uVar2;" (assignment_expression "*(undefined4 *)(puVar3 + -0x10) = uVar2" (pointer_expression "*(undefined4 *)(puVar3 + -0x10)" (* "*") (cast_expression "(undefined4 *)(puVar3 + -0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + -0x10)" (( "(") (binary_expression "puVar3 + -0x10" (identifier "puVar3") (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + -0x14) = 0x159ad;" (assignment_expression "*(undefined4 *)(puVar3 + -0x14) = 0x159ad" (pointer_expression "*(undefined4 *)(puVar3 + -0x14)" (* "*") (cast_expression "(undefined4 *)(puVar3 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + -0x14)" (( "(") (binary_expression "puVar3 + -0x14" (identifier "puVar3") (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x159ad")) (; ";")) (expression_statement "FUN_00017e60();" (call_expression "FUN_00017e60()" (identifier "FUN_00017e60") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_000159ad:\n  *(undefined4 *)(puVar4 + -0x10) = 1;" (statement_identifier "LAB_000159ad") (: ":") (expression_statement "*(undefined4 *)(puVar4 + -0x10) = 1;" (assignment_expression "*(undefined4 *)(puVar4 + -0x10) = 1" (pointer_expression "*(undefined4 *)(puVar4 + -0x10)" (* "*") (cast_expression "(undefined4 *)(puVar4 + -0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x10)" (( "(") (binary_expression "puVar4 + -0x10" (identifier "puVar4") (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (number_literal "1")) (; ";"))) (expression_statement "*(undefined **)(puVar4 + -0x14) = &UNK_000159b7;" (assignment_expression "*(undefined **)(puVar4 + -0x14) = &UNK_000159b7" (pointer_expression "*(undefined **)(puVar4 + -0x14)" (* "*") (cast_expression "(undefined **)(puVar4 + -0x14)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + -0x14)" (( "(") (binary_expression "puVar4 + -0x14" (identifier "puVar4") (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (pointer_expression "&UNK_000159b7" (& "&") (identifier "UNK_000159b7"))) (; ";")) (expression_statement "xexit();" (call_expression "xexit()" (identifier "xexit") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *iarch)

{
  type_1 *pbVar1;
  size_t var_3;
  char *pcVar3;
  char *var_6;
  type_1 *var_10;
  int var_16;
  
  pbVar1 = iarch->archive_next;
  var_3 = var_1(iarch->filename);
  pcVar3 = (char *)var_2(var_3 + 1);
  var_4(pcVar3,iarch->filename);
  var_6 = var_5(pcVar3);
  if (var_6 == (char *)0x0) {
    pcVar3 = (char *)var_7(0,"could not create temporary file whilst writing archive",5,0);
                    /* WARNING: Subroutine does not return */
    var_8(pcVar3);
  }
  output_filename = var_6;
  var_10 = (type_1 *)var_9(var_6,iarch->xvec->name);
  if (var_10 != (type_1 *)0x0) {
    output_bfd = var_10;
    var_11(var_10,2);
    var_10->field_0x2b = (byte)(((type_2)~write_armap >> 0x1f) << 7) | var_10->field_0x2b & 0x7f;
    if (var_12 != 0) {
      *(type_2 *)&var_10->field_0x28 = *(type_2 *)&var_10->field_0x28 | 0x8000;
    }
    if (var_13 != 0) {
      *(type_2 *)&var_10->field_0x28 = *(type_2 *)&var_10->field_0x28 | 0x40000;
    }
    if ((var_14 != 0) || ((iarch->field_0x2c & 1) != 0)) {
      var_10->field_0x2c = var_10->field_0x2c | 1;
    }
    var_16 = var_15(var_10,pbVar1);
    if ((var_16 != 0) && (var_16 = var_17(var_10), var_16 != 0)) {
      output_bfd = (type_1 *)0x0;
      output_filename = (char *)0x0;
      var_17(iarch);
      var_16 = var_18(var_6,pcVar3,0);
      if (var_16 != 0) {
                    /* WARNING: Subroutine does not return */
        var_19(1);
      }
      var_20(pcVar3);
      var_20(var_6);
      return;
    }
  }
                    /* WARNING: Subroutine does not return */
  var_8(pcVar3);
}


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

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

void __regparm3 MASKED(undefined4 *param_1)

{
  char *__dest;
  void *__ptr;
  int iVar1;
  undefined4 uVar2;
  undefined1 *puVar3;
  undefined1 *puVar4;
  undefined4 auStackY_60 [9];
  undefined4 uStack_34;
  undefined1 auStack_2c [8];
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1583b;
  local_24 = param_1[0x24];
  strlen((char *)*param_1);
  __dest = (char *)xmalloc();
  strcpy(__dest,(char *)*param_1);
  __ptr = (void *)FUN_000186b0();
  puVar3 = auStack_2c;
  if (__ptr != (void *)0x0) {
    DAT_000212b0 = __ptr;
    iVar1 = bfd_openw();
    if (iVar1 != 0) {
      local_20 = iVar1;
      DAT_000212a8 = iVar1;
      bfd_set_format();
      *(byte *)(local_20 + 0x2b) =
           (byte)((~DAT_00021290 >> 0x1f) << 7) | *(byte *)(local_20 + 0x2b) & 0x7f;
      if (DAT_000212c8 != 0) {
        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x8000;
      }
      if (DAT_000211ac != 0) {
        *(uint *)(local_20 + 0x28) = *(uint *)(local_20 + 0x28) | 0x40000;
      }
      if ((DAT_000212c0 != 0) || ((*(byte *)(param_1 + 0xb) & 1) != 0)) {
        *(byte *)(local_20 + 0x2c) = *(byte *)(local_20 + 0x2c) | 1;
      }
      local_24 = local_20;
      iVar1 = bfd_set_archive_head();
      if ((iVar1 != 0) && (iVar1 = bfd_close(), iVar1 != 0)) {
        DAT_000212a8 = 0;
        DAT_000212b0 = (void *)0x0;
        bfd_close();
        uStack_34 = 0;
        iVar1 = FUN_00017640();
        puVar4 = auStack_2c;
        if (iVar1 == 0) {
          free(__dest);
          free(__ptr);
          return;
        }
        goto LAB_000159ad;
      }
    }
    puVar3 = &stack0xffffffc4;
    __ptr = (void *)FUN_00017e60();
  }
  *(void **)(puVar3 + -4) = __ptr;
  *(undefined4 *)(puVar3 + -8) = 5;
  *(char **)(puVar3 + -0xc) = "could not create temporary file whilst writing archive";
  puVar4 = puVar3 + -0x10;
  *(undefined4 *)(puVar3 + -0x10) = 0;
  *(undefined4 *)(puVar3 + -0x14) = 0x159a5;
  uVar2 = dcgettext();
  *(undefined4 *)(puVar3 + -0x10) = uVar2;
  *(undefined4 *)(puVar3 + -0x14) = 0x159ad;
  FUN_00017e60();
LAB_000159ad:
  *(undefined4 *)(puVar4 + -0x10) = 1;
                    /* WARNING: Subroutine does not return */
  *(undefined **)(puVar4 + -0x14) = &UNK_000159b7;
  xexit();
}

