
void copy_section(bfd *ibfd,sec_ptr isection,void *obfdarg)

{
  bfd_byte *pbVar1;
  bfd_byte bVar2;
  asection *section;
  char *pcVar3;
  bfd_size_type bVar4;
  bfd_boolean bVar5;
  int iVar6;
  int iVar7;
  section_list *psVar8;
  bfd_byte *pbVar9;
  void *__s;
  char *format;
  ulong uVar10;
  ulong uVar11;
  bfd_byte *pbVar12;
  int iVar13;
  ulong uVar14;
  bfd_byte *pbVar15;
  bfd_byte *pbVar16;
  bfd_byte *pbVar17;
  ulong uVar18;
  long lVar19;
  ulong uVar20;
  bfd_byte *pbVar21;
  long lVar22;
  bfd_size_type size;
  bfd_byte *memhunk;
  
  bVar5 = skip_section(ibfd,isection,1);
  if (bVar5 == 0) {
    size = isection->size;
    section = isection->output_section;
    if (((isection->flags & 0x100) == 0) || ((section->flags & 0x100) == 0)) {
      psVar8 = find_section_list(isection->name,0,0x40);
      if ((psVar8 != (section_list *)0x0) && ((psVar8->flags & 0x100) != 0)) {
        __s = (void *)xmalloc(size);
        bVar4 = size;
        memset(__s,0,size);
        iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4);
        if (iVar7 == 0) {
          status = 1;
          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);
        }
        free(__s);
        return;
      }
    }
    else {
      memhunk = (bfd_byte *)0x0;
      iVar7 = bfd_get_full_section_contents(ibfd,isection,&memhunk);
      if ((iVar7 == 0) ||
         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),
         iVar7 = reverse_bytes, iVar6 == 0)) {
        status = 1;
        bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);
        free(memhunk);
      }
      else {
        if (reverse_bytes != 0) {
          uVar20 = (ulong)reverse_bytes;
          if (size % uVar20 != 0) {
            pcVar3 = isection->name;
            format = (char *)dcgettext(0,
                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"
                                       ,5);
                    /* WARNING: Subroutine does not return */
            fatal(format,pcVar3,(ulong)(uint)iVar7);
          }
          if (size != 0) {
            lVar19 = uVar20 - 1;
            iVar7 = reverse_bytes / 2;
            uVar14 = 0;
            uVar18 = (long)iVar7;
            do {
              uVar10 = uVar14;
              if ((long)iVar7 != 0) {
                do {
                  uVar11 = uVar10 + 1;
                  bVar2 = memhunk[uVar10];
                  memhunk[uVar10] = memhunk[lVar19 - uVar10];
                  memhunk[lVar19 - uVar10] = bVar2;
                  uVar10 = uVar11;
                } while (uVar11 != uVar18);
              }
              uVar14 = uVar14 + uVar20;
              lVar19 = lVar19 + uVar20 * 2;
              uVar18 = uVar18 + uVar20;
            } while (uVar14 < size);
          }
        }
        iVar6 = copy_byte;
        iVar7 = copy_width;
        if (-1 < copy_byte) {
          uVar20 = (ulong)interleave;
          lVar19 = (long)copy_byte;
          pbVar17 = memhunk + size;
          iVar13 = (int)(isection->lma % uVar20);
          pbVar21 = memhunk + (lVar19 - iVar13);
          if (copy_byte < iVar13) {
            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;
          }
          if (pbVar21 < pbVar17) {
            pbVar12 = pbVar21 + (copy_width - 1);
            lVar22 = (long)pbVar17 - (long)pbVar21;
            pbVar16 = memhunk;
            do {
              if ((0 < iVar7) && (pbVar21 < pbVar17)) {
                pbVar1 = pbVar16 + lVar22;
                pbVar9 = pbVar21;
                pbVar15 = pbVar16;
                do {
                  pbVar16 = pbVar15 + 1;
                  *pbVar15 = *pbVar9;
                  if (pbVar12 == pbVar9) break;
                  pbVar9 = pbVar9 + 1;
                  pbVar15 = pbVar16;
                } while (pbVar16 != pbVar1);
              }
              pbVar21 = pbVar21 + uVar20;
              pbVar12 = pbVar12 + uVar20;
              lVar22 = lVar22 - uVar20;
            } while (pbVar21 < pbVar17);
          }
          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);
          uVar20 = section->lma / uVar20;
          if (iVar6 < iVar13) {
            uVar20 = uVar20 + 1;
          }
          section->lma = uVar20;
        }
        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);
        if (iVar7 == 0) {
          status = 1;
          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);
          free(memhunk);
        }
        else {
          free(memhunk);
        }
      }
    }
  }
  return;
}



void FUN_00108850(undefined8 param_1,undefined8 *param_2,undefined8 param_3)

{
  undefined1 *puVar1;
  undefined1 uVar2;
  long lVar3;
  undefined8 uVar4;
  int iVar5;
  int iVar6;
  long lVar7;
  undefined1 *puVar8;
  void *__s;
  undefined8 uVar9;
  ulong uVar10;
  ulong uVar11;
  undefined1 *puVar12;
  int iVar13;
  ulong uVar14;
  undefined1 *puVar15;
  undefined1 *puVar16;
  undefined1 *puVar17;
  ulong uVar18;
  ulong uVar19;
  undefined1 *puVar20;
  long lVar21;
  ulong local_48;
  undefined1 *local_40 [2];
  
  iVar5 = FUN_001087b0(param_1,param_2,1);
  if (iVar5 == 0) {
    local_48 = param_2[7];
    lVar3 = param_2[0xd];
    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {
      lVar7 = FUN_00107360(*param_2,0,0x40);
      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {
        __s = (void *)xmalloc(local_48);
        uVar19 = local_48;
        memset(__s,0,local_48);
        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);
        if (iVar5 == 0) {
          DAT_0012cb24 = 1;
          FUN_0011c0d0(0,param_3,lVar3,0);
        }
        free(__s);
        return;
      }
    }
    else {
      local_40[0] = (undefined1 *)0x0;
      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);
      if ((iVar5 == 0) ||
         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),
         iVar5 = DAT_0012c9f0, iVar6 == 0)) {
        DAT_0012cb24 = 1;
        FUN_0011c0d0(0,param_1,param_2,0);
        free(local_40[0]);
      }
      else {
        if (DAT_0012c9f0 != 0) {
          uVar19 = (ulong)DAT_0012c9f0;
          if (local_48 % uVar19 != 0) {
            uVar4 = *param_2;
            uVar9 = dcgettext(0,
                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"
                              ,5);
                    /* WARNING: Subroutine does not return */
            FUN_0011b5c0(uVar9,uVar4,iVar5);
          }
          if (local_48 != 0) {
            lVar7 = uVar19 - 1;
            iVar5 = DAT_0012c9f0 / 2;
            uVar14 = 0;
            uVar18 = (long)iVar5;
            do {
              uVar10 = uVar14;
              if ((long)iVar5 != 0) {
                do {
                  uVar11 = uVar10 + 1;
                  uVar2 = local_40[0][uVar10];
                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];
                  local_40[0][lVar7 - uVar10] = uVar2;
                  uVar10 = uVar11;
                } while (uVar11 != uVar18);
              }
              uVar14 = uVar14 + uVar19;
              lVar7 = lVar7 + uVar19 * 2;
              uVar18 = uVar18 + uVar19;
            } while (uVar14 < local_48);
          }
        }
        iVar6 = DAT_0012b4bc;
        iVar5 = DAT_0012b4b8;
        if (-1 < DAT_0012b4bc) {
          uVar19 = (ulong)DAT_0012cb30;
          lVar7 = (long)DAT_0012b4bc;
          puVar17 = local_40[0] + local_48;
          iVar13 = (int)((ulong)param_2[6] % uVar19);
          puVar20 = local_40[0] + (lVar7 - iVar13);
          if (DAT_0012b4bc < iVar13) {
            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;
          }
          if (puVar20 < puVar17) {
            puVar12 = puVar20 + (DAT_0012b4b8 - 1);
            lVar21 = (long)puVar17 - (long)puVar20;
            puVar16 = local_40[0];
            do {
              if ((0 < iVar5) && (puVar20 < puVar17)) {
                puVar1 = puVar16 + lVar21;
                puVar8 = puVar20;
                puVar15 = puVar16;
                do {
                  puVar16 = puVar15 + 1;
                  *puVar15 = *puVar8;
                  if (puVar12 == puVar8) break;
                  puVar8 = puVar8 + 1;
                  puVar15 = puVar16;
                } while (puVar16 != puVar1);
              }
              puVar20 = puVar20 + uVar19;
              puVar12 = puVar12 + uVar19;
              lVar21 = lVar21 - uVar19;
            } while (puVar20 < puVar17);
          }
          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);
          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;
          if (iVar6 < iVar13) {
            uVar19 = uVar19 + 1;
          }
          *(ulong *)(lVar3 + 0x30) = uVar19;
        }
        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);
        if (iVar5 == 0) {
          DAT_0012cb24 = 1;
          FUN_0011c0d0(0,param_3,lVar3,0);
          free(local_40[0]);
        }
        else {
          free(local_40[0]);
        }
      }
    }
  }
  return;
}


PUSH R15
PUSH R14
PUSH R13
MOV R13,RDI
PUSH R12
MOV R12,RSI
PUSH RBP
MOV RBP,RDX
MOV EDX,0x1
PUSH RBX
SUB RSP,0x18
CALL 0x001087b0
TEST EAX,EAX
JNZ 0x001088b0
MOV RAX,qword ptr [R12 + 0x38]
MOV RBX,qword ptr [R12 + 0x68]
MOV qword ptr [RSP],RAX
TEST byte ptr [R12 + 0x21],0x1
JZ 0x00108891
TEST byte ptr [RBX + 0x21],0x1
JNZ 0x001088c0
MOV RDI,qword ptr [R12]
XOR ESI,ESI
MOV EDX,0x40
CALL 0x00107360
TEST RAX,RAX
JZ 0x001088b0
TEST byte ptr [RAX + 0x29],0x1
JNZ 0x00108aa0
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
LEA R14,[RSP + 0x8]
MOV RSI,R12
MOV RDI,R13
MOV qword ptr [RSP + 0x8],0x0
MOV RDX,R14
CALL 0x00104420
TEST EAX,EAX
JZ 0x00108b08
MOV R8,RSP
MOV RCX,R14
MOV RDX,RBP
MOV RSI,R12
MOV RDI,R13
CALL 0x001042d0
TEST EAX,EAX
JZ 0x00108b08
MOV RDI,qword ptr [RSP]
MOV R13D,dword ptr [0x0012c9f0]
MOV R8,RDI
TEST R13D,R13D
JZ 0x0010899d
MOVSXD R11,R13D
MOV RAX,RDI
XOR EDX,EDX
DIV R11
TEST RDX,RDX
JNZ 0x00108b5a
TEST RDI,RDI
JZ 0x0010899d
MOV EAX,R13D
LEA R14,[R11 + R11*0x1]
LEA R10,[R11 + -0x1]
SHR EAX,0x1f
ADD R13D,EAX
SAR R13D,0x1
MOVSXD R13,R13D
MOV R9,R13
NOP word ptr [RAX + RAX*0x1]
MOV RCX,RDX
TEST R13,R13
JZ 0x0010898c
NOP dword ptr [RAX + RAX*0x1]
MOV RAX,qword ptr [RSP + 0x8]
MOV R8,R10
SUB R8,RCX
LEA RSI,[RAX + RCX*0x1]
ADD RAX,R8
ADD RCX,0x1
MOVZX EDI,byte ptr [RSI]
MOVZX R8D,byte ptr [RAX]
MOV byte ptr [RSI],R8B
MOV byte ptr [RAX],DIL
CMP RCX,R9
JNZ 0x00108960
MOV RDI,qword ptr [RSP]
ADD RDX,R11
MOV R8,RDI
ADD R10,R14
ADD R9,R11
CMP RDI,RDX
JA 0x00108950
MOV R10D,dword ptr [0x0012b4bc]
MOV RSI,qword ptr [RSP + 0x8]
TEST R10D,R10D
JS 0x00108a79
MOVSXD R9,dword ptr [0x0012cb30]
XOR EDX,EDX
MOVSXD R11,R10D
ADD RDI,RSI
MOV RAX,qword ptr [R12 + 0x30]
MOV R14,R11
MOV R12D,dword ptr [0x0012b4b8]
DIV R9
MOVSXD RAX,EDX
MOV R13,RDX
SUB R14,RAX
ADD R14,RSI
CMP R10D,EDX
LEA RAX,[R14 + R9*0x1]
CMOVL R14,RAX
CMP RDI,R14
JBE 0x00108a47
LEA ECX,[R12 + -0x1]
MOV R15,RDI
ADD RCX,R14
SUB R15,R14
NOP dword ptr [RAX]
TEST R12D,R12D
JLE 0x00108a30
CMP RDI,R14
JBE 0x00108a30
MOV RAX,R14
LEA R8,[RSI + R15*0x1]
JMP 0x00108a21
ADD RAX,0x1
CMP RSI,R8
JZ 0x00108a30
MOVZX EDX,byte ptr [RAX]
ADD RSI,0x1
MOV byte ptr [RSI + -0x1],DL
CMP RCX,RAX
JNZ 0x00108a18
ADD R14,R9
ADD RCX,R9
SUB R15,R9
CMP RDI,R14
JA 0x00108a00
MOV R8,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x8]
LEA RAX,[R9 + -0x1]
XOR EDX,EDX
SUB RAX,R11
ADD RAX,R8
MOVSXD R8,R12D
DIV R9
XOR EDX,EDX
IMUL R8,RAX
MOV RAX,qword ptr [RBX + 0x30]
DIV R9
MOV qword ptr [RSP],R8
CMP R10D,R13D
LEA RDX,[RAX + 0x1]
CMOVL RAX,RDX
MOV qword ptr [RBX + 0x30],RAX
XOR ECX,ECX
MOV RDX,RSI
MOV RDI,RBP
MOV RSI,RBX
CALL 0x00104310
TEST EAX,EAX
JZ 0x00108b32
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00104920
JMP 0x001088b0
MOV RDI,qword ptr [RSP]
CALL 0x00104370
MOV R13,qword ptr [RSP]
XOR ESI,ESI
MOV R12,RAX
MOV RDI,RAX
MOV RDX,R13
CALL 0x00104340
XOR ECX,ECX
MOV R8,R13
MOV RDX,R12
MOV RSI,RBX
MOV RDI,RBP
CALL 0x00104310
TEST EAX,EAX
JNZ 0x00108aed
XOR ECX,ECX
MOV RDX,RBX
MOV RSI,RBP
XOR EDI,EDI
MOV dword ptr [0x0012cb24],0x1
CALL 0x0011c0d0
ADD RSP,0x18
MOV RDI,R12
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
JMP 0x00104920
XOR EDI,EDI
XOR ECX,ECX
MOV RDX,R12
MOV RSI,R13
MOV dword ptr [0x0012cb24],0x1
XOR EAX,EAX
CALL 0x0011c0d0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00104920
JMP 0x001088b0
XOR EDI,EDI
XOR ECX,ECX
MOV RDX,RBX
MOV RSI,RBP
MOV dword ptr [0x0012cb24],0x1
CALL 0x0011c0d0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00104920
JMP 0x001088b0
MOV RBX,qword ptr [R12]
MOV EDX,0x5
LEA RSI,[0x1211a8]
XOR EDI,EDI
CALL 0x00104240
MOV EDX,R13D
MOV RDI,RAX
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0011b5c0
(translation_unit "void FUN_00108850(undefined8 param_1,undefined8 *param_2,undefined8 param_3)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined1 *puVar8;\n  void *__s;\n  undefined8 uVar9;\n  ulong uVar10;\n  ulong uVar11;\n  undefined1 *puVar12;\n  int iVar13;\n  ulong uVar14;\n  undefined1 *puVar15;\n  undefined1 *puVar16;\n  undefined1 *puVar17;\n  ulong uVar18;\n  ulong uVar19;\n  undefined1 *puVar20;\n  long lVar21;\n  ulong local_48;\n  undefined1 *local_40 [2];\n  \n  iVar5 = FUN_001087b0(param_1,param_2,1);\n  if (iVar5 == 0) {\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00108850(undefined8 param_1,undefined8 *param_2,undefined8 param_3)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined1 *puVar8;\n  void *__s;\n  undefined8 uVar9;\n  ulong uVar10;\n  ulong uVar11;\n  undefined1 *puVar12;\n  int iVar13;\n  ulong uVar14;\n  undefined1 *puVar15;\n  undefined1 *puVar16;\n  undefined1 *puVar17;\n  ulong uVar18;\n  ulong uVar19;\n  undefined1 *puVar20;\n  long lVar21;\n  ulong local_48;\n  undefined1 *local_40 [2];\n  \n  iVar5 = FUN_001087b0(param_1,param_2,1);\n  if (iVar5 == 0) {\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00108850(undefined8 param_1,undefined8 *param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined1 *puVar8;\n  void *__s;\n  undefined8 uVar9;\n  ulong uVar10;\n  ulong uVar11;\n  undefined1 *puVar12;\n  int iVar13;\n  ulong uVar14;\n  undefined1 *puVar15;\n  undefined1 *puVar16;\n  undefined1 *puVar17;\n  ulong uVar18;\n  ulong uVar19;\n  undefined1 *puVar20;\n  long lVar21;\n  ulong local_48;\n  undefined1 *local_40 [2];\n  \n  iVar5 = FUN_001087b0(param_1,param_2,1);\n  if (iVar5 == 0) {\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "ulong uVar11;" type_identifier identifier ;) (declaration "undefined1 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "ulong uVar14;" type_identifier identifier ;) (declaration "undefined1 *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "undefined1 *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "undefined1 *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "ulong uVar18;" type_identifier identifier ;) (declaration "ulong uVar19;" type_identifier identifier ;) (declaration "undefined1 *puVar20;" type_identifier (pointer_declarator "*puVar20" * identifier) ;) (declaration "long lVar21;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong local_48;" type_identifier identifier ;) (declaration "undefined1 *local_40 [2];" type_identifier (pointer_declarator "*local_40 [2]" * (array_declarator "local_40 [2]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = FUN_001087b0(param_1,param_2,1);" (assignment_expression "iVar5 = FUN_001087b0(param_1,param_2,1)" identifier = (call_expression "FUN_001087b0(param_1,param_2,1)" identifier (argument_list "(param_1,param_2,1)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }" { (expression_statement "local_48 = param_2[7];" (assignment_expression "local_48 = param_2[7]" identifier = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "lVar3 = param_2[0xd];" (assignment_expression "lVar3 = param_2[0xd]" identifier = (subscript_expression "param_2[0xd]" identifier [ number_literal ])) ;) (if_statement "if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }" if (parenthesized_expression "(((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0))" ( (binary_expression "((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)" (parenthesized_expression "((*(byte *)((long)param_2 + 0x21) & 1) == 0)" ( (binary_expression "(*(byte *)((long)param_2 + 0x21) & 1) == 0" (parenthesized_expression "(*(byte *)((long)param_2 + 0x21) & 1)" ( (binary_expression "*(byte *)((long)param_2 + 0x21) & 1" (pointer_expression "*(byte *)((long)param_2 + 0x21)" * (cast_expression "(byte *)((long)param_2 + 0x21)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x21)" ( (binary_expression "(long)param_2 + 0x21" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "((*(byte *)(lVar3 + 0x21) & 1) == 0)" ( (binary_expression "(*(byte *)(lVar3 + 0x21) & 1) == 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x21) & 1)" ( (binary_expression "*(byte *)(lVar3 + 0x21) & 1" (pointer_expression "*(byte *)(lVar3 + 0x21)" * (cast_expression "(byte *)(lVar3 + 0x21)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x21)" ( (binary_expression "lVar3 + 0x21" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }" { (expression_statement "lVar7 = FUN_00107360(*param_2,0,0x40);" (assignment_expression "lVar7 = FUN_00107360(*param_2,0,0x40)" identifier = (call_expression "FUN_00107360(*param_2,0,0x40)" identifier (argument_list "(*param_2,0,0x40)" ( (pointer_expression "*param_2" * identifier) , number_literal , number_literal )))) ;) (if_statement "if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }" if (parenthesized_expression "((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0))" ( (binary_expression "(lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)" (parenthesized_expression "(lVar7 != 0)" ( (binary_expression "lVar7 != 0" identifier != number_literal) )) && (parenthesized_expression "((*(byte *)(lVar7 + 0x29) & 1) != 0)" ( (binary_expression "(*(byte *)(lVar7 + 0x29) & 1) != 0" (parenthesized_expression "(*(byte *)(lVar7 + 0x29) & 1)" ( (binary_expression "*(byte *)(lVar7 + 0x29) & 1" (pointer_expression "*(byte *)(lVar7 + 0x29)" * (cast_expression "(byte *)(lVar7 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar7 + 0x29)" ( (binary_expression "lVar7 + 0x29" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }" { (expression_statement "__s = (void *)xmalloc(local_48);" (assignment_expression "__s = (void *)xmalloc(local_48)" identifier = (cast_expression "(void *)xmalloc(local_48)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(local_48)" identifier (argument_list "(local_48)" ( identifier ))))) ;) (expression_statement "uVar19 = local_48;" (assignment_expression "uVar19 = local_48" identifier = identifier) ;) (expression_statement "memset(__s,0,local_48);" (call_expression "memset(__s,0,local_48)" identifier (argument_list "(__s,0,local_48)" ( identifier , number_literal , identifier ))) ;) (expression_statement "iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);" (assignment_expression "iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19)" identifier = (call_expression "bfd_set_section_contents(param_3,lVar3,__s,0,uVar19)" identifier (argument_list "(param_3,lVar3,__s,0,uVar19)" ( identifier , identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }" { (expression_statement "DAT_0012cb24 = 1;" (assignment_expression "DAT_0012cb24 = 1" identifier = number_literal) ;) (expression_statement "FUN_0011c0d0(0,param_3,lVar3,0);" (call_expression "FUN_0011c0d0(0,param_3,lVar3,0)" identifier (argument_list "(0,param_3,lVar3,0)" ( number_literal , identifier , identifier , number_literal ))) ;) })) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }" else (compound_statement "{\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }" { (expression_statement "local_40[0] = (undefined1 *)0x0;" (assignment_expression "local_40[0] = (undefined1 *)0x0" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);" (assignment_expression "iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40)" identifier = (call_expression "bfd_get_full_section_contents(param_1,param_2,local_40)" identifier (argument_list "(param_1,param_2,local_40)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }" if (parenthesized_expression "((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0))" ( (binary_expression "(iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)" (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)" ( (comma_expression "iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0" (assignment_expression "iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48)" identifier = (call_expression "bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48)" identifier (argument_list "(param_1,param_2,param_3,local_40,&local_48)" ( identifier , identifier , identifier , identifier , (pointer_expression "&local_48" & identifier) )))) , (comma_expression "iVar5 = DAT_0012c9f0, iVar6 == 0" (assignment_expression "iVar5 = DAT_0012c9f0" identifier = identifier) , (binary_expression "iVar6 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }" { (expression_statement "DAT_0012cb24 = 1;" (assignment_expression "DAT_0012cb24 = 1" identifier = number_literal) ;) (expression_statement "FUN_0011c0d0(0,param_1,param_2,0);" (call_expression "FUN_0011c0d0(0,param_1,param_2,0)" identifier (argument_list "(0,param_1,param_2,0)" ( number_literal , identifier , identifier , number_literal ))) ;) (expression_statement "free(local_40[0]);" (call_expression "free(local_40[0])" identifier (argument_list "(local_40[0])" ( (subscript_expression "local_40[0]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }" else (compound_statement "{\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }" { (if_statement "if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }" if (parenthesized_expression "(DAT_0012c9f0 != 0)" ( (binary_expression "DAT_0012c9f0 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }" { (expression_statement "uVar19 = (ulong)DAT_0012c9f0;" (assignment_expression "uVar19 = (ulong)DAT_0012c9f0" identifier = (cast_expression "(ulong)DAT_0012c9f0" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }" if (parenthesized_expression "(local_48 % uVar19 != 0)" ( (binary_expression "local_48 % uVar19 != 0" (binary_expression "local_48 % uVar19" identifier % identifier) != number_literal) )) (compound_statement "{\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    /* WARNING: Subroutine does not return */\n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }" { (expression_statement "uVar4 = *param_2;" (assignment_expression "uVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);" (assignment_expression "uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5)" identifier = (call_expression "dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5)" identifier (argument_list "(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5)" ( number_literal , (string_literal ""cannot reverse bytes: length of section %s must be evenly divisible by %d"" " string_content ") , number_literal )))) ;) comment (expression_statement "FUN_0011b5c0(uVar9,uVar4,iVar5);" (call_expression "FUN_0011b5c0(uVar9,uVar4,iVar5)" identifier (argument_list "(uVar9,uVar4,iVar5)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }" if (parenthesized_expression "(local_48 != 0)" ( (binary_expression "local_48 != 0" identifier != number_literal) )) (compound_statement "{\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }" { (expression_statement "lVar7 = uVar19 - 1;" (assignment_expression "lVar7 = uVar19 - 1" identifier = (binary_expression "uVar19 - 1" identifier - number_literal)) ;) (expression_statement "iVar5 = DAT_0012c9f0 / 2;" (assignment_expression "iVar5 = DAT_0012c9f0 / 2" identifier = (binary_expression "DAT_0012c9f0 / 2" identifier / number_literal)) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (expression_statement "uVar18 = (long)iVar5;" (assignment_expression "uVar18 = (long)iVar5" identifier = (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (do_statement "do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);" do (compound_statement "{\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            }" { (expression_statement "uVar10 = uVar14;" (assignment_expression "uVar10 = uVar14" identifier = identifier) ;) (if_statement "if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }" if (parenthesized_expression "((long)iVar5 != 0)" ( (binary_expression "(long)iVar5 != 0" (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) != number_literal) )) (compound_statement "{\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }" { (do_statement "do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);" do (compound_statement "{\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                }" { (expression_statement "uVar11 = uVar10 + 1;" (assignment_expression "uVar11 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = local_40[0][uVar10];" (assignment_expression "uVar2 = local_40[0][uVar10]" identifier = (subscript_expression "local_40[0][uVar10]" (subscript_expression "local_40[0]" identifier [ number_literal ]) [ identifier ])) ;) (expression_statement "local_40[0][uVar10] = local_40[0][lVar7 - uVar10];" (assignment_expression "local_40[0][uVar10] = local_40[0][lVar7 - uVar10]" (subscript_expression "local_40[0][uVar10]" (subscript_expression "local_40[0]" identifier [ number_literal ]) [ identifier ]) = (subscript_expression "local_40[0][lVar7 - uVar10]" (subscript_expression "local_40[0]" identifier [ number_literal ]) [ (binary_expression "lVar7 - uVar10" identifier - identifier) ])) ;) (expression_statement "local_40[0][lVar7 - uVar10] = uVar2;" (assignment_expression "local_40[0][lVar7 - uVar10] = uVar2" (subscript_expression "local_40[0][lVar7 - uVar10]" (subscript_expression "local_40[0]" identifier [ number_literal ]) [ (binary_expression "lVar7 - uVar10" identifier - identifier) ]) = identifier) ;) (expression_statement "uVar10 = uVar11;" (assignment_expression "uVar10 = uVar11" identifier = identifier) ;) }) while (parenthesized_expression "(uVar11 != uVar18)" ( (binary_expression "uVar11 != uVar18" identifier != identifier) )) ;) })) (expression_statement "uVar14 = uVar14 + uVar19;" (assignment_expression "uVar14 = uVar14 + uVar19" identifier = (binary_expression "uVar14 + uVar19" identifier + identifier)) ;) (expression_statement "lVar7 = lVar7 + uVar19 * 2;" (assignment_expression "lVar7 = lVar7 + uVar19 * 2" identifier = (binary_expression "lVar7 + uVar19 * 2" identifier + (binary_expression "uVar19 * 2" identifier * number_literal))) ;) (expression_statement "uVar18 = uVar18 + uVar19;" (assignment_expression "uVar18 = uVar18 + uVar19" identifier = (binary_expression "uVar18 + uVar19" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar14 < local_48)" ( (binary_expression "uVar14 < local_48" identifier < identifier) )) ;) })) })) (expression_statement "iVar6 = DAT_0012b4bc;" (assignment_expression "iVar6 = DAT_0012b4bc" identifier = identifier) ;) (expression_statement "iVar5 = DAT_0012b4b8;" (assignment_expression "iVar5 = DAT_0012b4b8" identifier = identifier) ;) (if_statement "if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }" if (parenthesized_expression "(-1 < DAT_0012b4bc)" ( (binary_expression "-1 < DAT_0012b4bc" number_literal < identifier) )) (compound_statement "{\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }" { (expression_statement "uVar19 = (ulong)DAT_0012cb30;" (assignment_expression "uVar19 = (ulong)DAT_0012cb30" identifier = (cast_expression "(ulong)DAT_0012cb30" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "lVar7 = (long)DAT_0012b4bc;" (assignment_expression "lVar7 = (long)DAT_0012b4bc" identifier = (cast_expression "(long)DAT_0012b4bc" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "puVar17 = local_40[0] + local_48;" (assignment_expression "puVar17 = local_40[0] + local_48" identifier = (binary_expression "local_40[0] + local_48" (subscript_expression "local_40[0]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "iVar13 = (int)((ulong)param_2[6] % uVar19);" (assignment_expression "iVar13 = (int)((ulong)param_2[6] % uVar19)" identifier = (cast_expression "(int)((ulong)param_2[6] % uVar19)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulong)param_2[6] % uVar19)" ( (binary_expression "(ulong)param_2[6] % uVar19" (cast_expression "(ulong)param_2[6]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_2[6]" identifier [ number_literal ])) % identifier) )))) ;) (expression_statement "puVar20 = local_40[0] + (lVar7 - iVar13);" (assignment_expression "puVar20 = local_40[0] + (lVar7 - iVar13)" identifier = (binary_expression "local_40[0] + (lVar7 - iVar13)" (subscript_expression "local_40[0]" identifier [ number_literal ]) + (parenthesized_expression "(lVar7 - iVar13)" ( (binary_expression "lVar7 - iVar13" identifier - identifier) )))) ;) (if_statement "if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }" if (parenthesized_expression "(DAT_0012b4bc < iVar13)" ( (binary_expression "DAT_0012b4bc < iVar13" identifier < identifier) )) (compound_statement "{\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }" { (expression_statement "puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;" (assignment_expression "puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19" identifier = (binary_expression "local_40[0] + (lVar7 - iVar13) + uVar19" (binary_expression "local_40[0] + (lVar7 - iVar13)" (subscript_expression "local_40[0]" identifier [ number_literal ]) + (parenthesized_expression "(lVar7 - iVar13)" ( (binary_expression "lVar7 - iVar13" identifier - identifier) ))) + identifier)) ;) })) (if_statement "if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }" if (parenthesized_expression "(puVar20 < puVar17)" ( (binary_expression "puVar20 < puVar17" identifier < identifier) )) (compound_statement "{\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }" { (expression_statement "puVar12 = puVar20 + (DAT_0012b4b8 - 1);" (assignment_expression "puVar12 = puVar20 + (DAT_0012b4b8 - 1)" identifier = (binary_expression "puVar20 + (DAT_0012b4b8 - 1)" identifier + (parenthesized_expression "(DAT_0012b4b8 - 1)" ( (binary_expression "DAT_0012b4b8 - 1" identifier - number_literal) )))) ;) (expression_statement "lVar21 = (long)puVar17 - (long)puVar20;" (assignment_expression "lVar21 = (long)puVar17 - (long)puVar20" identifier = (binary_expression "(long)puVar17 - (long)puVar20" (cast_expression "(long)puVar17" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)puVar20" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "puVar16 = local_40[0];" (assignment_expression "puVar16 = local_40[0]" identifier = (subscript_expression "local_40[0]" identifier [ number_literal ])) ;) (do_statement "do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);" do (compound_statement "{\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            }" { (if_statement "if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }" if (parenthesized_expression "((0 < iVar5) && (puVar20 < puVar17))" ( (binary_expression "(0 < iVar5) && (puVar20 < puVar17)" (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) && (parenthesized_expression "(puVar20 < puVar17)" ( (binary_expression "puVar20 < puVar17" identifier < identifier) ))) )) (compound_statement "{\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }" { (expression_statement "puVar1 = puVar16 + lVar21;" (assignment_expression "puVar1 = puVar16 + lVar21" identifier = (binary_expression "puVar16 + lVar21" identifier + identifier)) ;) (expression_statement "puVar8 = puVar20;" (assignment_expression "puVar8 = puVar20" identifier = identifier) ;) (expression_statement "puVar15 = puVar16;" (assignment_expression "puVar15 = puVar16" identifier = identifier) ;) (do_statement "do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);" do (compound_statement "{\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                }" { (expression_statement "puVar16 = puVar15 + 1;" (assignment_expression "puVar16 = puVar15 + 1" identifier = (binary_expression "puVar15 + 1" identifier + number_literal)) ;) (expression_statement "*puVar15 = *puVar8;" (assignment_expression "*puVar15 = *puVar8" (pointer_expression "*puVar15" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (if_statement "if (puVar12 == puVar8) break;" if (parenthesized_expression "(puVar12 == puVar8)" ( (binary_expression "puVar12 == puVar8" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) (expression_statement "puVar15 = puVar16;" (assignment_expression "puVar15 = puVar16" identifier = identifier) ;) }) while (parenthesized_expression "(puVar16 != puVar1)" ( (binary_expression "puVar16 != puVar1" identifier != identifier) )) ;) })) (expression_statement "puVar20 = puVar20 + uVar19;" (assignment_expression "puVar20 = puVar20 + uVar19" identifier = (binary_expression "puVar20 + uVar19" identifier + identifier)) ;) (expression_statement "puVar12 = puVar12 + uVar19;" (assignment_expression "puVar12 = puVar12 + uVar19" identifier = (binary_expression "puVar12 + uVar19" identifier + identifier)) ;) (expression_statement "lVar21 = lVar21 - uVar19;" (assignment_expression "lVar21 = lVar21 - uVar19" identifier = (binary_expression "lVar21 - uVar19" identifier - identifier)) ;) }) while (parenthesized_expression "(puVar20 < puVar17)" ( (binary_expression "puVar20 < puVar17" identifier < identifier) )) ;) })) (expression_statement "local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);" (assignment_expression "local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19)" identifier = (binary_expression "(long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19)" (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * (parenthesized_expression "((((uVar19 - 1) - lVar7) + local_48) / uVar19)" ( (binary_expression "(((uVar19 - 1) - lVar7) + local_48) / uVar19" (parenthesized_expression "(((uVar19 - 1) - lVar7) + local_48)" ( (binary_expression "((uVar19 - 1) - lVar7) + local_48" (parenthesized_expression "((uVar19 - 1) - lVar7)" ( (binary_expression "(uVar19 - 1) - lVar7" (parenthesized_expression "(uVar19 - 1)" ( (binary_expression "uVar19 - 1" identifier - number_literal) )) - identifier) )) + identifier) )) / identifier) )))) ;) (expression_statement "uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;" (assignment_expression "uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19" identifier = (binary_expression "*(ulong *)(lVar3 + 0x30) / uVar19" (pointer_expression "*(ulong *)(lVar3 + 0x30)" * (cast_expression "(ulong *)(lVar3 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) / identifier)) ;) (if_statement "if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }" if (parenthesized_expression "(iVar6 < iVar13)" ( (binary_expression "iVar6 < iVar13" identifier < identifier) )) (compound_statement "{\n            uVar19 = uVar19 + 1;\n          }" { (expression_statement "uVar19 = uVar19 + 1;" (assignment_expression "uVar19 = uVar19 + 1" identifier = (binary_expression "uVar19 + 1" identifier + number_literal)) ;) })) (expression_statement "*(ulong *)(lVar3 + 0x30) = uVar19;" (assignment_expression "*(ulong *)(lVar3 + 0x30) = uVar19" (pointer_expression "*(ulong *)(lVar3 + 0x30)" * (cast_expression "(ulong *)(lVar3 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);" (assignment_expression "iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0)" identifier = (call_expression "bfd_set_section_contents(param_3,lVar3,local_40[0],0)" identifier (argument_list "(param_3,lVar3,local_40[0],0)" ( identifier , identifier , (subscript_expression "local_40[0]" identifier [ number_literal ]) , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }" { (expression_statement "DAT_0012cb24 = 1;" (assignment_expression "DAT_0012cb24 = 1" identifier = number_literal) ;) (expression_statement "FUN_0011c0d0(0,param_3,lVar3,0);" (call_expression "FUN_0011c0d0(0,param_3,lVar3,0)" identifier (argument_list "(0,param_3,lVar3,0)" ( number_literal , identifier , identifier , number_literal ))) ;) (expression_statement "free(local_40[0]);" (call_expression "free(local_40[0])" identifier (argument_list "(local_40[0])" ( (subscript_expression "local_40[0]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n          free(local_40[0]);\n        }" else (compound_statement "{\n          free(local_40[0]);\n        }" { (expression_statement "free(local_40[0]);" (call_expression "free(local_40[0])" identifier (argument_list "(local_40[0])" ( (subscript_expression "local_40[0]" identifier [ number_literal ]) ))) ;) }))) }))) }))) })) (return_statement "return;" return ;) })))
(translation_unit "void copy_section(bfd *ibfd,sec_ptr isection,void *obfdarg)\n\n{\n  bfd_byte *pbVar1;\n  bfd_byte bVar2;\n  asection *section;\n  char *pcVar3;\n  bfd_size_type bVar4;\n  bfd_boolean bVar5;\n  int iVar6;\n  int iVar7;\n  section_list *psVar8;\n  bfd_byte *pbVar9;\n  void *__s;\n  char *format;\n  ulong uVar10;\n  ulong uVar11;\n  bfd_byte *pbVar12;\n  int iVar13;\n  ulong uVar14;\n  bfd_byte *pbVar15;\n  bfd_byte *pbVar16;\n  bfd_byte *pbVar17;\n  ulong uVar18;\n  long lVar19;\n  ulong uVar20;\n  bfd_byte *pbVar21;\n  long lVar22;\n  bfd_size_type size;\n  bfd_byte *memhunk;\n  \n  bVar5 = skip_section(ibfd,isection,1);\n  if (bVar5 == 0) {\n    size = isection->size;\n    section = isection->output_section;\n    if (((isection->flags & 0x100) == 0) || ((section->flags & 0x100) == 0)) {\n      psVar8 = find_section_list(isection->name,0,0x40);\n      if ((psVar8 != (section_list *)0x0) && ((psVar8->flags & 0x100) != 0)) {\n        __s = (void *)xmalloc(size);\n        bVar4 = size;\n        memset(__s,0,size);\n        iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      memhunk = (bfd_byte *)0x0;\n      iVar7 = bfd_get_full_section_contents(ibfd,isection,&memhunk);\n      if ((iVar7 == 0) ||\n         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0)) {\n        status = 1;\n        bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);\n        free(memhunk);\n      }\n      else {\n        if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }\n        iVar6 = copy_byte;\n        iVar7 = copy_width;\n        if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }\n        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void copy_section(bfd *ibfd,sec_ptr isection,void *obfdarg)\n\n{\n  bfd_byte *pbVar1;\n  bfd_byte bVar2;\n  asection *section;\n  char *pcVar3;\n  bfd_size_type bVar4;\n  bfd_boolean bVar5;\n  int iVar6;\n  int iVar7;\n  section_list *psVar8;\n  bfd_byte *pbVar9;\n  void *__s;\n  char *format;\n  ulong uVar10;\n  ulong uVar11;\n  bfd_byte *pbVar12;\n  int iVar13;\n  ulong uVar14;\n  bfd_byte *pbVar15;\n  bfd_byte *pbVar16;\n  bfd_byte *pbVar17;\n  ulong uVar18;\n  long lVar19;\n  ulong uVar20;\n  bfd_byte *pbVar21;\n  long lVar22;\n  bfd_size_type size;\n  bfd_byte *memhunk;\n  \n  bVar5 = skip_section(ibfd,isection,1);\n  if (bVar5 == 0) {\n    size = isection->size;\n    section = isection->output_section;\n    if (((isection->flags & 0x100) == 0) || ((section->flags & 0x100) == 0)) {\n      psVar8 = find_section_list(isection->name,0,0x40);\n      if ((psVar8 != (section_list *)0x0) && ((psVar8->flags & 0x100) != 0)) {\n        __s = (void *)xmalloc(size);\n        bVar4 = size;\n        memset(__s,0,size);\n        iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      memhunk = (bfd_byte *)0x0;\n      iVar7 = bfd_get_full_section_contents(ibfd,isection,&memhunk);\n      if ((iVar7 == 0) ||\n         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0)) {\n        status = 1;\n        bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);\n        free(memhunk);\n      }\n      else {\n        if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }\n        iVar6 = copy_byte;\n        iVar7 = copy_width;\n        if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }\n        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "copy_section(bfd *ibfd,sec_ptr isection,void *obfdarg)" identifier (parameter_list "(bfd *ibfd,sec_ptr isection,void *obfdarg)" ( (parameter_declaration "bfd *ibfd" type_identifier (pointer_declarator "*ibfd" * identifier)) , (parameter_declaration "sec_ptr isection" type_identifier identifier) , (parameter_declaration "void *obfdarg" primitive_type (pointer_declarator "*obfdarg" * identifier)) ))) (compound_statement "{\n  bfd_byte *pbVar1;\n  bfd_byte bVar2;\n  asection *section;\n  char *pcVar3;\n  bfd_size_type bVar4;\n  bfd_boolean bVar5;\n  int iVar6;\n  int iVar7;\n  section_list *psVar8;\n  bfd_byte *pbVar9;\n  void *__s;\n  char *format;\n  ulong uVar10;\n  ulong uVar11;\n  bfd_byte *pbVar12;\n  int iVar13;\n  ulong uVar14;\n  bfd_byte *pbVar15;\n  bfd_byte *pbVar16;\n  bfd_byte *pbVar17;\n  ulong uVar18;\n  long lVar19;\n  ulong uVar20;\n  bfd_byte *pbVar21;\n  long lVar22;\n  bfd_size_type size;\n  bfd_byte *memhunk;\n  \n  bVar5 = skip_section(ibfd,isection,1);\n  if (bVar5 == 0) {\n    size = isection->size;\n    section = isection->output_section;\n    if (((isection->flags & 0x100) == 0) || ((section->flags & 0x100) == 0)) {\n      psVar8 = find_section_list(isection->name,0,0x40);\n      if ((psVar8 != (section_list *)0x0) && ((psVar8->flags & 0x100) != 0)) {\n        __s = (void *)xmalloc(size);\n        bVar4 = size;\n        memset(__s,0,size);\n        iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      memhunk = (bfd_byte *)0x0;\n      iVar7 = bfd_get_full_section_contents(ibfd,isection,&memhunk);\n      if ((iVar7 == 0) ||\n         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0)) {\n        status = 1;\n        bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);\n        free(memhunk);\n      }\n      else {\n        if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }\n        iVar6 = copy_byte;\n        iVar7 = copy_width;\n        if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }\n        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }\n      }\n    }\n  }\n  return;\n}" { (declaration "bfd_byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "bfd_byte bVar2;" type_identifier identifier ;) (declaration "asection *section;" type_identifier (pointer_declarator "*section" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "bfd_size_type bVar4;" type_identifier identifier ;) (declaration "bfd_boolean bVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "section_list *psVar8;" type_identifier (pointer_declarator "*psVar8" * identifier) ;) (declaration "bfd_byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "ulong uVar11;" type_identifier identifier ;) (declaration "bfd_byte *pbVar12;" type_identifier (pointer_declarator "*pbVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "ulong uVar14;" type_identifier identifier ;) (declaration "bfd_byte *pbVar15;" type_identifier (pointer_declarator "*pbVar15" * identifier) ;) (declaration "bfd_byte *pbVar16;" type_identifier (pointer_declarator "*pbVar16" * identifier) ;) (declaration "bfd_byte *pbVar17;" type_identifier (pointer_declarator "*pbVar17" * identifier) ;) (declaration "ulong uVar18;" type_identifier identifier ;) (declaration "long lVar19;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar20;" type_identifier identifier ;) (declaration "bfd_byte *pbVar21;" type_identifier (pointer_declarator "*pbVar21" * identifier) ;) (declaration "long lVar22;" (sized_type_specifier "long" long) identifier ;) (declaration "bfd_size_type size;" type_identifier identifier ;) (declaration "bfd_byte *memhunk;" type_identifier (pointer_declarator "*memhunk" * identifier) ;) (expression_statement "bVar5 = skip_section(ibfd,isection,1);" (assignment_expression "bVar5 = skip_section(ibfd,isection,1)" identifier = (call_expression "skip_section(ibfd,isection,1)" identifier (argument_list "(ibfd,isection,1)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (bVar5 == 0) {\n    size = isection->size;\n    section = isection->output_section;\n    if (((isection->flags & 0x100) == 0) || ((section->flags & 0x100) == 0)) {\n      psVar8 = find_section_list(isection->name,0,0x40);\n      if ((psVar8 != (section_list *)0x0) && ((psVar8->flags & 0x100) != 0)) {\n        __s = (void *)xmalloc(size);\n        bVar4 = size;\n        memset(__s,0,size);\n        iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      memhunk = (bfd_byte *)0x0;\n      iVar7 = bfd_get_full_section_contents(ibfd,isection,&memhunk);\n      if ((iVar7 == 0) ||\n         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0)) {\n        status = 1;\n        bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);\n        free(memhunk);\n      }\n      else {\n        if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }\n        iVar6 = copy_byte;\n        iVar7 = copy_width;\n        if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }\n        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }\n      }\n    }\n  }" if (parenthesized_expression "(bVar5 == 0)" ( (binary_expression "bVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    size = isection->size;\n    section = isection->output_section;\n    if (((isection->flags & 0x100) == 0) || ((section->flags & 0x100) == 0)) {\n      psVar8 = find_section_list(isection->name,0,0x40);\n      if ((psVar8 != (section_list *)0x0) && ((psVar8->flags & 0x100) != 0)) {\n        __s = (void *)xmalloc(size);\n        bVar4 = size;\n        memset(__s,0,size);\n        iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      memhunk = (bfd_byte *)0x0;\n      iVar7 = bfd_get_full_section_contents(ibfd,isection,&memhunk);\n      if ((iVar7 == 0) ||\n         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0)) {\n        status = 1;\n        bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);\n        free(memhunk);\n      }\n      else {\n        if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }\n        iVar6 = copy_byte;\n        iVar7 = copy_width;\n        if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }\n        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }\n      }\n    }\n  }" { (expression_statement "size = isection->size;" (assignment_expression "size = isection->size" identifier = (field_expression "isection->size" identifier -> field_identifier)) ;) (expression_statement "section = isection->output_section;" (assignment_expression "section = isection->output_section" identifier = (field_expression "isection->output_section" identifier -> field_identifier)) ;) (if_statement "if (((isection->flags & 0x100) == 0) || ((section->flags & 0x100) == 0)) {\n      psVar8 = find_section_list(isection->name,0,0x40);\n      if ((psVar8 != (section_list *)0x0) && ((psVar8->flags & 0x100) != 0)) {\n        __s = (void *)xmalloc(size);\n        bVar4 = size;\n        memset(__s,0,size);\n        iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      memhunk = (bfd_byte *)0x0;\n      iVar7 = bfd_get_full_section_contents(ibfd,isection,&memhunk);\n      if ((iVar7 == 0) ||\n         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0)) {\n        status = 1;\n        bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);\n        free(memhunk);\n      }\n      else {\n        if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }\n        iVar6 = copy_byte;\n        iVar7 = copy_width;\n        if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }\n        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }\n      }\n    }" if (parenthesized_expression "(((isection->flags & 0x100) == 0) || ((section->flags & 0x100) == 0))" ( (binary_expression "((isection->flags & 0x100) == 0) || ((section->flags & 0x100) == 0)" (parenthesized_expression "((isection->flags & 0x100) == 0)" ( (binary_expression "(isection->flags & 0x100) == 0" (parenthesized_expression "(isection->flags & 0x100)" ( (binary_expression "isection->flags & 0x100" (field_expression "isection->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) || (parenthesized_expression "((section->flags & 0x100) == 0)" ( (binary_expression "(section->flags & 0x100) == 0" (parenthesized_expression "(section->flags & 0x100)" ( (binary_expression "section->flags & 0x100" (field_expression "section->flags" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      psVar8 = find_section_list(isection->name,0,0x40);\n      if ((psVar8 != (section_list *)0x0) && ((psVar8->flags & 0x100) != 0)) {\n        __s = (void *)xmalloc(size);\n        bVar4 = size;\n        memset(__s,0,size);\n        iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n        }\n        free(__s);\n        return;\n      }\n    }" { (expression_statement "psVar8 = find_section_list(isection->name,0,0x40);" (assignment_expression "psVar8 = find_section_list(isection->name,0,0x40)" identifier = (call_expression "find_section_list(isection->name,0,0x40)" identifier (argument_list "(isection->name,0,0x40)" ( (field_expression "isection->name" identifier -> field_identifier) , number_literal , number_literal )))) ;) (if_statement "if ((psVar8 != (section_list *)0x0) && ((psVar8->flags & 0x100) != 0)) {\n        __s = (void *)xmalloc(size);\n        bVar4 = size;\n        memset(__s,0,size);\n        iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n        }\n        free(__s);\n        return;\n      }" if (parenthesized_expression "((psVar8 != (section_list *)0x0) && ((psVar8->flags & 0x100) != 0))" ( (binary_expression "(psVar8 != (section_list *)0x0) && ((psVar8->flags & 0x100) != 0)" (parenthesized_expression "(psVar8 != (section_list *)0x0)" ( (binary_expression "psVar8 != (section_list *)0x0" identifier != (cast_expression "(section_list *)0x0" ( (type_descriptor "section_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((psVar8->flags & 0x100) != 0)" ( (binary_expression "(psVar8->flags & 0x100) != 0" (parenthesized_expression "(psVar8->flags & 0x100)" ( (binary_expression "psVar8->flags & 0x100" (field_expression "psVar8->flags" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        __s = (void *)xmalloc(size);\n        bVar4 = size;\n        memset(__s,0,size);\n        iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n        }\n        free(__s);\n        return;\n      }" { (expression_statement "__s = (void *)xmalloc(size);" (assignment_expression "__s = (void *)xmalloc(size)" identifier = (cast_expression "(void *)xmalloc(size)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(size)" identifier (argument_list "(size)" ( identifier ))))) ;) (expression_statement "bVar4 = size;" (assignment_expression "bVar4 = size" identifier = identifier) ;) (expression_statement "memset(__s,0,size);" (call_expression "memset(__s,0,size)" identifier (argument_list "(__s,0,size)" ( identifier , number_literal , identifier ))) ;) (expression_statement "iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4);" (assignment_expression "iVar7 = bfd_set_section_contents(obfdarg,section,__s,0,bVar4)" identifier = (call_expression "bfd_set_section_contents(obfdarg,section,__s,0,bVar4)" identifier (argument_list "(obfdarg,section,__s,0,bVar4)" ( identifier , identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n        }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n        }" { (expression_statement "status = 1;" (assignment_expression "status = 1" identifier = number_literal) ;) (expression_statement "bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);" (call_expression "bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0)" identifier (argument_list "((char *)0x0,(bfd *)obfdarg,section,(char *)0x0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(bfd *)obfdarg" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n      memhunk = (bfd_byte *)0x0;\n      iVar7 = bfd_get_full_section_contents(ibfd,isection,&memhunk);\n      if ((iVar7 == 0) ||\n         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0)) {\n        status = 1;\n        bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);\n        free(memhunk);\n      }\n      else {\n        if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }\n        iVar6 = copy_byte;\n        iVar7 = copy_width;\n        if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }\n        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }\n      }\n    }" else (compound_statement "{\n      memhunk = (bfd_byte *)0x0;\n      iVar7 = bfd_get_full_section_contents(ibfd,isection,&memhunk);\n      if ((iVar7 == 0) ||\n         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0)) {\n        status = 1;\n        bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);\n        free(memhunk);\n      }\n      else {\n        if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }\n        iVar6 = copy_byte;\n        iVar7 = copy_width;\n        if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }\n        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }\n      }\n    }" { (expression_statement "memhunk = (bfd_byte *)0x0;" (assignment_expression "memhunk = (bfd_byte *)0x0" identifier = (cast_expression "(bfd_byte *)0x0" ( (type_descriptor "bfd_byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar7 = bfd_get_full_section_contents(ibfd,isection,&memhunk);" (assignment_expression "iVar7 = bfd_get_full_section_contents(ibfd,isection,&memhunk)" identifier = (call_expression "bfd_get_full_section_contents(ibfd,isection,&memhunk)" identifier (argument_list "(ibfd,isection,&memhunk)" ( identifier , identifier , (pointer_expression "&memhunk" & identifier) )))) ;) (if_statement "if ((iVar7 == 0) ||\n         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0)) {\n        status = 1;\n        bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);\n        free(memhunk);\n      }\n      else {\n        if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }\n        iVar6 = copy_byte;\n        iVar7 = copy_width;\n        if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }\n        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }\n      }" if (parenthesized_expression "((iVar7 == 0) ||\n         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0))" ( (binary_expression "(iVar7 == 0) ||\n         (iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0)" (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0)" ( (comma_expression "iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size),\n         iVar7 = reverse_bytes, iVar6 == 0" (assignment_expression "iVar6 = bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size)" identifier = (call_expression "bfd_convert_section_contents(ibfd,isection,obfdarg,&memhunk,&size)" identifier (argument_list "(ibfd,isection,obfdarg,&memhunk,&size)" ( identifier , identifier , identifier , (pointer_expression "&memhunk" & identifier) , (pointer_expression "&size" & identifier) )))) , (comma_expression "iVar7 = reverse_bytes, iVar6 == 0" (assignment_expression "iVar7 = reverse_bytes" identifier = identifier) , (binary_expression "iVar6 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n        status = 1;\n        bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);\n        free(memhunk);\n      }" { (expression_statement "status = 1;" (assignment_expression "status = 1" identifier = number_literal) ;) (expression_statement "bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0);" (call_expression "bfd_nonfatal_message((char *)0x0,ibfd,isection,(char *)0x0)" identifier (argument_list "((char *)0x0,ibfd,isection,(char *)0x0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "free(memhunk);" (call_expression "free(memhunk)" identifier (argument_list "(memhunk)" ( identifier ))) ;) }) (else_clause "else {\n        if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }\n        iVar6 = copy_byte;\n        iVar7 = copy_width;\n        if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }\n        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }\n      }" else (compound_statement "{\n        if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }\n        iVar6 = copy_byte;\n        iVar7 = copy_width;\n        if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }\n        iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);\n        if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }\n      }" { (if_statement "if (reverse_bytes != 0) {\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }" if (parenthesized_expression "(reverse_bytes != 0)" ( (binary_expression "reverse_bytes != 0" identifier != number_literal) )) (compound_statement "{\n          uVar20 = (ulong)reverse_bytes;\n          if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }\n          if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }\n        }" { (expression_statement "uVar20 = (ulong)reverse_bytes;" (assignment_expression "uVar20 = (ulong)reverse_bytes" identifier = (cast_expression "(ulong)reverse_bytes" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (size % uVar20 != 0) {\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }" if (parenthesized_expression "(size % uVar20 != 0)" ( (binary_expression "size % uVar20 != 0" (binary_expression "size % uVar20" identifier % identifier) != number_literal) )) (compound_statement "{\n            pcVar3 = isection->name;\n            format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);\n                    /* WARNING: Subroutine does not return */\n            fatal(format,pcVar3,(ulong)(uint)iVar7);\n          }" { (expression_statement "pcVar3 = isection->name;" (assignment_expression "pcVar3 = isection->name" identifier = (field_expression "isection->name" identifier -> field_identifier)) ;) (expression_statement "format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5);" (assignment_expression "format = (char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5)" identifier = (cast_expression "(char *)dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5)" identifier (argument_list "(0,\n                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                                       ,5)" ( number_literal , (string_literal ""cannot reverse bytes: length of section %s must be evenly divisible by %d"" " string_content ") , number_literal ))))) ;) comment (expression_statement "fatal(format,pcVar3,(ulong)(uint)iVar7);" (call_expression "fatal(format,pcVar3,(ulong)(uint)iVar7)" identifier (argument_list "(format,pcVar3,(ulong)(uint)iVar7)" ( identifier , identifier , (cast_expression "(ulong)(uint)iVar7" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(uint)iVar7" ( (type_descriptor "uint" type_identifier) ) identifier)) ))) ;) })) (if_statement "if (size != 0) {\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }" if (parenthesized_expression "(size != 0)" ( (binary_expression "size != 0" identifier != number_literal) )) (compound_statement "{\n            lVar19 = uVar20 - 1;\n            iVar7 = reverse_bytes / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar7;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);\n          }" { (expression_statement "lVar19 = uVar20 - 1;" (assignment_expression "lVar19 = uVar20 - 1" identifier = (binary_expression "uVar20 - 1" identifier - number_literal)) ;) (expression_statement "iVar7 = reverse_bytes / 2;" (assignment_expression "iVar7 = reverse_bytes / 2" identifier = (binary_expression "reverse_bytes / 2" identifier / number_literal)) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (expression_statement "uVar18 = (long)iVar7;" (assignment_expression "uVar18 = (long)iVar7" identifier = (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (do_statement "do {\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            } while (uVar14 < size);" do (compound_statement "{\n              uVar10 = uVar14;\n              if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar20;\n              lVar19 = lVar19 + uVar20 * 2;\n              uVar18 = uVar18 + uVar20;\n            }" { (expression_statement "uVar10 = uVar14;" (assignment_expression "uVar10 = uVar14" identifier = identifier) ;) (if_statement "if ((long)iVar7 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }" if (parenthesized_expression "((long)iVar7 != 0)" ( (binary_expression "(long)iVar7 != 0" (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) != number_literal) )) (compound_statement "{\n                do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }" { (do_statement "do {\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);" do (compound_statement "{\n                  uVar11 = uVar10 + 1;\n                  bVar2 = memhunk[uVar10];\n                  memhunk[uVar10] = memhunk[lVar19 - uVar10];\n                  memhunk[lVar19 - uVar10] = bVar2;\n                  uVar10 = uVar11;\n                }" { (expression_statement "uVar11 = uVar10 + 1;" (assignment_expression "uVar11 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = memhunk[uVar10];" (assignment_expression "bVar2 = memhunk[uVar10]" identifier = (subscript_expression "memhunk[uVar10]" identifier [ identifier ])) ;) (expression_statement "memhunk[uVar10] = memhunk[lVar19 - uVar10];" (assignment_expression "memhunk[uVar10] = memhunk[lVar19 - uVar10]" (subscript_expression "memhunk[uVar10]" identifier [ identifier ]) = (subscript_expression "memhunk[lVar19 - uVar10]" identifier [ (binary_expression "lVar19 - uVar10" identifier - identifier) ])) ;) (expression_statement "memhunk[lVar19 - uVar10] = bVar2;" (assignment_expression "memhunk[lVar19 - uVar10] = bVar2" (subscript_expression "memhunk[lVar19 - uVar10]" identifier [ (binary_expression "lVar19 - uVar10" identifier - identifier) ]) = identifier) ;) (expression_statement "uVar10 = uVar11;" (assignment_expression "uVar10 = uVar11" identifier = identifier) ;) }) while (parenthesized_expression "(uVar11 != uVar18)" ( (binary_expression "uVar11 != uVar18" identifier != identifier) )) ;) })) (expression_statement "uVar14 = uVar14 + uVar20;" (assignment_expression "uVar14 = uVar14 + uVar20" identifier = (binary_expression "uVar14 + uVar20" identifier + identifier)) ;) (expression_statement "lVar19 = lVar19 + uVar20 * 2;" (assignment_expression "lVar19 = lVar19 + uVar20 * 2" identifier = (binary_expression "lVar19 + uVar20 * 2" identifier + (binary_expression "uVar20 * 2" identifier * number_literal))) ;) (expression_statement "uVar18 = uVar18 + uVar20;" (assignment_expression "uVar18 = uVar18 + uVar20" identifier = (binary_expression "uVar18 + uVar20" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar14 < size)" ( (binary_expression "uVar14 < size" identifier < identifier) )) ;) })) })) (expression_statement "iVar6 = copy_byte;" (assignment_expression "iVar6 = copy_byte" identifier = identifier) ;) (expression_statement "iVar7 = copy_width;" (assignment_expression "iVar7 = copy_width" identifier = identifier) ;) (if_statement "if (-1 < copy_byte) {\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }" if (parenthesized_expression "(-1 < copy_byte)" ( (binary_expression "-1 < copy_byte" number_literal < identifier) )) (compound_statement "{\n          uVar20 = (ulong)interleave;\n          lVar19 = (long)copy_byte;\n          pbVar17 = memhunk + size;\n          iVar13 = (int)(isection->lma % uVar20);\n          pbVar21 = memhunk + (lVar19 - iVar13);\n          if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }\n          if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }\n          size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);\n          uVar20 = section->lma / uVar20;\n          if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }\n          section->lma = uVar20;\n        }" { (expression_statement "uVar20 = (ulong)interleave;" (assignment_expression "uVar20 = (ulong)interleave" identifier = (cast_expression "(ulong)interleave" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "lVar19 = (long)copy_byte;" (assignment_expression "lVar19 = (long)copy_byte" identifier = (cast_expression "(long)copy_byte" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "pbVar17 = memhunk + size;" (assignment_expression "pbVar17 = memhunk + size" identifier = (binary_expression "memhunk + size" identifier + identifier)) ;) (expression_statement "iVar13 = (int)(isection->lma % uVar20);" (assignment_expression "iVar13 = (int)(isection->lma % uVar20)" identifier = (cast_expression "(int)(isection->lma % uVar20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(isection->lma % uVar20)" ( (binary_expression "isection->lma % uVar20" (field_expression "isection->lma" identifier -> field_identifier) % identifier) )))) ;) (expression_statement "pbVar21 = memhunk + (lVar19 - iVar13);" (assignment_expression "pbVar21 = memhunk + (lVar19 - iVar13)" identifier = (binary_expression "memhunk + (lVar19 - iVar13)" identifier + (parenthesized_expression "(lVar19 - iVar13)" ( (binary_expression "lVar19 - iVar13" identifier - identifier) )))) ;) (if_statement "if (copy_byte < iVar13) {\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }" if (parenthesized_expression "(copy_byte < iVar13)" ( (binary_expression "copy_byte < iVar13" identifier < identifier) )) (compound_statement "{\n            pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;\n          }" { (expression_statement "pbVar21 = memhunk + (lVar19 - iVar13) + uVar20;" (assignment_expression "pbVar21 = memhunk + (lVar19 - iVar13) + uVar20" identifier = (binary_expression "memhunk + (lVar19 - iVar13) + uVar20" (binary_expression "memhunk + (lVar19 - iVar13)" identifier + (parenthesized_expression "(lVar19 - iVar13)" ( (binary_expression "lVar19 - iVar13" identifier - identifier) ))) + identifier)) ;) })) (if_statement "if (pbVar21 < pbVar17) {\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }" if (parenthesized_expression "(pbVar21 < pbVar17)" ( (binary_expression "pbVar21 < pbVar17" identifier < identifier) )) (compound_statement "{\n            pbVar12 = pbVar21 + (copy_width - 1);\n            lVar22 = (long)pbVar17 - (long)pbVar21;\n            pbVar16 = memhunk;\n            do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);\n          }" { (expression_statement "pbVar12 = pbVar21 + (copy_width - 1);" (assignment_expression "pbVar12 = pbVar21 + (copy_width - 1)" identifier = (binary_expression "pbVar21 + (copy_width - 1)" identifier + (parenthesized_expression "(copy_width - 1)" ( (binary_expression "copy_width - 1" identifier - number_literal) )))) ;) (expression_statement "lVar22 = (long)pbVar17 - (long)pbVar21;" (assignment_expression "lVar22 = (long)pbVar17 - (long)pbVar21" identifier = (binary_expression "(long)pbVar17 - (long)pbVar21" (cast_expression "(long)pbVar17" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pbVar21" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "pbVar16 = memhunk;" (assignment_expression "pbVar16 = memhunk" identifier = identifier) ;) (do_statement "do {\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            } while (pbVar21 < pbVar17);" do (compound_statement "{\n              if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }\n              pbVar21 = pbVar21 + uVar20;\n              pbVar12 = pbVar12 + uVar20;\n              lVar22 = lVar22 - uVar20;\n            }" { (if_statement "if ((0 < iVar7) && (pbVar21 < pbVar17)) {\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }" if (parenthesized_expression "((0 < iVar7) && (pbVar21 < pbVar17))" ( (binary_expression "(0 < iVar7) && (pbVar21 < pbVar17)" (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) && (parenthesized_expression "(pbVar21 < pbVar17)" ( (binary_expression "pbVar21 < pbVar17" identifier < identifier) ))) )) (compound_statement "{\n                pbVar1 = pbVar16 + lVar22;\n                pbVar9 = pbVar21;\n                pbVar15 = pbVar16;\n                do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);\n              }" { (expression_statement "pbVar1 = pbVar16 + lVar22;" (assignment_expression "pbVar1 = pbVar16 + lVar22" identifier = (binary_expression "pbVar16 + lVar22" identifier + identifier)) ;) (expression_statement "pbVar9 = pbVar21;" (assignment_expression "pbVar9 = pbVar21" identifier = identifier) ;) (expression_statement "pbVar15 = pbVar16;" (assignment_expression "pbVar15 = pbVar16" identifier = identifier) ;) (do_statement "do {\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                } while (pbVar16 != pbVar1);" do (compound_statement "{\n                  pbVar16 = pbVar15 + 1;\n                  *pbVar15 = *pbVar9;\n                  if (pbVar12 == pbVar9) break;\n                  pbVar9 = pbVar9 + 1;\n                  pbVar15 = pbVar16;\n                }" { (expression_statement "pbVar16 = pbVar15 + 1;" (assignment_expression "pbVar16 = pbVar15 + 1" identifier = (binary_expression "pbVar15 + 1" identifier + number_literal)) ;) (expression_statement "*pbVar15 = *pbVar9;" (assignment_expression "*pbVar15 = *pbVar9" (pointer_expression "*pbVar15" * identifier) = (pointer_expression "*pbVar9" * identifier)) ;) (if_statement "if (pbVar12 == pbVar9) break;" if (parenthesized_expression "(pbVar12 == pbVar9)" ( (binary_expression "pbVar12 == pbVar9" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pbVar9 = pbVar9 + 1;" (assignment_expression "pbVar9 = pbVar9 + 1" identifier = (binary_expression "pbVar9 + 1" identifier + number_literal)) ;) (expression_statement "pbVar15 = pbVar16;" (assignment_expression "pbVar15 = pbVar16" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar16 != pbVar1)" ( (binary_expression "pbVar16 != pbVar1" identifier != identifier) )) ;) })) (expression_statement "pbVar21 = pbVar21 + uVar20;" (assignment_expression "pbVar21 = pbVar21 + uVar20" identifier = (binary_expression "pbVar21 + uVar20" identifier + identifier)) ;) (expression_statement "pbVar12 = pbVar12 + uVar20;" (assignment_expression "pbVar12 = pbVar12 + uVar20" identifier = (binary_expression "pbVar12 + uVar20" identifier + identifier)) ;) (expression_statement "lVar22 = lVar22 - uVar20;" (assignment_expression "lVar22 = lVar22 - uVar20" identifier = (binary_expression "lVar22 - uVar20" identifier - identifier)) ;) }) while (parenthesized_expression "(pbVar21 < pbVar17)" ( (binary_expression "pbVar21 < pbVar17" identifier < identifier) )) ;) })) (expression_statement "size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20);" (assignment_expression "size = (long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20)" identifier = (binary_expression "(long)iVar7 * ((((uVar20 - 1) - lVar19) + size) / uVar20)" (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * (parenthesized_expression "((((uVar20 - 1) - lVar19) + size) / uVar20)" ( (binary_expression "(((uVar20 - 1) - lVar19) + size) / uVar20" (parenthesized_expression "(((uVar20 - 1) - lVar19) + size)" ( (binary_expression "((uVar20 - 1) - lVar19) + size" (parenthesized_expression "((uVar20 - 1) - lVar19)" ( (binary_expression "(uVar20 - 1) - lVar19" (parenthesized_expression "(uVar20 - 1)" ( (binary_expression "uVar20 - 1" identifier - number_literal) )) - identifier) )) + identifier) )) / identifier) )))) ;) (expression_statement "uVar20 = section->lma / uVar20;" (assignment_expression "uVar20 = section->lma / uVar20" identifier = (binary_expression "section->lma / uVar20" (field_expression "section->lma" identifier -> field_identifier) / identifier)) ;) (if_statement "if (iVar6 < iVar13) {\n            uVar20 = uVar20 + 1;\n          }" if (parenthesized_expression "(iVar6 < iVar13)" ( (binary_expression "iVar6 < iVar13" identifier < identifier) )) (compound_statement "{\n            uVar20 = uVar20 + 1;\n          }" { (expression_statement "uVar20 = uVar20 + 1;" (assignment_expression "uVar20 = uVar20 + 1" identifier = (binary_expression "uVar20 + 1" identifier + number_literal)) ;) })) (expression_statement "section->lma = uVar20;" (assignment_expression "section->lma = uVar20" (field_expression "section->lma" identifier -> field_identifier) = identifier) ;) })) (expression_statement "iVar7 = bfd_set_section_contents(obfdarg,section,memhunk);" (assignment_expression "iVar7 = bfd_set_section_contents(obfdarg,section,memhunk)" identifier = (call_expression "bfd_set_section_contents(obfdarg,section,memhunk)" identifier (argument_list "(obfdarg,section,memhunk)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar7 == 0) {\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }\n        else {\n          free(memhunk);\n        }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n          status = 1;\n          bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);\n          free(memhunk);\n        }" { (expression_statement "status = 1;" (assignment_expression "status = 1" identifier = number_literal) ;) (expression_statement "bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0);" (call_expression "bfd_nonfatal_message((char *)0x0,(bfd *)obfdarg,section,(char *)0x0)" identifier (argument_list "((char *)0x0,(bfd *)obfdarg,section,(char *)0x0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(bfd *)obfdarg" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "free(memhunk);" (call_expression "free(memhunk)" identifier (argument_list "(memhunk)" ( identifier ))) ;) }) (else_clause "else {\n          free(memhunk);\n        }" else (compound_statement "{\n          free(memhunk);\n        }" { (expression_statement "free(memhunk);" (call_expression "free(memhunk)" identifier (argument_list "(memhunk)" ( identifier ))) ;) }))) }))) }))) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00108850(undefined8 param_1,undefined8 *param_2,undefined8 param_3)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined1 *puVar8;\n  void *__s;\n  undefined8 uVar9;\n  ulong uVar10;\n  ulong uVar11;\n  undefined1 *puVar12;\n  int iVar13;\n  ulong uVar14;\n  undefined1 *puVar15;\n  undefined1 *puVar16;\n  undefined1 *puVar17;\n  ulong uVar18;\n  ulong uVar19;\n  undefined1 *puVar20;\n  long lVar21;\n  ulong local_48;\n  undefined1 *local_40 [2];\n  \n  iVar5 = FUN_001087b0(param_1,param_2,1);\n  if (iVar5 == 0) {\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00108850(undefined8 param_1,undefined8 *param_2,undefined8 param_3)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined1 *puVar8;\n  void *__s;\n  undefined8 uVar9;\n  ulong uVar10;\n  ulong uVar11;\n  undefined1 *puVar12;\n  int iVar13;\n  ulong uVar14;\n  undefined1 *puVar15;\n  undefined1 *puVar16;\n  undefined1 *puVar17;\n  ulong uVar18;\n  ulong uVar19;\n  undefined1 *puVar20;\n  long lVar21;\n  ulong local_48;\n  undefined1 *local_40 [2];\n  \n  iVar5 = FUN_001087b0(param_1,param_2,1);\n  if (iVar5 == 0) {\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00108850(undefined8 param_1,undefined8 *param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined1 *puVar8;\n  void *__s;\n  undefined8 uVar9;\n  ulong uVar10;\n  ulong uVar11;\n  undefined1 *puVar12;\n  int iVar13;\n  ulong uVar14;\n  undefined1 *puVar15;\n  undefined1 *puVar16;\n  undefined1 *puVar17;\n  ulong uVar18;\n  ulong uVar19;\n  undefined1 *puVar20;\n  long lVar21;\n  ulong local_48;\n  undefined1 *local_40 [2];\n  \n  iVar5 = FUN_001087b0(param_1,param_2,1);\n  if (iVar5 == 0) {\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined8 uVar9;" type_identifier identifier ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "ulong uVar11;" type_identifier identifier ;) (declaration "undefined1 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "ulong uVar14;" type_identifier identifier ;) (declaration "undefined1 *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "undefined1 *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "undefined1 *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "ulong uVar18;" type_identifier identifier ;) (declaration "ulong uVar19;" type_identifier identifier ;) (declaration "undefined1 *puVar20;" type_identifier (pointer_declarator "*puVar20" * identifier) ;) (declaration "long lVar21;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong local_48;" type_identifier identifier ;) (declaration "undefined1 *local_40 [2];" type_identifier (pointer_declarator "*local_40 [2]" * (array_declarator "local_40 [2]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = FUN_001087b0(param_1,param_2,1);" (assignment_expression "iVar5 = FUN_001087b0(param_1,param_2,1)" identifier = (call_expression "FUN_001087b0(param_1,param_2,1)" identifier (argument_list "(param_1,param_2,1)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }" { (expression_statement "local_48 = param_2[7];" (assignment_expression "local_48 = param_2[7]" identifier = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "lVar3 = param_2[0xd];" (assignment_expression "lVar3 = param_2[0xd]" identifier = (subscript_expression "param_2[0xd]" identifier [ number_literal ])) ;) (if_statement "if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }" if (parenthesized_expression "(((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0))" ( (binary_expression "((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)" (parenthesized_expression "((*(byte *)((long)param_2 + 0x21) & 1) == 0)" ( (binary_expression "(*(byte *)((long)param_2 + 0x21) & 1) == 0" (parenthesized_expression "(*(byte *)((long)param_2 + 0x21) & 1)" ( (binary_expression "*(byte *)((long)param_2 + 0x21) & 1" (pointer_expression "*(byte *)((long)param_2 + 0x21)" * (cast_expression "(byte *)((long)param_2 + 0x21)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x21)" ( (binary_expression "(long)param_2 + 0x21" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "((*(byte *)(lVar3 + 0x21) & 1) == 0)" ( (binary_expression "(*(byte *)(lVar3 + 0x21) & 1) == 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x21) & 1)" ( (binary_expression "*(byte *)(lVar3 + 0x21) & 1" (pointer_expression "*(byte *)(lVar3 + 0x21)" * (cast_expression "(byte *)(lVar3 + 0x21)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x21)" ( (binary_expression "lVar3 + 0x21" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }" { (expression_statement "lVar7 = FUN_00107360(*param_2,0,0x40);" (assignment_expression "lVar7 = FUN_00107360(*param_2,0,0x40)" identifier = (call_expression "FUN_00107360(*param_2,0,0x40)" identifier (argument_list "(*param_2,0,0x40)" ( (pointer_expression "*param_2" * identifier) , number_literal , number_literal )))) ;) (if_statement "if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }" if (parenthesized_expression "((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0))" ( (binary_expression "(lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)" (parenthesized_expression "(lVar7 != 0)" ( (binary_expression "lVar7 != 0" identifier != number_literal) )) && (parenthesized_expression "((*(byte *)(lVar7 + 0x29) & 1) != 0)" ( (binary_expression "(*(byte *)(lVar7 + 0x29) & 1) != 0" (parenthesized_expression "(*(byte *)(lVar7 + 0x29) & 1)" ( (binary_expression "*(byte *)(lVar7 + 0x29) & 1" (pointer_expression "*(byte *)(lVar7 + 0x29)" * (cast_expression "(byte *)(lVar7 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar7 + 0x29)" ( (binary_expression "lVar7 + 0x29" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }" { (expression_statement "__s = (void *)xmalloc(local_48);" (assignment_expression "__s = (void *)xmalloc(local_48)" identifier = (cast_expression "(void *)xmalloc(local_48)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(local_48)" identifier (argument_list "(local_48)" ( identifier ))))) ;) (expression_statement "uVar19 = local_48;" (assignment_expression "uVar19 = local_48" identifier = identifier) ;) (expression_statement "memset(__s,0,local_48);" (call_expression "memset(__s,0,local_48)" identifier (argument_list "(__s,0,local_48)" ( identifier , number_literal , identifier ))) ;) (expression_statement "iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);" (assignment_expression "iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19)" identifier = (call_expression "bfd_set_section_contents(param_3,lVar3,__s,0,uVar19)" identifier (argument_list "(param_3,lVar3,__s,0,uVar19)" ( identifier , identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }" { (expression_statement "DAT_0012cb24 = 1;" (assignment_expression "DAT_0012cb24 = 1" identifier = number_literal) ;) (expression_statement "FUN_0011c0d0(0,param_3,lVar3,0);" (call_expression "FUN_0011c0d0(0,param_3,lVar3,0)" identifier (argument_list "(0,param_3,lVar3,0)" ( number_literal , identifier , identifier , number_literal ))) ;) })) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }" else (compound_statement "{\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }" { (expression_statement "local_40[0] = (undefined1 *)0x0;" (assignment_expression "local_40[0] = (undefined1 *)0x0" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);" (assignment_expression "iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40)" identifier = (call_expression "bfd_get_full_section_contents(param_1,param_2,local_40)" identifier (argument_list "(param_1,param_2,local_40)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }" if (parenthesized_expression "((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0))" ( (binary_expression "(iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)" (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)" ( (comma_expression "iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0" (assignment_expression "iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48)" identifier = (call_expression "bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48)" identifier (argument_list "(param_1,param_2,param_3,local_40,&local_48)" ( identifier , identifier , identifier , identifier , (pointer_expression "&local_48" & identifier) )))) , (comma_expression "iVar5 = DAT_0012c9f0, iVar6 == 0" (assignment_expression "iVar5 = DAT_0012c9f0" identifier = identifier) , (binary_expression "iVar6 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }" { (expression_statement "DAT_0012cb24 = 1;" (assignment_expression "DAT_0012cb24 = 1" identifier = number_literal) ;) (expression_statement "FUN_0011c0d0(0,param_1,param_2,0);" (call_expression "FUN_0011c0d0(0,param_1,param_2,0)" identifier (argument_list "(0,param_1,param_2,0)" ( number_literal , identifier , identifier , number_literal ))) ;) (expression_statement "free(local_40[0]);" (call_expression "free(local_40[0])" identifier (argument_list "(local_40[0])" ( (subscript_expression "local_40[0]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }" else (compound_statement "{\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }" { (if_statement "if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }" if (parenthesized_expression "(DAT_0012c9f0 != 0)" ( (binary_expression "DAT_0012c9f0 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }" { (expression_statement "uVar19 = (ulong)DAT_0012c9f0;" (assignment_expression "uVar19 = (ulong)DAT_0012c9f0" identifier = (cast_expression "(ulong)DAT_0012c9f0" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }" if (parenthesized_expression "(local_48 % uVar19 != 0)" ( (binary_expression "local_48 % uVar19 != 0" (binary_expression "local_48 % uVar19" identifier % identifier) != number_literal) )) (compound_statement "{\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }" { (expression_statement "uVar4 = *param_2;" (assignment_expression "uVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);" (assignment_expression "uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5)" identifier = (call_expression "dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5)" identifier (argument_list "(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5)" ( number_literal , (string_literal ""cannot reverse bytes: length of section %s must be evenly divisible by %d"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0011b5c0(uVar9,uVar4,iVar5);" (call_expression "FUN_0011b5c0(uVar9,uVar4,iVar5)" identifier (argument_list "(uVar9,uVar4,iVar5)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }" if (parenthesized_expression "(local_48 != 0)" ( (binary_expression "local_48 != 0" identifier != number_literal) )) (compound_statement "{\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }" { (expression_statement "lVar7 = uVar19 - 1;" (assignment_expression "lVar7 = uVar19 - 1" identifier = (binary_expression "uVar19 - 1" identifier - number_literal)) ;) (expression_statement "iVar5 = DAT_0012c9f0 / 2;" (assignment_expression "iVar5 = DAT_0012c9f0 / 2" identifier = (binary_expression "DAT_0012c9f0 / 2" identifier / number_literal)) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (expression_statement "uVar18 = (long)iVar5;" (assignment_expression "uVar18 = (long)iVar5" identifier = (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (do_statement "do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);" do (compound_statement "{\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            }" { (expression_statement "uVar10 = uVar14;" (assignment_expression "uVar10 = uVar14" identifier = identifier) ;) (if_statement "if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }" if (parenthesized_expression "((long)iVar5 != 0)" ( (binary_expression "(long)iVar5 != 0" (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) != number_literal) )) (compound_statement "{\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }" { (do_statement "do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);" do (compound_statement "{\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                }" { (expression_statement "uVar11 = uVar10 + 1;" (assignment_expression "uVar11 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = local_40[0][uVar10];" (assignment_expression "uVar2 = local_40[0][uVar10]" identifier = (subscript_expression "local_40[0][uVar10]" (subscript_expression "local_40[0]" identifier [ number_literal ]) [ identifier ])) ;) (expression_statement "local_40[0][uVar10] = local_40[0][lVar7 - uVar10];" (assignment_expression "local_40[0][uVar10] = local_40[0][lVar7 - uVar10]" (subscript_expression "local_40[0][uVar10]" (subscript_expression "local_40[0]" identifier [ number_literal ]) [ identifier ]) = (subscript_expression "local_40[0][lVar7 - uVar10]" (subscript_expression "local_40[0]" identifier [ number_literal ]) [ (binary_expression "lVar7 - uVar10" identifier - identifier) ])) ;) (expression_statement "local_40[0][lVar7 - uVar10] = uVar2;" (assignment_expression "local_40[0][lVar7 - uVar10] = uVar2" (subscript_expression "local_40[0][lVar7 - uVar10]" (subscript_expression "local_40[0]" identifier [ number_literal ]) [ (binary_expression "lVar7 - uVar10" identifier - identifier) ]) = identifier) ;) (expression_statement "uVar10 = uVar11;" (assignment_expression "uVar10 = uVar11" identifier = identifier) ;) }) while (parenthesized_expression "(uVar11 != uVar18)" ( (binary_expression "uVar11 != uVar18" identifier != identifier) )) ;) })) (expression_statement "uVar14 = uVar14 + uVar19;" (assignment_expression "uVar14 = uVar14 + uVar19" identifier = (binary_expression "uVar14 + uVar19" identifier + identifier)) ;) (expression_statement "lVar7 = lVar7 + uVar19 * 2;" (assignment_expression "lVar7 = lVar7 + uVar19 * 2" identifier = (binary_expression "lVar7 + uVar19 * 2" identifier + (binary_expression "uVar19 * 2" identifier * number_literal))) ;) (expression_statement "uVar18 = uVar18 + uVar19;" (assignment_expression "uVar18 = uVar18 + uVar19" identifier = (binary_expression "uVar18 + uVar19" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar14 < local_48)" ( (binary_expression "uVar14 < local_48" identifier < identifier) )) ;) })) })) (expression_statement "iVar6 = DAT_0012b4bc;" (assignment_expression "iVar6 = DAT_0012b4bc" identifier = identifier) ;) (expression_statement "iVar5 = DAT_0012b4b8;" (assignment_expression "iVar5 = DAT_0012b4b8" identifier = identifier) ;) (if_statement "if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }" if (parenthesized_expression "(-1 < DAT_0012b4bc)" ( (binary_expression "-1 < DAT_0012b4bc" number_literal < identifier) )) (compound_statement "{\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }" { (expression_statement "uVar19 = (ulong)DAT_0012cb30;" (assignment_expression "uVar19 = (ulong)DAT_0012cb30" identifier = (cast_expression "(ulong)DAT_0012cb30" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "lVar7 = (long)DAT_0012b4bc;" (assignment_expression "lVar7 = (long)DAT_0012b4bc" identifier = (cast_expression "(long)DAT_0012b4bc" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "puVar17 = local_40[0] + local_48;" (assignment_expression "puVar17 = local_40[0] + local_48" identifier = (binary_expression "local_40[0] + local_48" (subscript_expression "local_40[0]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "iVar13 = (int)((ulong)param_2[6] % uVar19);" (assignment_expression "iVar13 = (int)((ulong)param_2[6] % uVar19)" identifier = (cast_expression "(int)((ulong)param_2[6] % uVar19)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulong)param_2[6] % uVar19)" ( (binary_expression "(ulong)param_2[6] % uVar19" (cast_expression "(ulong)param_2[6]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_2[6]" identifier [ number_literal ])) % identifier) )))) ;) (expression_statement "puVar20 = local_40[0] + (lVar7 - iVar13);" (assignment_expression "puVar20 = local_40[0] + (lVar7 - iVar13)" identifier = (binary_expression "local_40[0] + (lVar7 - iVar13)" (subscript_expression "local_40[0]" identifier [ number_literal ]) + (parenthesized_expression "(lVar7 - iVar13)" ( (binary_expression "lVar7 - iVar13" identifier - identifier) )))) ;) (if_statement "if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }" if (parenthesized_expression "(DAT_0012b4bc < iVar13)" ( (binary_expression "DAT_0012b4bc < iVar13" identifier < identifier) )) (compound_statement "{\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }" { (expression_statement "puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;" (assignment_expression "puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19" identifier = (binary_expression "local_40[0] + (lVar7 - iVar13) + uVar19" (binary_expression "local_40[0] + (lVar7 - iVar13)" (subscript_expression "local_40[0]" identifier [ number_literal ]) + (parenthesized_expression "(lVar7 - iVar13)" ( (binary_expression "lVar7 - iVar13" identifier - identifier) ))) + identifier)) ;) })) (if_statement "if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }" if (parenthesized_expression "(puVar20 < puVar17)" ( (binary_expression "puVar20 < puVar17" identifier < identifier) )) (compound_statement "{\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }" { (expression_statement "puVar12 = puVar20 + (DAT_0012b4b8 - 1);" (assignment_expression "puVar12 = puVar20 + (DAT_0012b4b8 - 1)" identifier = (binary_expression "puVar20 + (DAT_0012b4b8 - 1)" identifier + (parenthesized_expression "(DAT_0012b4b8 - 1)" ( (binary_expression "DAT_0012b4b8 - 1" identifier - number_literal) )))) ;) (expression_statement "lVar21 = (long)puVar17 - (long)puVar20;" (assignment_expression "lVar21 = (long)puVar17 - (long)puVar20" identifier = (binary_expression "(long)puVar17 - (long)puVar20" (cast_expression "(long)puVar17" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)puVar20" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "puVar16 = local_40[0];" (assignment_expression "puVar16 = local_40[0]" identifier = (subscript_expression "local_40[0]" identifier [ number_literal ])) ;) (do_statement "do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);" do (compound_statement "{\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            }" { (if_statement "if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }" if (parenthesized_expression "((0 < iVar5) && (puVar20 < puVar17))" ( (binary_expression "(0 < iVar5) && (puVar20 < puVar17)" (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) && (parenthesized_expression "(puVar20 < puVar17)" ( (binary_expression "puVar20 < puVar17" identifier < identifier) ))) )) (compound_statement "{\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }" { (expression_statement "puVar1 = puVar16 + lVar21;" (assignment_expression "puVar1 = puVar16 + lVar21" identifier = (binary_expression "puVar16 + lVar21" identifier + identifier)) ;) (expression_statement "puVar8 = puVar20;" (assignment_expression "puVar8 = puVar20" identifier = identifier) ;) (expression_statement "puVar15 = puVar16;" (assignment_expression "puVar15 = puVar16" identifier = identifier) ;) (do_statement "do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);" do (compound_statement "{\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                }" { (expression_statement "puVar16 = puVar15 + 1;" (assignment_expression "puVar16 = puVar15 + 1" identifier = (binary_expression "puVar15 + 1" identifier + number_literal)) ;) (expression_statement "*puVar15 = *puVar8;" (assignment_expression "*puVar15 = *puVar8" (pointer_expression "*puVar15" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (if_statement "if (puVar12 == puVar8) break;" if (parenthesized_expression "(puVar12 == puVar8)" ( (binary_expression "puVar12 == puVar8" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) (expression_statement "puVar15 = puVar16;" (assignment_expression "puVar15 = puVar16" identifier = identifier) ;) }) while (parenthesized_expression "(puVar16 != puVar1)" ( (binary_expression "puVar16 != puVar1" identifier != identifier) )) ;) })) (expression_statement "puVar20 = puVar20 + uVar19;" (assignment_expression "puVar20 = puVar20 + uVar19" identifier = (binary_expression "puVar20 + uVar19" identifier + identifier)) ;) (expression_statement "puVar12 = puVar12 + uVar19;" (assignment_expression "puVar12 = puVar12 + uVar19" identifier = (binary_expression "puVar12 + uVar19" identifier + identifier)) ;) (expression_statement "lVar21 = lVar21 - uVar19;" (assignment_expression "lVar21 = lVar21 - uVar19" identifier = (binary_expression "lVar21 - uVar19" identifier - identifier)) ;) }) while (parenthesized_expression "(puVar20 < puVar17)" ( (binary_expression "puVar20 < puVar17" identifier < identifier) )) ;) })) (expression_statement "local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);" (assignment_expression "local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19)" identifier = (binary_expression "(long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19)" (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * (parenthesized_expression "((((uVar19 - 1) - lVar7) + local_48) / uVar19)" ( (binary_expression "(((uVar19 - 1) - lVar7) + local_48) / uVar19" (parenthesized_expression "(((uVar19 - 1) - lVar7) + local_48)" ( (binary_expression "((uVar19 - 1) - lVar7) + local_48" (parenthesized_expression "((uVar19 - 1) - lVar7)" ( (binary_expression "(uVar19 - 1) - lVar7" (parenthesized_expression "(uVar19 - 1)" ( (binary_expression "uVar19 - 1" identifier - number_literal) )) - identifier) )) + identifier) )) / identifier) )))) ;) (expression_statement "uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;" (assignment_expression "uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19" identifier = (binary_expression "*(ulong *)(lVar3 + 0x30) / uVar19" (pointer_expression "*(ulong *)(lVar3 + 0x30)" * (cast_expression "(ulong *)(lVar3 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) / identifier)) ;) (if_statement "if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }" if (parenthesized_expression "(iVar6 < iVar13)" ( (binary_expression "iVar6 < iVar13" identifier < identifier) )) (compound_statement "{\n            uVar19 = uVar19 + 1;\n          }" { (expression_statement "uVar19 = uVar19 + 1;" (assignment_expression "uVar19 = uVar19 + 1" identifier = (binary_expression "uVar19 + 1" identifier + number_literal)) ;) })) (expression_statement "*(ulong *)(lVar3 + 0x30) = uVar19;" (assignment_expression "*(ulong *)(lVar3 + 0x30) = uVar19" (pointer_expression "*(ulong *)(lVar3 + 0x30)" * (cast_expression "(ulong *)(lVar3 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);" (assignment_expression "iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0)" identifier = (call_expression "bfd_set_section_contents(param_3,lVar3,local_40[0],0)" identifier (argument_list "(param_3,lVar3,local_40[0],0)" ( identifier , identifier , (subscript_expression "local_40[0]" identifier [ number_literal ]) , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }" { (expression_statement "DAT_0012cb24 = 1;" (assignment_expression "DAT_0012cb24 = 1" identifier = number_literal) ;) (expression_statement "FUN_0011c0d0(0,param_3,lVar3,0);" (call_expression "FUN_0011c0d0(0,param_3,lVar3,0)" identifier (argument_list "(0,param_3,lVar3,0)" ( number_literal , identifier , identifier , number_literal ))) ;) (expression_statement "free(local_40[0]);" (call_expression "free(local_40[0])" identifier (argument_list "(local_40[0])" ( (subscript_expression "local_40[0]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n          free(local_40[0]);\n        }" else (compound_statement "{\n          free(local_40[0]);\n        }" { (expression_statement "free(local_40[0]);" (call_expression "free(local_40[0])" identifier (argument_list "(local_40[0])" ( (subscript_expression "local_40[0]" identifier [ number_literal ]) ))) ;) }))) }))) }))) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) & LIT) )) == 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 IDENT = (call_expression IDENT (argument_list ( (pointer_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 IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , LIT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (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 ( IDENT , IDENT , IDENT , IDENT , (pointer_expression & IDENT) )))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT % IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (subscript_expression IDENT [ LIT ]) [ IDENT ])) ;) (expression_statement (assignment_expression (subscript_expression (subscript_expression IDENT [ LIT ]) [ IDENT ]) = (subscript_expression (subscript_expression IDENT [ LIT ]) [ (binary_expression IDENT - IDENT) ])) ;) (expression_statement (assignment_expression (subscript_expression (subscript_expression IDENT [ LIT ]) [ (binary_expression IDENT - IDENT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) % IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) - IDENT) )) + IDENT) )) / IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) / IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (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) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) }))) }))) }))) })) (return_statement return ;) })))
(function_definition "void FUN_00108850(undefined8 param_1,undefined8 *param_2,undefined8 param_3)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined1 *puVar8;\n  void *__s;\n  undefined8 uVar9;\n  ulong uVar10;\n  ulong uVar11;\n  undefined1 *puVar12;\n  int iVar13;\n  ulong uVar14;\n  undefined1 *puVar15;\n  undefined1 *puVar16;\n  undefined1 *puVar17;\n  ulong uVar18;\n  ulong uVar19;\n  undefined1 *puVar20;\n  long lVar21;\n  ulong local_48;\n  undefined1 *local_40 [2];\n  \n  iVar5 = FUN_001087b0(param_1,param_2,1);\n  if (iVar5 == 0) {\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00108850(undefined8 param_1,undefined8 *param_2,undefined8 param_3)" (identifier "FUN_00108850") (parameter_list "(undefined8 param_1,undefined8 *param_2,undefined8 param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined1 *puVar8;\n  void *__s;\n  undefined8 uVar9;\n  ulong uVar10;\n  ulong uVar11;\n  undefined1 *puVar12;\n  int iVar13;\n  ulong uVar14;\n  undefined1 *puVar15;\n  undefined1 *puVar16;\n  undefined1 *puVar17;\n  ulong uVar18;\n  ulong uVar19;\n  undefined1 *puVar20;\n  long lVar21;\n  ulong local_48;\n  undefined1 *local_40 [2];\n  \n  iVar5 = FUN_001087b0(param_1,param_2,1);\n  if (iVar5 == 0) {\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined1 uVar2;" (type_identifier "undefined1") (identifier "uVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "long lVar7;" (sized_type_specifier "long" (long "long")) (identifier "lVar7") (; ";")) (declaration "undefined1 *puVar8;" (type_identifier "undefined1") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "void *__s;" (primitive_type "void") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined8 uVar9;" (type_identifier "undefined8") (identifier "uVar9") (; ";")) (declaration "ulong uVar10;" (type_identifier "ulong") (identifier "uVar10") (; ";")) (declaration "ulong uVar11;" (type_identifier "ulong") (identifier "uVar11") (; ";")) (declaration "undefined1 *puVar12;" (type_identifier "undefined1") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "ulong uVar14;" (type_identifier "ulong") (identifier "uVar14") (; ";")) (declaration "undefined1 *puVar15;" (type_identifier "undefined1") (pointer_declarator "*puVar15" (* "*") (identifier "puVar15")) (; ";")) (declaration "undefined1 *puVar16;" (type_identifier "undefined1") (pointer_declarator "*puVar16" (* "*") (identifier "puVar16")) (; ";")) (declaration "undefined1 *puVar17;" (type_identifier "undefined1") (pointer_declarator "*puVar17" (* "*") (identifier "puVar17")) (; ";")) (declaration "ulong uVar18;" (type_identifier "ulong") (identifier "uVar18") (; ";")) (declaration "ulong uVar19;" (type_identifier "ulong") (identifier "uVar19") (; ";")) (declaration "undefined1 *puVar20;" (type_identifier "undefined1") (pointer_declarator "*puVar20" (* "*") (identifier "puVar20")) (; ";")) (declaration "long lVar21;" (sized_type_specifier "long" (long "long")) (identifier "lVar21") (; ";")) (declaration "ulong local_48;" (type_identifier "ulong") (identifier "local_48") (; ";")) (declaration "undefined1 *local_40 [2];" (type_identifier "undefined1") (pointer_declarator "*local_40 [2]" (* "*") (array_declarator "local_40 [2]" (identifier "local_40") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar5 = FUN_001087b0(param_1,param_2,1);" (assignment_expression "iVar5 = FUN_001087b0(param_1,param_2,1)" (identifier "iVar5") (= "=") (call_expression "FUN_001087b0(param_1,param_2,1)" (identifier "FUN_001087b0") (argument_list "(param_1,param_2,1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_48 = param_2[7];\n    lVar3 = param_2[0xd];\n    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "local_48 = param_2[7];" (assignment_expression "local_48 = param_2[7]" (identifier "local_48") (= "=") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "lVar3 = param_2[0xd];" (assignment_expression "lVar3 = param_2[0xd]" (identifier "lVar3") (= "=") (subscript_expression "param_2[0xd]" (identifier "param_2") ([ "[") (number_literal "0xd") (] "]"))) (; ";")) (if_statement "if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }\n    else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }" (if "if") (parenthesized_expression "(((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0))" (( "(") (binary_expression "((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)" (parenthesized_expression "((*(byte *)((long)param_2 + 0x21) & 1) == 0)" (( "(") (binary_expression "(*(byte *)((long)param_2 + 0x21) & 1) == 0" (parenthesized_expression "(*(byte *)((long)param_2 + 0x21) & 1)" (( "(") (binary_expression "*(byte *)((long)param_2 + 0x21) & 1" (pointer_expression "*(byte *)((long)param_2 + 0x21)" (* "*") (cast_expression "(byte *)((long)param_2 + 0x21)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0x21)" (( "(") (binary_expression "(long)param_2 + 0x21" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0x21")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((*(byte *)(lVar3 + 0x21) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(lVar3 + 0x21) & 1) == 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x21) & 1)" (( "(") (binary_expression "*(byte *)(lVar3 + 0x21) & 1" (pointer_expression "*(byte *)(lVar3 + 0x21)" (* "*") (cast_expression "(byte *)(lVar3 + 0x21)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x21)" (( "(") (binary_expression "lVar3 + 0x21" (identifier "lVar3") (+ "+") (number_literal "0x21")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      lVar7 = FUN_00107360(*param_2,0,0x40);\n      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }\n    }" ({ "{") (expression_statement "lVar7 = FUN_00107360(*param_2,0,0x40);" (assignment_expression "lVar7 = FUN_00107360(*param_2,0,0x40)" (identifier "lVar7") (= "=") (call_expression "FUN_00107360(*param_2,0,0x40)" (identifier "FUN_00107360") (argument_list "(*param_2,0,0x40)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (number_literal "0") (, ",") (number_literal "0x40") () ")")))) (; ";")) (if_statement "if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }" (if "if") (parenthesized_expression "((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0))" (( "(") (binary_expression "(lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)" (parenthesized_expression "(lVar7 != 0)" (( "(") (binary_expression "lVar7 != 0" (identifier "lVar7") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(lVar7 + 0x29) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(lVar7 + 0x29) & 1) != 0" (parenthesized_expression "(*(byte *)(lVar7 + 0x29) & 1)" (( "(") (binary_expression "*(byte *)(lVar7 + 0x29) & 1" (pointer_expression "*(byte *)(lVar7 + 0x29)" (* "*") (cast_expression "(byte *)(lVar7 + 0x29)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar7 + 0x29)" (( "(") (binary_expression "lVar7 + 0x29" (identifier "lVar7") (+ "+") (number_literal "0x29")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        __s = (void *)xmalloc(local_48);\n        uVar19 = local_48;\n        memset(__s,0,local_48);\n        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }\n        free(__s);\n        return;\n      }" ({ "{") (expression_statement "__s = (void *)xmalloc(local_48);" (assignment_expression "__s = (void *)xmalloc(local_48)" (identifier "__s") (= "=") (cast_expression "(void *)xmalloc(local_48)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(local_48)" (identifier "xmalloc") (argument_list "(local_48)" (( "(") (identifier "local_48") () ")"))))) (; ";")) (expression_statement "uVar19 = local_48;" (assignment_expression "uVar19 = local_48" (identifier "uVar19") (= "=") (identifier "local_48")) (; ";")) (expression_statement "memset(__s,0,local_48);" (call_expression "memset(__s,0,local_48)" (identifier "memset") (argument_list "(__s,0,local_48)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (identifier "local_48") () ")"))) (; ";")) (expression_statement "iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);" (assignment_expression "iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19)" (identifier "iVar5") (= "=") (call_expression "bfd_set_section_contents(param_3,lVar3,__s,0,uVar19)" (identifier "bfd_set_section_contents") (argument_list "(param_3,lVar3,__s,0,uVar19)" (( "(") (identifier "param_3") (, ",") (identifier "lVar3") (, ",") (identifier "__s") (, ",") (number_literal "0") (, ",") (identifier "uVar19") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n        }" ({ "{") (expression_statement "DAT_0012cb24 = 1;" (assignment_expression "DAT_0012cb24 = 1" (identifier "DAT_0012cb24") (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_0011c0d0(0,param_3,lVar3,0);" (call_expression "FUN_0011c0d0(0,param_3,lVar3,0)" (identifier "FUN_0011c0d0") (argument_list "(0,param_3,lVar3,0)" (( "(") (number_literal "0") (, ",") (identifier "param_3") (, ",") (identifier "lVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }" (else "else") (compound_statement "{\n      local_40[0] = (undefined1 *)0x0;\n      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);\n      if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }\n    }" ({ "{") (expression_statement "local_40[0] = (undefined1 *)0x0;" (assignment_expression "local_40[0] = (undefined1 *)0x0" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (= "=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);" (assignment_expression "iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40)" (identifier "iVar5") (= "=") (call_expression "bfd_get_full_section_contents(param_1,param_2,local_40)" (identifier "bfd_get_full_section_contents") (argument_list "(param_1,param_2,local_40)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "local_40") () ")")))) (; ";")) (if_statement "if ((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)) {\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }\n      else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }" (if "if") (parenthesized_expression "((iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0))" (( "(") (binary_expression "(iVar5 == 0) ||\n         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)" (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0)" (( "(") (comma_expression "iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),\n         iVar5 = DAT_0012c9f0, iVar6 == 0" (assignment_expression "iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48)" (identifier "iVar6") (= "=") (call_expression "bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48)" (identifier "bfd_convert_section_contents") (argument_list "(param_1,param_2,param_3,local_40,&local_48)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "local_40") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")")))) (, ",") (comma_expression "iVar5 = DAT_0012c9f0, iVar6 == 0" (assignment_expression "iVar5 = DAT_0012c9f0" (identifier "iVar5") (= "=") (identifier "DAT_0012c9f0")) (, ",") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n        DAT_0012cb24 = 1;\n        FUN_0011c0d0(0,param_1,param_2,0);\n        free(local_40[0]);\n      }" ({ "{") (expression_statement "DAT_0012cb24 = 1;" (assignment_expression "DAT_0012cb24 = 1" (identifier "DAT_0012cb24") (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_0011c0d0(0,param_1,param_2,0);" (call_expression "FUN_0011c0d0(0,param_1,param_2,0)" (identifier "FUN_0011c0d0") (argument_list "(0,param_1,param_2,0)" (( "(") (number_literal "0") (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "free(local_40[0]);" (call_expression "free(local_40[0])" (identifier "free") (argument_list "(local_40[0])" (( "(") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }" (else "else") (compound_statement "{\n        if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }\n        iVar6 = DAT_0012b4bc;\n        iVar5 = DAT_0012b4b8;\n        if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }\n        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);\n        if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }\n      }" ({ "{") (if_statement "if (DAT_0012c9f0 != 0) {\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }" (if "if") (parenthesized_expression "(DAT_0012c9f0 != 0)" (( "(") (binary_expression "DAT_0012c9f0 != 0" (identifier "DAT_0012c9f0") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar19 = (ulong)DAT_0012c9f0;\n          if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }\n          if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }\n        }" ({ "{") (expression_statement "uVar19 = (ulong)DAT_0012c9f0;" (assignment_expression "uVar19 = (ulong)DAT_0012c9f0" (identifier "uVar19") (= "=") (cast_expression "(ulong)DAT_0012c9f0" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "DAT_0012c9f0"))) (; ";")) (if_statement "if (local_48 % uVar19 != 0) {\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }" (if "if") (parenthesized_expression "(local_48 % uVar19 != 0)" (( "(") (binary_expression "local_48 % uVar19 != 0" (binary_expression "local_48 % uVar19" (identifier "local_48") (% "%") (identifier "uVar19")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            uVar4 = *param_2;\n            uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);\n                    \n            FUN_0011b5c0(uVar9,uVar4,iVar5);\n          }" ({ "{") (expression_statement "uVar4 = *param_2;" (assignment_expression "uVar4 = *param_2" (identifier "uVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5);" (assignment_expression "uVar9 = dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5)" (identifier "uVar9") (= "=") (call_expression "dcgettext(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5)" (identifier "dcgettext") (argument_list "(0,\n                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"\n                              ,5)" (( "(") (number_literal "0") (, ",") (string_literal ""cannot reverse bytes: length of section %s must be evenly divisible by %d"" (" """) (string_content "cannot reverse bytes: length of section %s must be evenly divisible by %d") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0011b5c0(uVar9,uVar4,iVar5);" (call_expression "FUN_0011b5c0(uVar9,uVar4,iVar5)" (identifier "FUN_0011b5c0") (argument_list "(uVar9,uVar4,iVar5)" (( "(") (identifier "uVar9") (, ",") (identifier "uVar4") (, ",") (identifier "iVar5") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_48 != 0) {\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }" (if "if") (parenthesized_expression "(local_48 != 0)" (( "(") (binary_expression "local_48 != 0" (identifier "local_48") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            lVar7 = uVar19 - 1;\n            iVar5 = DAT_0012c9f0 / 2;\n            uVar14 = 0;\n            uVar18 = (long)iVar5;\n            do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);\n          }" ({ "{") (expression_statement "lVar7 = uVar19 - 1;" (assignment_expression "lVar7 = uVar19 - 1" (identifier "lVar7") (= "=") (binary_expression "uVar19 - 1" (identifier "uVar19") (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = DAT_0012c9f0 / 2;" (assignment_expression "iVar5 = DAT_0012c9f0 / 2" (identifier "iVar5") (= "=") (binary_expression "DAT_0012c9f0 / 2" (identifier "DAT_0012c9f0") (/ "/") (number_literal "2"))) (; ";")) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" (identifier "uVar14") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar18 = (long)iVar5;" (assignment_expression "uVar18 = (long)iVar5" (identifier "uVar18") (= "=") (cast_expression "(long)iVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar5"))) (; ";")) (do_statement "do {\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            } while (uVar14 < local_48);" (do "do") (compound_statement "{\n              uVar10 = uVar14;\n              if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }\n              uVar14 = uVar14 + uVar19;\n              lVar7 = lVar7 + uVar19 * 2;\n              uVar18 = uVar18 + uVar19;\n            }" ({ "{") (expression_statement "uVar10 = uVar14;" (assignment_expression "uVar10 = uVar14" (identifier "uVar10") (= "=") (identifier "uVar14")) (; ";")) (if_statement "if ((long)iVar5 != 0) {\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }" (if "if") (parenthesized_expression "((long)iVar5 != 0)" (( "(") (binary_expression "(long)iVar5 != 0" (cast_expression "(long)iVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar5")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);\n              }" ({ "{") (do_statement "do {\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                } while (uVar11 != uVar18);" (do "do") (compound_statement "{\n                  uVar11 = uVar10 + 1;\n                  uVar2 = local_40[0][uVar10];\n                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];\n                  local_40[0][lVar7 - uVar10] = uVar2;\n                  uVar10 = uVar11;\n                }" ({ "{") (expression_statement "uVar11 = uVar10 + 1;" (assignment_expression "uVar11 = uVar10 + 1" (identifier "uVar11") (= "=") (binary_expression "uVar10 + 1" (identifier "uVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = local_40[0][uVar10];" (assignment_expression "uVar2 = local_40[0][uVar10]" (identifier "uVar2") (= "=") (subscript_expression "local_40[0][uVar10]" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) ([ "[") (identifier "uVar10") (] "]"))) (; ";")) (expression_statement "local_40[0][uVar10] = local_40[0][lVar7 - uVar10];" (assignment_expression "local_40[0][uVar10] = local_40[0][lVar7 - uVar10]" (subscript_expression "local_40[0][uVar10]" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) ([ "[") (identifier "uVar10") (] "]")) (= "=") (subscript_expression "local_40[0][lVar7 - uVar10]" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) ([ "[") (binary_expression "lVar7 - uVar10" (identifier "lVar7") (- "-") (identifier "uVar10")) (] "]"))) (; ";")) (expression_statement "local_40[0][lVar7 - uVar10] = uVar2;" (assignment_expression "local_40[0][lVar7 - uVar10] = uVar2" (subscript_expression "local_40[0][lVar7 - uVar10]" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) ([ "[") (binary_expression "lVar7 - uVar10" (identifier "lVar7") (- "-") (identifier "uVar10")) (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar10 = uVar11;" (assignment_expression "uVar10 = uVar11" (identifier "uVar10") (= "=") (identifier "uVar11")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar11 != uVar18)" (( "(") (binary_expression "uVar11 != uVar18" (identifier "uVar11") (!= "!=") (identifier "uVar18")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar14 = uVar14 + uVar19;" (assignment_expression "uVar14 = uVar14 + uVar19" (identifier "uVar14") (= "=") (binary_expression "uVar14 + uVar19" (identifier "uVar14") (+ "+") (identifier "uVar19"))) (; ";")) (expression_statement "lVar7 = lVar7 + uVar19 * 2;" (assignment_expression "lVar7 = lVar7 + uVar19 * 2" (identifier "lVar7") (= "=") (binary_expression "lVar7 + uVar19 * 2" (identifier "lVar7") (+ "+") (binary_expression "uVar19 * 2" (identifier "uVar19") (* "*") (number_literal "2")))) (; ";")) (expression_statement "uVar18 = uVar18 + uVar19;" (assignment_expression "uVar18 = uVar18 + uVar19" (identifier "uVar18") (= "=") (binary_expression "uVar18 + uVar19" (identifier "uVar18") (+ "+") (identifier "uVar19"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar14 < local_48)" (( "(") (binary_expression "uVar14 < local_48" (identifier "uVar14") (< "<") (identifier "local_48")) () ")")) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar6 = DAT_0012b4bc;" (assignment_expression "iVar6 = DAT_0012b4bc" (identifier "iVar6") (= "=") (identifier "DAT_0012b4bc")) (; ";")) (expression_statement "iVar5 = DAT_0012b4b8;" (assignment_expression "iVar5 = DAT_0012b4b8" (identifier "iVar5") (= "=") (identifier "DAT_0012b4b8")) (; ";")) (if_statement "if (-1 < DAT_0012b4bc) {\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }" (if "if") (parenthesized_expression "(-1 < DAT_0012b4bc)" (( "(") (binary_expression "-1 < DAT_0012b4bc" (number_literal "-1") (< "<") (identifier "DAT_0012b4bc")) () ")")) (compound_statement "{\n          uVar19 = (ulong)DAT_0012cb30;\n          lVar7 = (long)DAT_0012b4bc;\n          puVar17 = local_40[0] + local_48;\n          iVar13 = (int)((ulong)param_2[6] % uVar19);\n          puVar20 = local_40[0] + (lVar7 - iVar13);\n          if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }\n          if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }\n          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);\n          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;\n          if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }\n          *(ulong *)(lVar3 + 0x30) = uVar19;\n        }" ({ "{") (expression_statement "uVar19 = (ulong)DAT_0012cb30;" (assignment_expression "uVar19 = (ulong)DAT_0012cb30" (identifier "uVar19") (= "=") (cast_expression "(ulong)DAT_0012cb30" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "DAT_0012cb30"))) (; ";")) (expression_statement "lVar7 = (long)DAT_0012b4bc;" (assignment_expression "lVar7 = (long)DAT_0012b4bc" (identifier "lVar7") (= "=") (cast_expression "(long)DAT_0012b4bc" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "DAT_0012b4bc"))) (; ";")) (expression_statement "puVar17 = local_40[0] + local_48;" (assignment_expression "puVar17 = local_40[0] + local_48" (identifier "puVar17") (= "=") (binary_expression "local_40[0] + local_48" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (+ "+") (identifier "local_48"))) (; ";")) (expression_statement "iVar13 = (int)((ulong)param_2[6] % uVar19);" (assignment_expression "iVar13 = (int)((ulong)param_2[6] % uVar19)" (identifier "iVar13") (= "=") (cast_expression "(int)((ulong)param_2[6] % uVar19)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulong)param_2[6] % uVar19)" (( "(") (binary_expression "(ulong)param_2[6] % uVar19" (cast_expression "(ulong)param_2[6]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]"))) (% "%") (identifier "uVar19")) () ")")))) (; ";")) (expression_statement "puVar20 = local_40[0] + (lVar7 - iVar13);" (assignment_expression "puVar20 = local_40[0] + (lVar7 - iVar13)" (identifier "puVar20") (= "=") (binary_expression "local_40[0] + (lVar7 - iVar13)" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (+ "+") (parenthesized_expression "(lVar7 - iVar13)" (( "(") (binary_expression "lVar7 - iVar13" (identifier "lVar7") (- "-") (identifier "iVar13")) () ")")))) (; ";")) (if_statement "if (DAT_0012b4bc < iVar13) {\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }" (if "if") (parenthesized_expression "(DAT_0012b4bc < iVar13)" (( "(") (binary_expression "DAT_0012b4bc < iVar13" (identifier "DAT_0012b4bc") (< "<") (identifier "iVar13")) () ")")) (compound_statement "{\n            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;\n          }" ({ "{") (expression_statement "puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;" (assignment_expression "puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19" (identifier "puVar20") (= "=") (binary_expression "local_40[0] + (lVar7 - iVar13) + uVar19" (binary_expression "local_40[0] + (lVar7 - iVar13)" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (+ "+") (parenthesized_expression "(lVar7 - iVar13)" (( "(") (binary_expression "lVar7 - iVar13" (identifier "lVar7") (- "-") (identifier "iVar13")) () ")"))) (+ "+") (identifier "uVar19"))) (; ";")) (} "}"))) (if_statement "if (puVar20 < puVar17) {\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }" (if "if") (parenthesized_expression "(puVar20 < puVar17)" (( "(") (binary_expression "puVar20 < puVar17" (identifier "puVar20") (< "<") (identifier "puVar17")) () ")")) (compound_statement "{\n            puVar12 = puVar20 + (DAT_0012b4b8 - 1);\n            lVar21 = (long)puVar17 - (long)puVar20;\n            puVar16 = local_40[0];\n            do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);\n          }" ({ "{") (expression_statement "puVar12 = puVar20 + (DAT_0012b4b8 - 1);" (assignment_expression "puVar12 = puVar20 + (DAT_0012b4b8 - 1)" (identifier "puVar12") (= "=") (binary_expression "puVar20 + (DAT_0012b4b8 - 1)" (identifier "puVar20") (+ "+") (parenthesized_expression "(DAT_0012b4b8 - 1)" (( "(") (binary_expression "DAT_0012b4b8 - 1" (identifier "DAT_0012b4b8") (- "-") (number_literal "1")) () ")")))) (; ";")) (expression_statement "lVar21 = (long)puVar17 - (long)puVar20;" (assignment_expression "lVar21 = (long)puVar17 - (long)puVar20" (identifier "lVar21") (= "=") (binary_expression "(long)puVar17 - (long)puVar20" (cast_expression "(long)puVar17" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar17")) (- "-") (cast_expression "(long)puVar20" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar20")))) (; ";")) (expression_statement "puVar16 = local_40[0];" (assignment_expression "puVar16 = local_40[0]" (identifier "puVar16") (= "=") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]"))) (; ";")) (do_statement "do {\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            } while (puVar20 < puVar17);" (do "do") (compound_statement "{\n              if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }\n              puVar20 = puVar20 + uVar19;\n              puVar12 = puVar12 + uVar19;\n              lVar21 = lVar21 - uVar19;\n            }" ({ "{") (if_statement "if ((0 < iVar5) && (puVar20 < puVar17)) {\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }" (if "if") (parenthesized_expression "((0 < iVar5) && (puVar20 < puVar17))" (( "(") (binary_expression "(0 < iVar5) && (puVar20 < puVar17)" (parenthesized_expression "(0 < iVar5)" (( "(") (binary_expression "0 < iVar5" (number_literal "0") (< "<") (identifier "iVar5")) () ")")) (&& "&&") (parenthesized_expression "(puVar20 < puVar17)" (( "(") (binary_expression "puVar20 < puVar17" (identifier "puVar20") (< "<") (identifier "puVar17")) () ")"))) () ")")) (compound_statement "{\n                puVar1 = puVar16 + lVar21;\n                puVar8 = puVar20;\n                puVar15 = puVar16;\n                do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);\n              }" ({ "{") (expression_statement "puVar1 = puVar16 + lVar21;" (assignment_expression "puVar1 = puVar16 + lVar21" (identifier "puVar1") (= "=") (binary_expression "puVar16 + lVar21" (identifier "puVar16") (+ "+") (identifier "lVar21"))) (; ";")) (expression_statement "puVar8 = puVar20;" (assignment_expression "puVar8 = puVar20" (identifier "puVar8") (= "=") (identifier "puVar20")) (; ";")) (expression_statement "puVar15 = puVar16;" (assignment_expression "puVar15 = puVar16" (identifier "puVar15") (= "=") (identifier "puVar16")) (; ";")) (do_statement "do {\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                } while (puVar16 != puVar1);" (do "do") (compound_statement "{\n                  puVar16 = puVar15 + 1;\n                  *puVar15 = *puVar8;\n                  if (puVar12 == puVar8) break;\n                  puVar8 = puVar8 + 1;\n                  puVar15 = puVar16;\n                }" ({ "{") (expression_statement "puVar16 = puVar15 + 1;" (assignment_expression "puVar16 = puVar15 + 1" (identifier "puVar16") (= "=") (binary_expression "puVar15 + 1" (identifier "puVar15") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar15 = *puVar8;" (assignment_expression "*puVar15 = *puVar8" (pointer_expression "*puVar15" (* "*") (identifier "puVar15")) (= "=") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) (; ";")) (if_statement "if (puVar12 == puVar8) break;" (if "if") (parenthesized_expression "(puVar12 == puVar8)" (( "(") (binary_expression "puVar12 == puVar8" (identifier "puVar12") (== "==") (identifier "puVar8")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar8 + 1" (identifier "puVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar15 = puVar16;" (assignment_expression "puVar15 = puVar16" (identifier "puVar15") (= "=") (identifier "puVar16")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar16 != puVar1)" (( "(") (binary_expression "puVar16 != puVar1" (identifier "puVar16") (!= "!=") (identifier "puVar1")) () ")")) (; ";")) (} "}"))) (expression_statement "puVar20 = puVar20 + uVar19;" (assignment_expression "puVar20 = puVar20 + uVar19" (identifier "puVar20") (= "=") (binary_expression "puVar20 + uVar19" (identifier "puVar20") (+ "+") (identifier "uVar19"))) (; ";")) (expression_statement "puVar12 = puVar12 + uVar19;" (assignment_expression "puVar12 = puVar12 + uVar19" (identifier "puVar12") (= "=") (binary_expression "puVar12 + uVar19" (identifier "puVar12") (+ "+") (identifier "uVar19"))) (; ";")) (expression_statement "lVar21 = lVar21 - uVar19;" (assignment_expression "lVar21 = lVar21 - uVar19" (identifier "lVar21") (= "=") (binary_expression "lVar21 - uVar19" (identifier "lVar21") (- "-") (identifier "uVar19"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar20 < puVar17)" (( "(") (binary_expression "puVar20 < puVar17" (identifier "puVar20") (< "<") (identifier "puVar17")) () ")")) (; ";")) (} "}"))) (expression_statement "local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);" (assignment_expression "local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19)" (identifier "local_48") (= "=") (binary_expression "(long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19)" (cast_expression "(long)iVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar5")) (* "*") (parenthesized_expression "((((uVar19 - 1) - lVar7) + local_48) / uVar19)" (( "(") (binary_expression "(((uVar19 - 1) - lVar7) + local_48) / uVar19" (parenthesized_expression "(((uVar19 - 1) - lVar7) + local_48)" (( "(") (binary_expression "((uVar19 - 1) - lVar7) + local_48" (parenthesized_expression "((uVar19 - 1) - lVar7)" (( "(") (binary_expression "(uVar19 - 1) - lVar7" (parenthesized_expression "(uVar19 - 1)" (( "(") (binary_expression "uVar19 - 1" (identifier "uVar19") (- "-") (number_literal "1")) () ")")) (- "-") (identifier "lVar7")) () ")")) (+ "+") (identifier "local_48")) () ")")) (/ "/") (identifier "uVar19")) () ")")))) (; ";")) (expression_statement "uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;" (assignment_expression "uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19" (identifier "uVar19") (= "=") (binary_expression "*(ulong *)(lVar3 + 0x30) / uVar19" (pointer_expression "*(ulong *)(lVar3 + 0x30)" (* "*") (cast_expression "(ulong *)(lVar3 + 0x30)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x30)" (( "(") (binary_expression "lVar3 + 0x30" (identifier "lVar3") (+ "+") (number_literal "0x30")) () ")")))) (/ "/") (identifier "uVar19"))) (; ";")) (if_statement "if (iVar6 < iVar13) {\n            uVar19 = uVar19 + 1;\n          }" (if "if") (parenthesized_expression "(iVar6 < iVar13)" (( "(") (binary_expression "iVar6 < iVar13" (identifier "iVar6") (< "<") (identifier "iVar13")) () ")")) (compound_statement "{\n            uVar19 = uVar19 + 1;\n          }" ({ "{") (expression_statement "uVar19 = uVar19 + 1;" (assignment_expression "uVar19 = uVar19 + 1" (identifier "uVar19") (= "=") (binary_expression "uVar19 + 1" (identifier "uVar19") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(ulong *)(lVar3 + 0x30) = uVar19;" (assignment_expression "*(ulong *)(lVar3 + 0x30) = uVar19" (pointer_expression "*(ulong *)(lVar3 + 0x30)" (* "*") (cast_expression "(ulong *)(lVar3 + 0x30)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x30)" (( "(") (binary_expression "lVar3 + 0x30" (identifier "lVar3") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "uVar19")) (; ";")) (} "}"))) (expression_statement "iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);" (assignment_expression "iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0)" (identifier "iVar5") (= "=") (call_expression "bfd_set_section_contents(param_3,lVar3,local_40[0],0)" (identifier "bfd_set_section_contents") (argument_list "(param_3,lVar3,local_40[0],0)" (( "(") (identifier "param_3") (, ",") (identifier "lVar3") (, ",") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }\n        else {\n          free(local_40[0]);\n        }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          DAT_0012cb24 = 1;\n          FUN_0011c0d0(0,param_3,lVar3,0);\n          free(local_40[0]);\n        }" ({ "{") (expression_statement "DAT_0012cb24 = 1;" (assignment_expression "DAT_0012cb24 = 1" (identifier "DAT_0012cb24") (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_0011c0d0(0,param_3,lVar3,0);" (call_expression "FUN_0011c0d0(0,param_3,lVar3,0)" (identifier "FUN_0011c0d0") (argument_list "(0,param_3,lVar3,0)" (( "(") (number_literal "0") (, ",") (identifier "param_3") (, ",") (identifier "lVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "free(local_40[0]);" (call_expression "free(local_40[0])" (identifier "free") (argument_list "(local_40[0])" (( "(") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n          free(local_40[0]);\n        }" (else "else") (compound_statement "{\n          free(local_40[0]);\n        }" ({ "{") (expression_statement "free(local_40[0]);" (call_expression "free(local_40[0])" (identifier "free") (argument_list "(local_40[0])" (( "(") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (} "}")))) (} "}")))) (} "}")))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *ibfd,type_2 isection,void *obfdarg)

{
  type_3 *var_35;
  type_3 bVar2;
  type_4 *section;
  char *pcVar3;
  type_5 bVar4;
  type_6 var_2;
  int var_13;
  int var_8;
  type_7 *var_4;
  type_3 *var_34;
  void *__s;
  char *format;
  type_8 var_19;
  type_8 var_21;
  type_3 *var_33;
  int var_26;
  type_8 var_23;
  type_3 *var_32;
  type_3 *var_30;
  type_3 *var_28;
  type_8 var_22;
  long var_20;
  type_8 var_16;
  type_3 *var_27;
  long var_31;
  type_5 var_15;
  type_3 *var_25;
  
  var_2 = var_1(ibfd,isection,1);
  if (var_2 == 0) {
    var_15 = isection->var_15;
    section = isection->output_section;
    if (((isection->flags & 0x100) == 0) || ((section->flags & 0x100) == 0)) {
      var_4 = var_3(isection->name,0,0x40);
      if ((var_4 != (type_7 *)0x0) && ((var_4->flags & 0x100) != 0)) {
        __s = (void *)var_5(var_15);
        bVar4 = var_15;
        var_6(__s,0,var_15);
        var_8 = var_7(obfdarg,section,__s,0,bVar4);
        if (var_8 == 0) {
          status = 1;
          var_9((char *)0x0,(type_1 *)obfdarg,section,(char *)0x0);
        }
        var_10(__s);
        return;
      }
    }
    else {
      var_25 = (type_3 *)0x0;
      var_8 = var_11(ibfd,isection,&var_25);
      if ((var_8 == 0) ||
         (var_13 = var_12(ibfd,isection,obfdarg,&var_25,&var_15),
         var_8 = var_14, var_13 == 0)) {
        status = 1;
        var_9((char *)0x0,ibfd,isection,(char *)0x0);
        var_10(var_25);
      }
      else {
        if (var_14 != 0) {
          var_16 = (type_8)var_14;
          if (var_15 % var_16 != 0) {
            pcVar3 = isection->name;
            format = (char *)var_17(0,
                                       "cannot reverse bytes: length of section %s must be evenly divisible by %d"
                                       ,5);
                    /* WARNING: Subroutine does not return */
            var_18(format,pcVar3,(type_8)(type_9)var_8);
          }
          if (var_15 != 0) {
            var_20 = var_16 - 1;
            var_8 = var_14 / 2;
            var_23 = 0;
            var_22 = (long)var_8;
            do {
              var_19 = var_23;
              if ((long)var_8 != 0) {
                do {
                  var_21 = var_19 + 1;
                  bVar2 = var_25[var_19];
                  var_25[var_19] = var_25[var_20 - var_19];
                  var_25[var_20 - var_19] = bVar2;
                  var_19 = var_21;
                } while (var_21 != var_22);
              }
              var_23 = var_23 + var_16;
              var_20 = var_20 + var_16 * 2;
              var_22 = var_22 + var_16;
            } while (var_23 < var_15);
          }
        }
        var_13 = var_24;
        var_8 = var_29;
        if (-1 < var_24) {
          var_16 = (type_8)interleave;
          var_20 = (long)var_24;
          var_28 = var_25 + var_15;
          var_26 = (int)(isection->lma % var_16);
          var_27 = var_25 + (var_20 - var_26);
          if (var_24 < var_26) {
            var_27 = var_25 + (var_20 - var_26) + var_16;
          }
          if (var_27 < var_28) {
            var_33 = var_27 + (var_29 - 1);
            var_31 = (long)var_28 - (long)var_27;
            var_30 = var_25;
            do {
              if ((0 < var_8) && (var_27 < var_28)) {
                var_35 = var_30 + var_31;
                var_34 = var_27;
                var_32 = var_30;
                do {
                  var_30 = var_32 + 1;
                  *var_32 = *var_34;
                  if (var_33 == var_34) break;
                  var_34 = var_34 + 1;
                  var_32 = var_30;
                } while (var_30 != var_35);
              }
              var_27 = var_27 + var_16;
              var_33 = var_33 + var_16;
              var_31 = var_31 - var_16;
            } while (var_27 < var_28);
          }
          var_15 = (long)var_8 * ((((var_16 - 1) - var_20) + var_15) / var_16);
          var_16 = section->lma / var_16;
          if (var_13 < var_26) {
            var_16 = var_16 + 1;
          }
          section->lma = var_16;
        }
        var_8 = var_7(obfdarg,section,var_25);
        if (var_8 == 0) {
          status = 1;
          var_9((char *)0x0,(type_1 *)obfdarg,section,(char *)0x0);
          var_10(var_25);
        }
        else {
          var_10(var_25);
        }
      }
    }
  }
  return;
}


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

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

{
  undefined1 *puVar1;
  undefined1 uVar2;
  long lVar3;
  undefined8 uVar4;
  int iVar5;
  int iVar6;
  long lVar7;
  undefined1 *puVar8;
  void *__s;
  undefined8 uVar9;
  ulong uVar10;
  ulong uVar11;
  undefined1 *puVar12;
  int iVar13;
  ulong uVar14;
  undefined1 *puVar15;
  undefined1 *puVar16;
  undefined1 *puVar17;
  ulong uVar18;
  ulong uVar19;
  undefined1 *puVar20;
  long lVar21;
  ulong local_48;
  undefined1 *local_40 [2];
  
  iVar5 = FUN_001087b0(param_1,param_2,1);
  if (iVar5 == 0) {
    local_48 = param_2[7];
    lVar3 = param_2[0xd];
    if (((*(byte *)((long)param_2 + 0x21) & 1) == 0) || ((*(byte *)(lVar3 + 0x21) & 1) == 0)) {
      lVar7 = FUN_00107360(*param_2,0,0x40);
      if ((lVar7 != 0) && ((*(byte *)(lVar7 + 0x29) & 1) != 0)) {
        __s = (void *)xmalloc(local_48);
        uVar19 = local_48;
        memset(__s,0,local_48);
        iVar5 = bfd_set_section_contents(param_3,lVar3,__s,0,uVar19);
        if (iVar5 == 0) {
          DAT_0012cb24 = 1;
          FUN_0011c0d0(0,param_3,lVar3,0);
        }
        free(__s);
        return;
      }
    }
    else {
      local_40[0] = (undefined1 *)0x0;
      iVar5 = bfd_get_full_section_contents(param_1,param_2,local_40);
      if ((iVar5 == 0) ||
         (iVar6 = bfd_convert_section_contents(param_1,param_2,param_3,local_40,&local_48),
         iVar5 = DAT_0012c9f0, iVar6 == 0)) {
        DAT_0012cb24 = 1;
        FUN_0011c0d0(0,param_1,param_2,0);
        free(local_40[0]);
      }
      else {
        if (DAT_0012c9f0 != 0) {
          uVar19 = (ulong)DAT_0012c9f0;
          if (local_48 % uVar19 != 0) {
            uVar4 = *param_2;
            uVar9 = dcgettext(0,
                              "cannot reverse bytes: length of section %s must be evenly divisible by %d"
                              ,5);
                    /* WARNING: Subroutine does not return */
            FUN_0011b5c0(uVar9,uVar4,iVar5);
          }
          if (local_48 != 0) {
            lVar7 = uVar19 - 1;
            iVar5 = DAT_0012c9f0 / 2;
            uVar14 = 0;
            uVar18 = (long)iVar5;
            do {
              uVar10 = uVar14;
              if ((long)iVar5 != 0) {
                do {
                  uVar11 = uVar10 + 1;
                  uVar2 = local_40[0][uVar10];
                  local_40[0][uVar10] = local_40[0][lVar7 - uVar10];
                  local_40[0][lVar7 - uVar10] = uVar2;
                  uVar10 = uVar11;
                } while (uVar11 != uVar18);
              }
              uVar14 = uVar14 + uVar19;
              lVar7 = lVar7 + uVar19 * 2;
              uVar18 = uVar18 + uVar19;
            } while (uVar14 < local_48);
          }
        }
        iVar6 = DAT_0012b4bc;
        iVar5 = DAT_0012b4b8;
        if (-1 < DAT_0012b4bc) {
          uVar19 = (ulong)DAT_0012cb30;
          lVar7 = (long)DAT_0012b4bc;
          puVar17 = local_40[0] + local_48;
          iVar13 = (int)((ulong)param_2[6] % uVar19);
          puVar20 = local_40[0] + (lVar7 - iVar13);
          if (DAT_0012b4bc < iVar13) {
            puVar20 = local_40[0] + (lVar7 - iVar13) + uVar19;
          }
          if (puVar20 < puVar17) {
            puVar12 = puVar20 + (DAT_0012b4b8 - 1);
            lVar21 = (long)puVar17 - (long)puVar20;
            puVar16 = local_40[0];
            do {
              if ((0 < iVar5) && (puVar20 < puVar17)) {
                puVar1 = puVar16 + lVar21;
                puVar8 = puVar20;
                puVar15 = puVar16;
                do {
                  puVar16 = puVar15 + 1;
                  *puVar15 = *puVar8;
                  if (puVar12 == puVar8) break;
                  puVar8 = puVar8 + 1;
                  puVar15 = puVar16;
                } while (puVar16 != puVar1);
              }
              puVar20 = puVar20 + uVar19;
              puVar12 = puVar12 + uVar19;
              lVar21 = lVar21 - uVar19;
            } while (puVar20 < puVar17);
          }
          local_48 = (long)iVar5 * ((((uVar19 - 1) - lVar7) + local_48) / uVar19);
          uVar19 = *(ulong *)(lVar3 + 0x30) / uVar19;
          if (iVar6 < iVar13) {
            uVar19 = uVar19 + 1;
          }
          *(ulong *)(lVar3 + 0x30) = uVar19;
        }
        iVar5 = bfd_set_section_contents(param_3,lVar3,local_40[0],0);
        if (iVar5 == 0) {
          DAT_0012cb24 = 1;
          FUN_0011c0d0(0,param_3,lVar3,0);
          free(local_40[0]);
        }
        else {
          free(local_40[0]);
        }
      }
    }
  }
  return;
}

