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

int gen_to_words(LITTLENUM_TYPE *words,int precision,long exponent_bits)

{
  ushort uVar1;
  char cVar2;
  bool bVar3;
  LITTLENUM_TYPE LVar4;
  int iVar5;
  ushort *puVar6;
  uint uVar7;
  ushort uVar8;
  ushort *puVar9;
  ushort *puVar10;
  int iVar11;
  ushort *puVar12;
  ushort *local_2c;
  int local_28;
  
  if (generic_floating_point_number.leader < generic_floating_point_number.low) {
    LVar4 = 0;
    if (generic_floating_point_number.sign != '+') {
      LVar4 = 0x8000;
    }
    *words = LVar4;
    memset(words + 1,0,precision * 2 - 2);
    return 0;
  }
  if (generic_floating_point_number.sign == '\0') {
    if (precision == 2) {
      words[0] = 0x7fff;
      words[1] = 0xffff;
      return 0;
    }
    if (precision != 5) {
      words[0] = 0x7fff;
      words[1] = 0xffff;
      words[2] = 0xffff;
      words[3] = 0xffff;
      return 0;
    }
    words[0] = 0xffff;
    words[1] = 0xc000;
    words[2] = 0;
    words[3] = 0;
    words[4] = 0;
    return 0;
  }
  if (generic_floating_point_number.sign == 'P') {
    if (precision == 2) {
      words[0] = 0x7f80;
      words[1] = 0;
      return 0;
    }
    if (precision != 5) {
      words[0] = 0x7ff0;
      words[1] = 0;
      words[2] = 0;
      words[3] = 0;
      return 0;
    }
    words[0] = 0x7fff;
    words[1] = 0x8000;
    words[2] = 0;
    words[3] = 0;
    words[4] = 0;
    return 0;
  }
  if (generic_floating_point_number.sign == 'N') {
    if (precision == 2) {
      words[0] = 0xff80;
      words[1] = 0;
      return 0;
    }
    if (precision != 5) {
      words[0] = 0xfff0;
      words[1] = 0;
      words[2] = 0;
      words[3] = 0;
      return 0;
    }
    words[0] = 0xffff;
    words[1] = 0x8000;
    words[2] = 0;
    words[3] = 0;
    words[4] = 0;
    return 0;
  }
  littlenum_pointer = generic_floating_point_number.leader;
  iVar11 = 0;
  bits_left_in_littlenum = 0x10;
  littlenums_left =
       (int)generic_floating_point_number.leader + (2 - (int)generic_floating_point_number.low) >> 1
  ;
  while (iVar5 = next_bits(1), iVar5 == 0) {
    iVar11 = iVar11 + 1;
  }
  cVar2 = (char)exponent_bits;
  uVar7 = (((int)generic_floating_point_number.leader +
            ((generic_floating_point_number.exponent * 2 + 2) -
            (int)generic_floating_point_number.low) >> 1) * 0x10 - iVar11) + -2 +
          (1 << (cVar2 - 1U & 0x1f));
  uVar8 = 0x8000;
  if (generic_floating_point_number.sign == '+') {
    uVar8 = 0;
  }
  puVar12 = words + precision;
  if (0 < (int)uVar7) {
    if (uVar7 < mask[exponent_bits]) {
      iVar11 = next_bits(0xf - exponent_bits);
      uVar8 = (ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11 | uVar8;
      *words = uVar8;
      bVar3 = exponent_bits == 0xf && precision == 5;
      if (bVar3) {
        iVar11 = next_bits(0xf);
        puVar10 = words + 2;
        words[1] = (ushort)iVar11 | 0x8000;
      }
      else {
        puVar10 = words + 1;
      }
      puVar6 = puVar10;
      if (puVar10 < puVar12) {
        do {
          puVar9 = puVar6 + 1;
          iVar11 = next_bits(0x10);
          *puVar6 = (ushort)iVar11;
          puVar6 = puVar9;
        } while (puVar9 < puVar12);
        puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2);
      }
      iVar11 = next_bits(1);
      if (iVar11 == 0) {
        return 0;
      }
      puVar10 = puVar10 + -1;
      do {
        uVar1 = *puVar10;
        *puVar10 = uVar1 + 1;
        if (words == puVar10) goto LAB_0005878a;
        puVar10 = puVar10 + -1;
      } while (uVar1 + 1 >> 0x10 != 0);
      if (words == puVar10) {
LAB_0005878a:
        if (bVar3) {
          puVar10[1] = puVar10[1] | 0x8000;
        }
      }
      if (-1 < (short)(uVar8 ^ *words)) {
        return 0;
      }
      *words = *words & 0x7fff;
      return 0;
    }
    goto LAB_00058810;
  }
  if (littlenums_left == 0) {
    littlenum_pointer = littlenum_pointer + 1;
    littlenums_left = 1;
    bits_left_in_littlenum = 1;
    iVar11 = bits_left_in_littlenum;
  }
  else {
    iVar11 = bits_left_in_littlenum + 1;
    if (0x10 < bits_left_in_littlenum + 1) {
      littlenums_left = littlenums_left + 1;
      littlenum_pointer = littlenum_pointer + 1;
      iVar11 = bits_left_in_littlenum + -0xf;
    }
  }
  bits_left_in_littlenum = iVar11;
  iVar11 = precision * 0x10;
  local_28 = iVar11 - ((exponent_bits + 1) - uVar7);
  puVar10 = words + 1;
  local_2c = puVar10;
  if ((precision == 5) && (exponent_bits == 0xf)) {
    local_28 = local_28 + -1;
    iVar5 = 1 - uVar7;
LAB_00058914:
    iVar5 = iVar5 + -0xf + exponent_bits;
    *words = uVar8;
    if (iVar11 <= exponent_bits + iVar5) {
LAB_00058810:
      make_invalid_floating_point_number(words);
      return 0;
    }
    if (0xf < iVar5) {
      uVar7 = iVar5 - 0x10U >> 4;
      puVar6 = puVar10;
      do {
        puVar9 = puVar6 + 1;
        *puVar6 = 0;
        puVar6 = puVar9;
      } while (words + uVar7 + 2 != puVar9);
      iVar5 = (iVar5 - 0x10U) + uVar7 * -0x10;
      local_2c = words + uVar7 + 2;
    }
    if (iVar5 != 0) {
      iVar5 = next_bits(0x10 - iVar5);
      *local_2c = (ushort)iVar5;
      local_2c = local_2c + 1;
    }
  }
  else {
    iVar5 = -uVar7;
    if (0x10 - exponent_bits <= iVar5) goto LAB_00058914;
    iVar5 = next_bits((uVar7 - exponent_bits) + 0xf);
    *words = (ushort)iVar5 | uVar8;
  }
  puVar6 = local_2c;
  if (local_2c < puVar12) {
    do {
      puVar9 = puVar6 + 1;
      iVar5 = next_bits(0x10);
      *puVar6 = (ushort)iVar5;
      puVar6 = puVar9;
    } while (puVar9 < puVar12);
    local_2c = (ushort *)((int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);
  }
  iVar5 = next_bits(1);
  if (iVar5 == 0) {
    return 0;
  }
  if (local_28 < 0x10) {
    local_2c[-1] = local_2c[-1] + 1;
    return 0;
  }
  if (local_28 != 0x10) {
    if (local_2c[-1] == 0xffff) {
      puVar6 = local_2c + -2;
      iVar5 = local_28;
      do {
        iVar5 = iVar5 + -0x10;
        uVar8 = *puVar6;
        if (iVar5 < 0x11) goto LAB_00058a14;
        puVar6 = puVar6 + -1;
      } while (uVar8 == 0xffff);
    }
joined_r0x00058a2d:
    do {
      local_2c = local_2c + -1;
      if (local_2c < words) {
        return 0;
      }
      uVar8 = *local_2c;
      *local_2c = uVar8 + 1;
    } while (uVar8 + 1 >> 0x10 != 0);
    return 0;
  }
  iVar5 = 0x10;
  uVar8 = local_2c[-1];
LAB_00058a14:
  if (mask[iVar5] != ((uint)uVar8 & mask[iVar5])) goto joined_r0x00058a2d;
  if ((iVar11 - exponent_bits) + -1 == local_28) {
    uVar8 = 0;
    if (generic_floating_point_number.sign != '+') {
      uVar8 = 0x8000;
    }
    *words = uVar8 | (ushort)(1 << (0xfU - cVar2 & 0x1f));
    if (precision != 5) goto joined_r0x00058c0c;
  }
  else {
    if ((precision != 5) || ((iVar11 - exponent_bits) + -2 != local_28)) goto joined_r0x00058a2d;
    if (generic_floating_point_number.sign == '+') {
      *words = (LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f));
    }
    else {
      *words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000;
    }
  }
  puVar10 = words + 2;
  words[1] = 0x8000;
joined_r0x00058c0c:
  for (; puVar10 < puVar12; puVar10 = puVar10 + 1) {
    *puVar10 = 0;
  }
  return 0;
}



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

undefined4 FUN_00058600(ushort *param_1,int param_2,int param_3)

{
  char cVar1;
  bool bVar2;
  ushort uVar3;
  int iVar4;
  ushort *puVar5;
  uint uVar6;
  ushort uVar7;
  ushort *puVar8;
  ushort *puVar9;
  int iVar10;
  ushort *puVar11;
  ushort *local_2c;
  int local_28;
  
  if (DAT_00080268 < PTR_DAT_00080260) {
    uVar7 = 0;
    if (DAT_00080270 != '+') {
      uVar7 = 0x8000;
    }
    *param_1 = uVar7;
    memset(param_1 + 1,0,param_2 * 2 - 2);
    return 0;
  }
  if (DAT_00080270 == '\0') {
    if (param_2 == 2) {
      param_1[0] = 0x7fff;
      param_1[1] = 0xffff;
      return 0;
    }
    if (param_2 != 5) {
      param_1[0] = 0x7fff;
      param_1[1] = 0xffff;
      param_1[2] = 0xffff;
      param_1[3] = 0xffff;
      return 0;
    }
    param_1[0] = 0xffff;
    param_1[1] = 0xc000;
    param_1[2] = 0;
    param_1[3] = 0;
    param_1[4] = 0;
    return 0;
  }
  if (DAT_00080270 == 'P') {
    if (param_2 == 2) {
      param_1[0] = 0x7f80;
      param_1[1] = 0;
      return 0;
    }
    if (param_2 != 5) {
      param_1[0] = 0x7ff0;
      param_1[1] = 0;
      param_1[2] = 0;
      param_1[3] = 0;
      return 0;
    }
    param_1[0] = 0x7fff;
    param_1[1] = 0x8000;
    param_1[2] = 0;
    param_1[3] = 0;
    param_1[4] = 0;
    return 0;
  }
  if (DAT_00080270 == 'N') {
    if (param_2 == 2) {
      param_1[0] = 0xff80;
      param_1[1] = 0;
      return 0;
    }
    if (param_2 != 5) {
      param_1[0] = 0xfff0;
      param_1[1] = 0;
      param_1[2] = 0;
      param_1[3] = 0;
      return 0;
    }
    param_1[0] = 0xffff;
    param_1[1] = 0x8000;
    param_1[2] = 0;
    param_1[3] = 0;
    param_1[4] = 0;
    return 0;
  }
  DAT_00089674 = DAT_00080268;
  iVar10 = 0;
  DAT_0008967c = 0x10;
  DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;
  while (iVar4 = FUN_00058510(), iVar4 == 0) {
    iVar10 = iVar10 + 1;
  }
  cVar1 = (char)param_3;
  uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -
          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));
  uVar7 = 0x8000;
  if (DAT_00080270 == '+') {
    uVar7 = 0;
  }
  puVar11 = param_1 + param_2;
  if (0 < (int)uVar6) {
    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {
      uVar3 = FUN_00058510();
      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;
      *param_1 = uVar7;
      bVar2 = param_3 == 0xf && param_2 == 5;
      if (bVar2) {
        uVar3 = FUN_00058510();
        puVar9 = param_1 + 2;
        param_1[1] = uVar3 | 0x8000;
      }
      else {
        puVar9 = param_1 + 1;
      }
      puVar5 = puVar9;
      if (puVar9 < puVar11) {
        do {
          puVar8 = puVar5 + 1;
          uVar3 = FUN_00058510();
          *puVar5 = uVar3;
          puVar5 = puVar8;
        } while (puVar8 < puVar11);
        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);
      }
      iVar10 = FUN_00058510();
      if (iVar10 == 0) {
        return 0;
      }
      puVar9 = puVar9 + -1;
      do {
        uVar3 = *puVar9;
        *puVar9 = uVar3 + 1;
        if (param_1 == puVar9) goto LAB_0005878a;
        puVar9 = puVar9 + -1;
      } while (uVar3 + 1 >> 0x10 != 0);
      if (param_1 == puVar9) {
LAB_0005878a:
        if (bVar2) {
          puVar9[1] = puVar9[1] | 0x8000;
        }
      }
      if (-1 < (short)(uVar7 ^ *param_1)) {
        return 0;
      }
      *param_1 = *param_1 & 0x7fff;
      return 0;
    }
    goto LAB_00058810;
  }
  if (DAT_00089678 == 0) {
    DAT_00089674 = DAT_00089674 + 2;
    DAT_00089678 = 1;
    DAT_0008967c = 1;
    iVar10 = DAT_0008967c;
  }
  else {
    iVar10 = DAT_0008967c + 1;
    if (0x10 < DAT_0008967c + 1) {
      DAT_00089678 = DAT_00089678 + 1;
      DAT_00089674 = DAT_00089674 + 2;
      iVar10 = DAT_0008967c + -0xf;
    }
  }
  DAT_0008967c = iVar10;
  iVar10 = param_2 * 0x10;
  local_28 = iVar10 - ((param_3 + 1) - uVar6);
  puVar9 = param_1 + 1;
  local_2c = puVar9;
  if ((param_2 == 5) && (param_3 == 0xf)) {
    local_28 = local_28 + -1;
    iVar4 = 1 - uVar6;
LAB_00058914:
    iVar4 = iVar4 + -0xf + param_3;
    *param_1 = uVar7;
    if (iVar10 <= param_3 + iVar4) {
LAB_00058810:
      FUN_000585b0();
      return 0;
    }
    if (0xf < iVar4) {
      uVar6 = iVar4 - 0x10U >> 4;
      puVar5 = puVar9;
      do {
        puVar8 = puVar5 + 1;
        *puVar5 = 0;
        puVar5 = puVar8;
      } while (param_1 + uVar6 + 2 != puVar8);
      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;
      local_2c = param_1 + uVar6 + 2;
    }
    if (iVar4 != 0) {
      uVar7 = FUN_00058510();
      *local_2c = uVar7;
      local_2c = local_2c + 1;
    }
  }
  else {
    iVar4 = -uVar6;
    if (0x10 - param_3 <= iVar4) goto LAB_00058914;
    uVar3 = FUN_00058510();
    *param_1 = uVar3 | uVar7;
  }
  puVar5 = local_2c;
  if (local_2c < puVar11) {
    do {
      puVar8 = puVar5 + 1;
      uVar7 = FUN_00058510();
      *puVar5 = uVar7;
      puVar5 = puVar8;
    } while (puVar8 < puVar11);
    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);
  }
  iVar4 = FUN_00058510();
  if (iVar4 == 0) {
    return 0;
  }
  if (local_28 < 0x10) {
    local_2c[-1] = local_2c[-1] + 1;
    return 0;
  }
  if (local_28 != 0x10) {
    if (local_2c[-1] == 0xffff) {
      puVar5 = local_2c + -2;
      iVar4 = local_28;
      do {
        iVar4 = iVar4 + -0x10;
        uVar7 = *puVar5;
        if (iVar4 < 0x11) goto LAB_00058a14;
        puVar5 = puVar5 + -1;
      } while (uVar7 == 0xffff);
    }
joined_r0x00058a2d:
    do {
      local_2c = local_2c + -1;
      if (local_2c < param_1) {
        return 0;
      }
      uVar7 = *local_2c;
      *local_2c = uVar7 + 1;
    } while (uVar7 + 1 >> 0x10 != 0);
    return 0;
  }
  iVar4 = 0x10;
  uVar7 = local_2c[-1];
LAB_00058a14:
  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))
  goto joined_r0x00058a2d;
  if ((iVar10 - param_3) + -1 == local_28) {
    uVar7 = 0;
    if (DAT_00080270 != '+') {
      uVar7 = 0x8000;
    }
    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));
    if (param_2 != 5) goto joined_r0x00058c0c;
  }
  else {
    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;
    if (DAT_00080270 == '+') {
      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));
    }
    else {
      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;
    }
  }
  puVar9 = param_1 + 2;
  param_1[1] = 0x8000;
joined_r0x00058c0c:
  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {
    *puVar9 = 0;
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016000
ADD EBX,0x279f7
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x34]
LEA EBP,[EAX + EAX*0x1]
LEA ESI,[EBX + 0x260]
MOV EDX,dword ptr [ESI]
MOV EAX,dword ptr [ESI + 0x8]
MOVZX ECX,byte ptr [ESI + 0x10]
CMP EDX,EAX
JA 0x000587d8
TEST CL,CL
JZ 0x000587b0
CMP CL,0x50
JZ 0x00058830
CMP CL,0x4e
JZ 0x00058860
MOV dword ptr [EBX + 0x9674],EAX
ADD EAX,0x2
XOR EDI,EDI
MOV dword ptr [EBX + 0x967c],0x10
SUB EAX,EDX
SAR EAX,0x1
MOV dword ptr [EBX + 0x9678],EAX
JMP 0x00058673
ADD EDI,0x1
MOV EAX,0x1
CALL 0x00058510
TEST EAX,EAX
JZ 0x00058670
MOV EDX,dword ptr [ESI + 0xc]
MOV EAX,dword ptr [ESI + 0x8]
MOV ECX,dword ptr [ESP + 0x38]
LEA EAX,[EAX + EDX*0x2 + 0x2]
SUB EAX,dword ptr [ESI]
MOV EDX,0x1
SAR EAX,0x1
SUB ECX,0x1
SHL EAX,0x4
SHL EDX,CL
MOV ECX,0x0
SUB EAX,EDI
CMP byte ptr [ESI + 0x10],0x2b
MOV EDI,dword ptr [ESP + 0x30]
LEA EDX,[EAX + EDX*0x1 + -0x2]
MOV EAX,0xffff8000
CMOVZ EAX,ECX
ADD EDI,EBP
MOV word ptr [ESP],AX
TEST EDX,EDX
JLE 0x00058890
MOV EAX,dword ptr [ESP + 0x38]
CMP dword ptr [EBX + EAX*0x4 + 0xfffe6380],EDX
JBE 0x00058810
MOV EAX,0xf
SUB EAX,dword ptr [ESP + 0x38]
MOV EBX,EDX
MOV ECX,EAX
SHL EBX,CL
CALL 0x00058510
OR EBX,EAX
MOV EAX,dword ptr [ESP + 0x30]
OR BX,word ptr [ESP]
CMP dword ptr [ESP + 0x38],0xf
SETZ DL
CMP dword ptr [ESP + 0x34],0x5
MOV word ptr [EAX],BX
SETZ AL
AND DL,AL
MOV byte ptr [ESP],DL
JNZ 0x00058ac8
MOV EAX,dword ptr [ESP + 0x30]
LEA ESI,[EAX + 0x2]
CMP ESI,EDI
JNC 0x00058748
MOV EBP,ESI
LEA ESI,[ESI]
NOP
MOV EAX,0x10
ADD EBP,0x2
CALL 0x00058510
MOV word ptr [EBP + -0x2],AX
CMP EDI,EBP
JA 0x00058728
SUB EDI,0x1
SUB EDI,ESI
SHR EDI,0x1
LEA ESI,[ESI + EDI*0x2 + 0x2]
MOV EAX,0x1
CALL 0x00058510
TEST EAX,EAX
JZ 0x00058806
MOV ECX,dword ptr [ESP + 0x30]
SUB ESI,0x2
LEA ESI,[ESI]
MOVZX EAX,word ptr [ESI]
MOV EDX,EAX
ADD EAX,0x1
ADD EDX,0x1
SHR EAX,0x10
MOV word ptr [ESI],DX
CMP ECX,ESI
JZ 0x0005878a
SUB ESI,0x2
TEST EAX,EAX
JNZ 0x00058768
CMP dword ptr [ESP + 0x30],ESI
JNZ 0x00058794
CMP byte ptr [ESP],0x0
JNZ 0x00058b88
MOV EAX,dword ptr [ESP + 0x30]
MOVZX EAX,word ptr [EAX]
XOR BX,AX
JNS 0x00058806
MOV EBX,dword ptr [ESP + 0x30]
AND AX,0x7fff
MOV word ptr [EBX],AX
JMP 0x00058806
CMP dword ptr [ESP + 0x34],0x2
MOV EAX,dword ptr [ESP + 0x30]
JZ 0x00058828
CMP dword ptr [ESP + 0x34],0x5
JZ 0x00058a60
MOV dword ptr [EAX],0xffff7fff
MOV dword ptr [EAX + 0x4],0xffffffff
JMP 0x00058806
CMP CL,0x2b
MOV EDX,0xffff8000
MOV EAX,0x0
MOV ECX,dword ptr [ESP + 0x30]
CMOVNZ EAX,EDX
SUB ESP,0x4
LEA EDX,[EBP + -0x2]
MOV word ptr [ECX],AX
MOV EAX,ECX
ADD EAX,0x2
PUSH EDX
PUSH 0x0
PUSH EAX
CALL 0x000144a0
ADD ESP,0x10
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x30]
CALL 0x000585b0
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EAX],0xffff7fff
JMP 0x00058806
CMP dword ptr [ESP + 0x34],0x2
MOV EAX,dword ptr [ESP + 0x30]
JZ 0x00058b30
CMP dword ptr [ESP + 0x34],0x5
JZ 0x00058aab
MOV dword ptr [EAX],0x7ff0
MOV dword ptr [EAX + 0x4],0x0
JMP 0x00058806
CMP dword ptr [ESP + 0x34],0x2
MOV EAX,dword ptr [ESP + 0x30]
JZ 0x00058aa0
CMP dword ptr [ESP + 0x34],0x5
JZ 0x00058b46
MOV dword ptr [EAX],0xfff0
MOV dword ptr [EAX + 0x4],0x0
JMP 0x00058806
MOV EAX,dword ptr [EBX + 0x9678]
TEST EAX,EAX
JZ 0x00058a80
MOV ECX,dword ptr [EBX + 0x967c]
LEA EBP,[ECX + 0x1]
CMP EBP,0x10
JLE 0x00058b3b
SUB ECX,0xf
ADD EAX,0x1
ADD dword ptr [EBX + 0x9674],0x2
MOV dword ptr [EBX + 0x967c],ECX
MOV dword ptr [EBX + 0x9678],EAX
MOV EAX,dword ptr [ESP + 0x38]
MOV ECX,dword ptr [ESP + 0x34]
ADD EAX,0x1
SHL ECX,0x4
SUB EAX,EDX
MOV dword ptr [ESP + 0xc],ECX
SUB ECX,EAX
MOV EAX,ECX
MOV dword ptr [ESP + 0x4],ECX
MOV ECX,dword ptr [ESP + 0x30]
ADD ECX,0x2
CMP dword ptr [ESP + 0x34],0x5
MOV dword ptr [ESP + 0x8],ECX
JNZ 0x00058af0
CMP dword ptr [ESP + 0x38],0xf
JNZ 0x00058af0
SUB EAX,0x1
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,0x1
SUB EAX,EDX
MOV ECX,dword ptr [ESP + 0x38]
LEA EDX,[EAX + ECX*0x1 + -0xf]
MOV EAX,dword ptr [ESP + 0x30]
MOVZX ECX,word ptr [ESP]
MOV word ptr [EAX],CX
MOV EAX,dword ptr [ESP + 0x38]
ADD EAX,EDX
CMP dword ptr [ESP + 0xc],EAX
JLE 0x00058810
CMP EDX,0xf
JLE 0x00058b93
LEA EBP,[EDX + -0x10]
MOV EAX,dword ptr [ESP + 0x30]
MOV ECX,EBP
SHR ECX,0x4
LEA EDX,[EAX + ECX*0x2 + 0x4]
MOV EAX,dword ptr [ESP + 0x8]
LEA ESI,[ESI]
ADD EAX,0x2
MOV word ptr [EAX + -0x2],0x0
CMP EDX,EAX
JNZ 0x00058958
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,EBP
LEA EAX,[EAX + ECX*0x2 + 0x2]
SHL ECX,0x4
MOV dword ptr [ESP],EAX
SUB EDX,ECX
TEST EDX,EDX
JNZ 0x00058b6b
MOV EAX,dword ptr [ESP]
MOV EBP,EAX
CMP EDI,EAX
JBE 0x000589b6
LEA ESI,[ESI]
NOP
MOV EAX,0x10
ADD EBP,0x2
CALL 0x00058510
MOV word ptr [EBP + -0x2],AX
CMP EDI,EBP
JA 0x00058990
MOV ECX,dword ptr [ESP]
LEA EAX,[EDI + -0x1]
SUB EAX,ECX
SHR EAX,0x1
LEA EAX,[ECX + EAX*0x2 + 0x2]
MOV dword ptr [ESP],EAX
MOV EAX,0x1
CALL 0x00058510
TEST EAX,EAX
JZ 0x00058806
MOV ECX,dword ptr [ESP + 0x4]
CMP ECX,0xf
JLE 0x00058b5e
MOV EDX,dword ptr [ESP]
LEA EAX,[EDX + -0x2]
CMP ECX,0x10
JZ 0x00058c24
CMP word ptr [EDX + -0x2],-0x1
JNZ 0x00058a25
MOV ECX,dword ptr [ESP]
MOV EDX,dword ptr [ESP + 0x4]
SUB ECX,0x4
JMP 0x00058a09
SUB ECX,0x2
CMP BP,-0x1
JNZ 0x00058a25
SUB EDX,0x10
MOVZX EBP,word ptr [ECX]
CMP EDX,0x10
JG 0x00058a00
MOV EDX,dword ptr [EBX + EDX*0x4 + 0xfffe6380]
AND EBP,EDX
CMP EDX,EBP
JZ 0x00058b9f
MOV EBX,dword ptr [ESP + 0x30]
CMP dword ptr [ESP + 0x30],EAX
JBE 0x00058a40
JMP 0x00058806
CMP EBX,EAX
JA 0x00058806
MOVZX ECX,word ptr [EAX]
SUB EAX,0x2
MOV EDX,ECX
ADD ECX,0x1
ADD EDX,0x1
MOV word ptr [EAX + 0x2],DX
SHR ECX,0x10
JNZ 0x00058a38
JMP 0x00058806
XOR EBX,EBX
MOV dword ptr [EAX],0xc000ffff
MOV dword ptr [EAX + 0x4],0x0
MOV word ptr [EAX + 0x8],BX
JMP 0x00058806
ADD dword ptr [EBX + 0x9674],0x2
MOV dword ptr [EBX + 0x9678],0x1
MOV dword ptr [EBX + 0x967c],0x1
JMP 0x000588c9
MOV dword ptr [EAX],0xff80
JMP 0x00058806
XOR ECX,ECX
MOV dword ptr [EAX],0x80007fff
MOV dword ptr [EAX + 0x4],0x0
MOV word ptr [EAX + 0x8],CX
JMP 0x00058806
MOV EAX,0xf
CALL 0x00058510
MOV ESI,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0x30]
OR AX,0x8000
ADD ESI,0x4
MOV word ptr [ECX + 0x2],AX
JMP 0x0005871d
MOV EAX,EDX
MOV ECX,0x10
SUB ECX,dword ptr [ESP + 0x38]
NEG EAX
CMP EAX,ECX
JGE 0x00058914
SUB EDX,dword ptr [ESP + 0x38]
LEA EAX,[EDX + 0xf]
CALL 0x00058510
MOV ECX,dword ptr [ESP + 0x30]
OR AX,word ptr [ESP]
MOV word ptr [ECX],AX
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP],EAX
JMP 0x0005897f
MOV dword ptr [EAX],0x7f80
JMP 0x00058806
MOV dword ptr [EBX + 0x967c],EBP
JMP 0x000588c9
XOR EDX,EDX
MOV dword ptr [EAX],0x8000ffff
MOV dword ptr [EAX + 0x4],0x0
MOV word ptr [EAX + 0x8],DX
JMP 0x00058806
MOV EAX,dword ptr [ESP]
ADD word ptr [EAX + -0x2],0x1
JMP 0x00058806
MOV EAX,0x10
SUB EAX,EDX
CALL 0x00058510
MOV ECX,dword ptr [ESP]
MOV word ptr [ECX],AX
LEA EAX,[ECX + 0x2]
MOV dword ptr [ESP],EAX
JMP 0x0005897f
OR word ptr [ESI + 0x2],0x8000
JMP 0x00058794
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP],EAX
JMP 0x00058977
MOV EDX,dword ptr [ESP + 0xc]
SUB EDX,dword ptr [ESP + 0x38]
LEA ECX,[EDX + -0x1]
CMP ECX,dword ptr [ESP + 0x4]
JZ 0x00058c35
CMP dword ptr [ESP + 0x34],0x5
JNZ 0x00058a25
SUB EDX,0x2
CMP EDX,dword ptr [ESP + 0x4]
JNZ 0x00058a25
CMP byte ptr [ESI + 0x10],0x2b
JZ 0x00058c68
MOV ECX,0xf
MOV EAX,0x1
SUB ECX,dword ptr [ESP + 0x38]
MOV EBX,dword ptr [ESP + 0x30]
SHL EAX,CL
OR AX,0x8000
MOV word ptr [EBX],AX
MOV EAX,dword ptr [ESP + 0x30]
ADD EAX,0x4
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV word ptr [EAX + 0x2],0x8000
MOV EAX,dword ptr [ESP + 0x8]
CMP EDI,EAX
JBE 0x00058806
ADD EAX,0x2
XOR EDX,EDX
MOV word ptr [EAX + -0x2],DX
CMP EDI,EAX
JA 0x00058c12
JMP 0x00058806
MOV ECX,dword ptr [ESP]
MOV EDX,0x10
MOVZX EBP,word ptr [ECX + -0x2]
JMP 0x00058a14
CMP byte ptr [ESI + 0x10],0x2b
MOV EDX,0xffff8000
MOV EAX,0x0
MOV ECX,0xf
CMOVNZ EAX,EDX
SUB ECX,dword ptr [ESP + 0x38]
MOV EDX,0x1
MOV EBX,dword ptr [ESP + 0x30]
SHL EDX,CL
OR EAX,EDX
CMP dword ptr [ESP + 0x34],0x5
MOV word ptr [EBX],AX
JNZ 0x00058c06
JMP 0x00058bf1
MOV ECX,0xf
MOV EAX,0x1
SUB ECX,dword ptr [ESP + 0x38]
MOV EBX,dword ptr [ESP + 0x30]
SHL EAX,CL
MOV word ptr [EBX],AX
JMP 0x00058bf1
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00058600(ushort *param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  bool bVar2;\n  ushort uVar3;\n  int iVar4;\n  ushort *puVar5;\n  uint uVar6;\n  ushort uVar7;\n  ushort *puVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  ushort *local_2c;\n  int local_28;\n  \n  if (DAT_00080268 < PTR_DAT_00080260) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }\n  if (DAT_00080270 == '\0') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'P') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'N') {\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  DAT_00089674 = DAT_00080268;\n  iVar10 = 0;\n  DAT_0008967c = 0x10;\n  DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;\n  while (iVar4 = FUN_00058510(), iVar4 == 0) {\n    iVar10 = iVar10 + 1;\n  }\n  cVar1 = (char)param_3;\n  uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));\n  uVar7 = 0x8000;\n  if (DAT_00080270 == '+') {\n    uVar7 = 0;\n  }\n  puVar11 = param_1 + param_2;\n  if (0 < (int)uVar6) {\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }\n  if (DAT_00089678 == 0) {\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }\n  else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }\n  DAT_0008967c = iVar10;\n  iVar10 = param_2 * 0x10;\n  local_28 = iVar10 - ((param_3 + 1) - uVar6);\n  puVar9 = param_1 + 1;\n  local_2c = puVar9;\n  if ((param_2 == 5) && (param_3 == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }\n  puVar5 = local_2c;\n  if (local_2c < puVar11) {\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }\n  iVar4 = FUN_00058510();\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }\n  if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }\n  iVar4 = 0x10;\n  uVar7 = local_2c[-1];\nLAB_00058a14:\n  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;\n  if ((iVar10 - param_3) + -1 == local_28) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }\n  puVar9 = param_1 + 2;\n  param_1[1] = 0x8000;\njoined_r0x00058c0c:\n  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00058600(ushort *param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  bool bVar2;\n  ushort uVar3;\n  int iVar4;\n  ushort *puVar5;\n  uint uVar6;\n  ushort uVar7;\n  ushort *puVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  ushort *local_2c;\n  int local_28;\n  \n  if (DAT_00080268 < PTR_DAT_00080260) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }\n  if (DAT_00080270 == '\0') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'P') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'N') {\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  DAT_00089674 = DAT_00080268;\n  iVar10 = 0;\n  DAT_0008967c = 0x10;\n  DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;\n  while (iVar4 = FUN_00058510(), iVar4 == 0) {\n    iVar10 = iVar10 + 1;\n  }\n  cVar1 = (char)param_3;\n  uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));\n  uVar7 = 0x8000;\n  if (DAT_00080270 == '+') {\n    uVar7 = 0;\n  }\n  puVar11 = param_1 + param_2;\n  if (0 < (int)uVar6) {\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }\n  if (DAT_00089678 == 0) {\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }\n  else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }\n  DAT_0008967c = iVar10;\n  iVar10 = param_2 * 0x10;\n  local_28 = iVar10 - ((param_3 + 1) - uVar6);\n  puVar9 = param_1 + 1;\n  local_2c = puVar9;\n  if ((param_2 == 5) && (param_3 == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }\n  puVar5 = local_2c;\n  if (local_2c < puVar11) {\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }\n  iVar4 = FUN_00058510();\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }\n  if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }\n  iVar4 = 0x10;\n  uVar7 = local_2c[-1];\nLAB_00058a14:\n  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;\n  if ((iVar10 - param_3) + -1 == local_28) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }\n  puVar9 = param_1 + 2;\n  param_1[1] = 0x8000;\njoined_r0x00058c0c:\n  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00058600(ushort *param_1,int param_2,int param_3)" identifier (parameter_list "(ushort *param_1,int param_2,int param_3)" ( (parameter_declaration "ushort *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  ushort uVar3;\n  int iVar4;\n  ushort *puVar5;\n  uint uVar6;\n  ushort uVar7;\n  ushort *puVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  ushort *local_2c;\n  int local_28;\n  \n  if (DAT_00080268 < PTR_DAT_00080260) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }\n  if (DAT_00080270 == '\0') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'P') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'N') {\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  DAT_00089674 = DAT_00080268;\n  iVar10 = 0;\n  DAT_0008967c = 0x10;\n  DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;\n  while (iVar4 = FUN_00058510(), iVar4 == 0) {\n    iVar10 = iVar10 + 1;\n  }\n  cVar1 = (char)param_3;\n  uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));\n  uVar7 = 0x8000;\n  if (DAT_00080270 == '+') {\n    uVar7 = 0;\n  }\n  puVar11 = param_1 + param_2;\n  if (0 < (int)uVar6) {\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }\n  if (DAT_00089678 == 0) {\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }\n  else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }\n  DAT_0008967c = iVar10;\n  iVar10 = param_2 * 0x10;\n  local_28 = iVar10 - ((param_3 + 1) - uVar6);\n  puVar9 = param_1 + 1;\n  local_2c = puVar9;\n  if ((param_2 == 5) && (param_3 == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }\n  puVar5 = local_2c;\n  if (local_2c < puVar11) {\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }\n  iVar4 = FUN_00058510();\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }\n  if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }\n  iVar4 = 0x10;\n  uVar7 = local_2c[-1];\nLAB_00058a14:\n  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;\n  if ((iVar10 - param_3) + -1 == local_28) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }\n  puVar9 = param_1 + 2;\n  param_1[1] = 0x8000;\njoined_r0x00058c0c:\n  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ushort *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "ushort uVar7;" type_identifier identifier ;) (declaration "ushort *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "ushort *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "ushort *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "ushort *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (if_statement "if (DAT_00080268 < PTR_DAT_00080260) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }" if (parenthesized_expression "(DAT_00080268 < PTR_DAT_00080260)" ( (binary_expression "DAT_00080268 < PTR_DAT_00080260" identifier < identifier) )) (compound_statement "{\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (if_statement "if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }" if (parenthesized_expression "(DAT_00080270 != '+')" ( (binary_expression "DAT_00080270 != '+'" identifier != (char_literal "'+'" ' character ')) )) (compound_statement "{\n      uVar7 = 0x8000;\n    }" { (expression_statement "uVar7 = 0x8000;" (assignment_expression "uVar7 = 0x8000" identifier = number_literal) ;) })) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "memset(param_1 + 1,0,param_2 * 2 - 2);" (call_expression "memset(param_1 + 1,0,param_2 * 2 - 2)" identifier (argument_list "(param_1 + 1,0,param_2 * 2 - 2)" ( (binary_expression "param_1 + 1" identifier + number_literal) , number_literal , (binary_expression "param_2 * 2 - 2" (binary_expression "param_2 * 2" identifier * number_literal) - number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (DAT_00080270 == '\0') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" if (parenthesized_expression "(DAT_00080270 == '\0')" ( (binary_expression "DAT_00080270 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" { (if_statement "if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0x7fff;" (assignment_expression "param_1[0] = 0x7fff" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0xffff;" (assignment_expression "param_1[1] = 0xffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }" if (parenthesized_expression "(param_2 != 5)" ( (binary_expression "param_2 != 5" identifier != number_literal) )) (compound_statement "{\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0x7fff;" (assignment_expression "param_1[0] = 0x7fff" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0xffff;" (assignment_expression "param_1[1] = 0xffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0xffff;" (assignment_expression "param_1[2] = 0xffff" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0xffff;" (assignment_expression "param_1[3] = 0xffff" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[0] = 0xffff;" (assignment_expression "param_1[0] = 0xffff" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0xc000;" (assignment_expression "param_1[1] = 0xc000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (DAT_00080270 == 'P') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" if (parenthesized_expression "(DAT_00080270 == 'P')" ( (binary_expression "DAT_00080270 == 'P'" identifier == (char_literal "'P'" ' character ')) )) (compound_statement "{\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" { (if_statement "if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0x7f80;" (assignment_expression "param_1[0] = 0x7f80" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" if (parenthesized_expression "(param_2 != 5)" ( (binary_expression "param_2 != 5" identifier != number_literal) )) (compound_statement "{\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0x7ff0;" (assignment_expression "param_1[0] = 0x7ff0" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[0] = 0x7fff;" (assignment_expression "param_1[0] = 0x7fff" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0x8000;" (assignment_expression "param_1[1] = 0x8000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (DAT_00080270 == 'N') {\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" if (parenthesized_expression "(DAT_00080270 == 'N')" ( (binary_expression "DAT_00080270 == 'N'" identifier == (char_literal "'N'" ' character ')) )) (compound_statement "{\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" { (if_statement "if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0xff80;" (assignment_expression "param_1[0] = 0xff80" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" if (parenthesized_expression "(param_2 != 5)" ( (binary_expression "param_2 != 5" identifier != number_literal) )) (compound_statement "{\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0xfff0;" (assignment_expression "param_1[0] = 0xfff0" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[0] = 0xffff;" (assignment_expression "param_1[0] = 0xffff" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0x8000;" (assignment_expression "param_1[1] = 0x8000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "DAT_00089674 = DAT_00080268;" (assignment_expression "DAT_00089674 = DAT_00080268" identifier = identifier) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "DAT_0008967c = 0x10;" (assignment_expression "DAT_0008967c = 0x10" identifier = number_literal) ;) (expression_statement "DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;" (assignment_expression "DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1" identifier = (binary_expression "(int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1" (cast_expression "(int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(DAT_00080268 + (2 - (int)PTR_DAT_00080260))" ( (binary_expression "DAT_00080268 + (2 - (int)PTR_DAT_00080260)" identifier + (parenthesized_expression "(2 - (int)PTR_DAT_00080260)" ( (binary_expression "2 - (int)PTR_DAT_00080260" number_literal - (cast_expression "(int)PTR_DAT_00080260" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (while_statement "while (iVar4 = FUN_00058510(), iVar4 == 0) {\n    iVar10 = iVar10 + 1;\n  }" while (parenthesized_expression "(iVar4 = FUN_00058510(), iVar4 == 0)" ( (comma_expression "iVar4 = FUN_00058510(), iVar4 == 0" (assignment_expression "iVar4 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) )) (compound_statement "{\n    iVar10 = iVar10 + 1;\n  }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) })) (expression_statement "cVar1 = (char)param_3;" (assignment_expression "cVar1 = (char)param_3" identifier = (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));" (assignment_expression "uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f))" identifier = (binary_expression "(((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f))" (binary_expression "(((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2" (parenthesized_expression "(((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10)" ( (binary_expression "((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10" (binary_expression "((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10" (parenthesized_expression "((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1)" ( (binary_expression "(int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1" (cast_expression "(int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260))" ( (binary_expression "DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)" identifier + (parenthesized_expression "((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)" ( (binary_expression "(DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260" (parenthesized_expression "(DAT_0008026c * 2 + 2)" ( (binary_expression "DAT_0008026c * 2 + 2" (binary_expression "DAT_0008026c * 2" identifier * number_literal) + number_literal) )) - (cast_expression "(int)PTR_DAT_00080260" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal) )) * number_literal) - identifier) )) + number_literal) + (parenthesized_expression "(1 << (cVar1 - 1U & 0x1f))" ( (binary_expression "1 << (cVar1 - 1U & 0x1f)" number_literal << (parenthesized_expression "(cVar1 - 1U & 0x1f)" ( (binary_expression "cVar1 - 1U & 0x1f" (binary_expression "cVar1 - 1U" identifier - number_literal) & number_literal) ))) )))) ;) (expression_statement "uVar7 = 0x8000;" (assignment_expression "uVar7 = 0x8000" identifier = number_literal) ;) (if_statement "if (DAT_00080270 == '+') {\n    uVar7 = 0;\n  }" if (parenthesized_expression "(DAT_00080270 == '+')" ( (binary_expression "DAT_00080270 == '+'" identifier == (char_literal "'+'" ' character ')) )) (compound_statement "{\n    uVar7 = 0;\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) })) (expression_statement "puVar11 = param_1 + param_2;" (assignment_expression "puVar11 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (if_statement "if (0 < (int)uVar6) {\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }" if (parenthesized_expression "(0 < (int)uVar6)" ( (binary_expression "0 < (int)uVar6" number_literal < (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }" { (if_statement "if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }" if (parenthesized_expression "(uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4))" ( (binary_expression "uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)" identifier < (pointer_expression "*(uint *)(&DAT_00066380 + param_3 * 4)" * (cast_expression "(uint *)(&DAT_00066380 + param_3 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + param_3 * 4)" ( (binary_expression "&DAT_00066380 + param_3 * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) )) (compound_statement "{\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }" { (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;" (assignment_expression "uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7" identifier = (binary_expression "(ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7" (binary_expression "(ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3" (call_expression "(ushort)(uVar6 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar6 << (0xfU - cVar1 & 0x1f))" ( (binary_expression "uVar6 << (0xfU - cVar1 & 0x1f)" identifier << (parenthesized_expression "(0xfU - cVar1 & 0x1f)" ( (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" number_literal - identifier) & number_literal) ))) ))) | identifier) | identifier)) ;) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "bVar2 = param_3 == 0xf && param_2 == 5;" (assignment_expression "bVar2 = param_3 == 0xf && param_2 == 5" identifier = (binary_expression "param_3 == 0xf && param_2 == 5" (binary_expression "param_3 == 0xf" identifier == number_literal) && (binary_expression "param_2 == 5" identifier == number_literal))) ;) (if_statement "if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }" { (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar9 = param_1 + 2;" (assignment_expression "puVar9 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "param_1[1] = uVar3 | 0x8000;" (assignment_expression "param_1[1] = uVar3 | 0x8000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar3 | 0x8000" identifier | number_literal)) ;) }) (else_clause "else {\n        puVar9 = param_1 + 1;\n      }" else (compound_statement "{\n        puVar9 = param_1 + 1;\n      }" { (expression_statement "puVar9 = param_1 + 1;" (assignment_expression "puVar9 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }))) (expression_statement "puVar5 = puVar9;" (assignment_expression "puVar5 = puVar9" identifier = identifier) ;) (if_statement "if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }" if (parenthesized_expression "(puVar9 < puVar11)" ( (binary_expression "puVar9 < puVar11" identifier < identifier) )) (compound_statement "{\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }" { (do_statement "do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);" do (compound_statement "{\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        }" { (expression_statement "puVar8 = puVar5 + 1;" (assignment_expression "puVar8 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "*puVar5 = uVar3;" (assignment_expression "*puVar5 = uVar3" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5 = puVar8;" (assignment_expression "puVar5 = puVar8" identifier = identifier) ;) }) while (parenthesized_expression "(puVar8 < puVar11)" ( (binary_expression "puVar8 < puVar11" identifier < identifier) )) ;) (expression_statement "puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2)" identifier = (cast_expression "(ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2)" ( (binary_expression "(int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2" (binary_expression "(int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU)" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU)" ( (binary_expression "(int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU" (binary_expression "(int)puVar11 + (-1 - (int)puVar9)" (cast_expression "(int)puVar11" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-1 - (int)puVar9)" ( (binary_expression "-1 - (int)puVar9" number_literal - (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ))) & number_literal) ))) + number_literal) )))) ;) })) (expression_statement "iVar10 = FUN_00058510();" (assignment_expression "iVar10 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar10 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar9 = puVar9 + -1;" (assignment_expression "puVar9 = puVar9 + -1" identifier = (binary_expression "puVar9 + -1" identifier + number_literal)) ;) (do_statement "do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);" do (compound_statement "{\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      }" { (expression_statement "uVar3 = *puVar9;" (assignment_expression "uVar3 = *puVar9" identifier = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "*puVar9 = uVar3 + 1;" (assignment_expression "*puVar9 = uVar3 + 1" (pointer_expression "*puVar9" * identifier) = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (param_1 == puVar9) goto LAB_0005878a;" if (parenthesized_expression "(param_1 == puVar9)" ( (binary_expression "param_1 == puVar9" identifier == identifier) )) (goto_statement "goto LAB_0005878a;" goto statement_identifier ;)) (expression_statement "puVar9 = puVar9 + -1;" (assignment_expression "puVar9 = puVar9 + -1" identifier = (binary_expression "puVar9 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 + 1 >> 0x10 != 0)" ( (binary_expression "uVar3 + 1 >> 0x10 != 0" (binary_expression "uVar3 + 1 >> 0x10" (binary_expression "uVar3 + 1" identifier + number_literal) >> number_literal) != number_literal) )) ;) (if_statement "if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }" if (parenthesized_expression "(param_1 == puVar9)" ( (binary_expression "param_1 == puVar9" identifier == identifier) )) (compound_statement "{\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }" { (labeled_statement "LAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }" statement_identifier : (if_statement "if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n          puVar9[1] = puVar9[1] | 0x8000;\n        }" { (expression_statement "puVar9[1] = puVar9[1] | 0x8000;" (assignment_expression "puVar9[1] = puVar9[1] | 0x8000" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = (binary_expression "puVar9[1] | 0x8000" (subscript_expression "puVar9[1]" identifier [ number_literal ]) | number_literal)) ;) }))) })) (if_statement "if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }" if (parenthesized_expression "(-1 < (short)(uVar7 ^ *param_1))" ( (binary_expression "-1 < (short)(uVar7 ^ *param_1)" number_literal < (cast_expression "(short)(uVar7 ^ *param_1)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "(uVar7 ^ *param_1)" ( (binary_expression "uVar7 ^ *param_1" identifier ^ (pointer_expression "*param_1" * identifier)) )))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_1 = *param_1 & 0x7fff;" (assignment_expression "*param_1 = *param_1 & 0x7fff" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 & 0x7fff" (pointer_expression "*param_1" * identifier) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_00058810;" goto statement_identifier ;) })) (if_statement "if (DAT_00089678 == 0) {\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }\n  else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }" if (parenthesized_expression "(DAT_00089678 == 0)" ( (binary_expression "DAT_00089678 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }" { (expression_statement "DAT_00089674 = DAT_00089674 + 2;" (assignment_expression "DAT_00089674 = DAT_00089674 + 2" identifier = (binary_expression "DAT_00089674 + 2" identifier + number_literal)) ;) (expression_statement "DAT_00089678 = 1;" (assignment_expression "DAT_00089678 = 1" identifier = number_literal) ;) (expression_statement "DAT_0008967c = 1;" (assignment_expression "DAT_0008967c = 1" identifier = number_literal) ;) (expression_statement "iVar10 = DAT_0008967c;" (assignment_expression "iVar10 = DAT_0008967c" identifier = identifier) ;) }) (else_clause "else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }" else (compound_statement "{\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }" { (expression_statement "iVar10 = DAT_0008967c + 1;" (assignment_expression "iVar10 = DAT_0008967c + 1" identifier = (binary_expression "DAT_0008967c + 1" identifier + number_literal)) ;) (if_statement "if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }" if (parenthesized_expression "(0x10 < DAT_0008967c + 1)" ( (binary_expression "0x10 < DAT_0008967c + 1" number_literal < (binary_expression "DAT_0008967c + 1" identifier + number_literal)) )) (compound_statement "{\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }" { (expression_statement "DAT_00089678 = DAT_00089678 + 1;" (assignment_expression "DAT_00089678 = DAT_00089678 + 1" identifier = (binary_expression "DAT_00089678 + 1" identifier + number_literal)) ;) (expression_statement "DAT_00089674 = DAT_00089674 + 2;" (assignment_expression "DAT_00089674 = DAT_00089674 + 2" identifier = (binary_expression "DAT_00089674 + 2" identifier + number_literal)) ;) (expression_statement "iVar10 = DAT_0008967c + -0xf;" (assignment_expression "iVar10 = DAT_0008967c + -0xf" identifier = (binary_expression "DAT_0008967c + -0xf" identifier + number_literal)) ;) })) }))) (expression_statement "DAT_0008967c = iVar10;" (assignment_expression "DAT_0008967c = iVar10" identifier = identifier) ;) (expression_statement "iVar10 = param_2 * 0x10;" (assignment_expression "iVar10 = param_2 * 0x10" identifier = (binary_expression "param_2 * 0x10" identifier * number_literal)) ;) (expression_statement "local_28 = iVar10 - ((param_3 + 1) - uVar6);" (assignment_expression "local_28 = iVar10 - ((param_3 + 1) - uVar6)" identifier = (binary_expression "iVar10 - ((param_3 + 1) - uVar6)" identifier - (parenthesized_expression "((param_3 + 1) - uVar6)" ( (binary_expression "(param_3 + 1) - uVar6" (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) )) - identifier) )))) ;) (expression_statement "puVar9 = param_1 + 1;" (assignment_expression "puVar9 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "local_2c = puVar9;" (assignment_expression "local_2c = puVar9" identifier = identifier) ;) (if_statement "if ((param_2 == 5) && (param_3 == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }" if (parenthesized_expression "((param_2 == 5) && (param_3 == 0xf))" ( (binary_expression "(param_2 == 5) && (param_3 == 0xf)" (parenthesized_expression "(param_2 == 5)" ( (binary_expression "param_2 == 5" identifier == number_literal) )) && (parenthesized_expression "(param_3 == 0xf)" ( (binary_expression "param_3 == 0xf" identifier == number_literal) ))) )) (compound_statement "{\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }" { (expression_statement "local_28 = local_28 + -1;" (assignment_expression "local_28 = local_28 + -1" identifier = (binary_expression "local_28 + -1" identifier + number_literal)) ;) (expression_statement "iVar4 = 1 - uVar6;" (assignment_expression "iVar4 = 1 - uVar6" identifier = (binary_expression "1 - uVar6" number_literal - identifier)) ;) (labeled_statement "LAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;" statement_identifier : (expression_statement "iVar4 = iVar4 + -0xf + param_3;" (assignment_expression "iVar4 = iVar4 + -0xf + param_3" identifier = (binary_expression "iVar4 + -0xf + param_3" (binary_expression "iVar4 + -0xf" identifier + number_literal) + identifier)) ;)) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }" if (parenthesized_expression "(iVar10 <= param_3 + iVar4)" ( (binary_expression "iVar10 <= param_3 + iVar4" identifier <= (binary_expression "param_3 + iVar4" identifier + identifier)) )) (compound_statement "{\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }" { (labeled_statement "LAB_00058810:\n      FUN_000585b0();" statement_identifier : (expression_statement "FUN_000585b0();" (call_expression "FUN_000585b0()" identifier (argument_list "()" ( ))) ;)) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }" if (parenthesized_expression "(0xf < iVar4)" ( (binary_expression "0xf < iVar4" number_literal < identifier) )) (compound_statement "{\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }" { (expression_statement "uVar6 = iVar4 - 0x10U >> 4;" (assignment_expression "uVar6 = iVar4 - 0x10U >> 4" identifier = (binary_expression "iVar4 - 0x10U >> 4" (binary_expression "iVar4 - 0x10U" identifier - number_literal) >> number_literal)) ;) (expression_statement "puVar5 = puVar9;" (assignment_expression "puVar5 = puVar9" identifier = identifier) ;) (do_statement "do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);" do (compound_statement "{\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      }" { (expression_statement "puVar8 = puVar5 + 1;" (assignment_expression "puVar8 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar8;" (assignment_expression "puVar5 = puVar8" identifier = identifier) ;) }) while (parenthesized_expression "(param_1 + uVar6 + 2 != puVar8)" ( (binary_expression "param_1 + uVar6 + 2 != puVar8" (binary_expression "param_1 + uVar6 + 2" (binary_expression "param_1 + uVar6" identifier + identifier) + number_literal) != identifier) )) ;) (expression_statement "iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;" (assignment_expression "iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10" identifier = (binary_expression "(iVar4 - 0x10U) + uVar6 * -0x10" (parenthesized_expression "(iVar4 - 0x10U)" ( (binary_expression "iVar4 - 0x10U" identifier - number_literal) )) + (binary_expression "uVar6 * -0x10" identifier * number_literal))) ;) (expression_statement "local_2c = param_1 + uVar6 + 2;" (assignment_expression "local_2c = param_1 + uVar6 + 2" identifier = (binary_expression "param_1 + uVar6 + 2" (binary_expression "param_1 + uVar6" identifier + identifier) + number_literal)) ;) })) (if_statement "if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }" { (expression_statement "uVar7 = FUN_00058510();" (assignment_expression "uVar7 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "*local_2c = uVar7;" (assignment_expression "*local_2c = uVar7" (pointer_expression "*local_2c" * identifier) = identifier) ;) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }" else (compound_statement "{\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }" { (expression_statement "iVar4 = -uVar6;" (assignment_expression "iVar4 = -uVar6" identifier = (unary_expression "-uVar6" - identifier)) ;) (if_statement "if (0x10 - param_3 <= iVar4) goto LAB_00058914;" if (parenthesized_expression "(0x10 - param_3 <= iVar4)" ( (binary_expression "0x10 - param_3 <= iVar4" (binary_expression "0x10 - param_3" number_literal - identifier) <= identifier) )) (goto_statement "goto LAB_00058914;" goto statement_identifier ;)) (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_1 = uVar3 | uVar7;" (assignment_expression "*param_1 = uVar3 | uVar7" (pointer_expression "*param_1" * identifier) = (binary_expression "uVar3 | uVar7" identifier | identifier)) ;) }))) (expression_statement "puVar5 = local_2c;" (assignment_expression "puVar5 = local_2c" identifier = identifier) ;) (if_statement "if (local_2c < puVar11) {\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }" if (parenthesized_expression "(local_2c < puVar11)" ( (binary_expression "local_2c < puVar11" identifier < identifier) )) (compound_statement "{\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }" { (do_statement "do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);" do (compound_statement "{\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    }" { (expression_statement "puVar8 = puVar5 + 1;" (assignment_expression "puVar8 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = FUN_00058510();" (assignment_expression "uVar7 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "*puVar5 = uVar7;" (assignment_expression "*puVar5 = uVar7" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5 = puVar8;" (assignment_expression "puVar5 = puVar8" identifier = identifier) ;) }) while (parenthesized_expression "(puVar8 < puVar11)" ( (binary_expression "puVar8 < puVar11" identifier < identifier) )) ;) (expression_statement "local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);" (assignment_expression "local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" identifier = (cast_expression "(ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" ( (binary_expression "(int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2" (binary_expression "(int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU)" (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU)" ( (binary_expression "(int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU" (binary_expression "(int)puVar11 + (-1 - (int)local_2c)" (cast_expression "(int)puVar11" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-1 - (int)local_2c)" ( (binary_expression "-1 - (int)local_2c" number_literal - (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier)) ))) & number_literal) ))) + number_literal) )))) ;) })) (expression_statement "iVar4 = FUN_00058510();" (assignment_expression "iVar4 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }" if (parenthesized_expression "(local_28 < 0x10)" ( (binary_expression "local_28 < 0x10" identifier < number_literal) )) (compound_statement "{\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }" { (expression_statement "local_2c[-1] = local_2c[-1] + 1;" (assignment_expression "local_2c[-1] = local_2c[-1] + 1" (subscript_expression "local_2c[-1]" identifier [ number_literal ]) = (binary_expression "local_2c[-1] + 1" (subscript_expression "local_2c[-1]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }" if (parenthesized_expression "(local_28 != 0x10)" ( (binary_expression "local_28 != 0x10" identifier != number_literal) )) (compound_statement "{\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }" { (if_statement "if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }" if (parenthesized_expression "(local_2c[-1] == 0xffff)" ( (binary_expression "local_2c[-1] == 0xffff" (subscript_expression "local_2c[-1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }" { (expression_statement "puVar5 = local_2c + -2;" (assignment_expression "puVar5 = local_2c + -2" identifier = (binary_expression "local_2c + -2" identifier + number_literal)) ;) (expression_statement "iVar4 = local_28;" (assignment_expression "iVar4 = local_28" identifier = identifier) ;) (do_statement "do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);" do (compound_statement "{\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      }" { (expression_statement "iVar4 = iVar4 + -0x10;" (assignment_expression "iVar4 = iVar4 + -0x10" identifier = (binary_expression "iVar4 + -0x10" identifier + number_literal)) ;) (expression_statement "uVar7 = *puVar5;" (assignment_expression "uVar7 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (if_statement "if (iVar4 < 0x11) goto LAB_00058a14;" if (parenthesized_expression "(iVar4 < 0x11)" ( (binary_expression "iVar4 < 0x11" identifier < number_literal) )) (goto_statement "goto LAB_00058a14;" goto statement_identifier ;)) (expression_statement "puVar5 = puVar5 + -1;" (assignment_expression "puVar5 = puVar5 + -1" identifier = (binary_expression "puVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 == 0xffff)" ( (binary_expression "uVar7 == 0xffff" identifier == number_literal) )) ;) })) (labeled_statement "joined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);" statement_identifier : (do_statement "do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);" do (compound_statement "{\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    }" { (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (if_statement "if (local_2c < param_1) {\n        return 0;\n      }" if (parenthesized_expression "(local_2c < param_1)" ( (binary_expression "local_2c < param_1" identifier < identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar7 = *local_2c;" (assignment_expression "uVar7 = *local_2c" identifier = (pointer_expression "*local_2c" * identifier)) ;) (expression_statement "*local_2c = uVar7 + 1;" (assignment_expression "*local_2c = uVar7 + 1" (pointer_expression "*local_2c" * identifier) = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 + 1 >> 0x10 != 0)" ( (binary_expression "uVar7 + 1 >> 0x10 != 0" (binary_expression "uVar7 + 1 >> 0x10" (binary_expression "uVar7 + 1" identifier + number_literal) >> number_literal) != number_literal) )) ;)) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" identifier = number_literal) ;) (expression_statement "uVar7 = local_2c[-1];" (assignment_expression "uVar7 = local_2c[-1]" identifier = (subscript_expression "local_2c[-1]" identifier [ number_literal ])) ;) (labeled_statement "LAB_00058a14:\n  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;" statement_identifier : (if_statement "if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;" if (parenthesized_expression "(*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))" ( (binary_expression "*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4))" (pointer_expression "*(uint *)(&DAT_00066380 + iVar4 * 4)" * (cast_expression "(uint *)(&DAT_00066380 + iVar4 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + iVar4 * 4)" ( (binary_expression "&DAT_00066380 + iVar4 * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) != (parenthesized_expression "((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4))" ( (binary_expression "(uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)" (cast_expression "(uint)uVar7" ( (type_descriptor "uint" type_identifier) ) identifier) & (pointer_expression "*(uint *)(&DAT_00066380 + iVar4 * 4)" * (cast_expression "(uint *)(&DAT_00066380 + iVar4 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + iVar4 * 4)" ( (binary_expression "&DAT_00066380 + iVar4 * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) ))))) ))) )) (goto_statement "goto joined_r0x00058a2d;" goto statement_identifier ;))) (if_statement "if ((iVar10 - param_3) + -1 == local_28) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }" if (parenthesized_expression "((iVar10 - param_3) + -1 == local_28)" ( (binary_expression "(iVar10 - param_3) + -1 == local_28" (binary_expression "(iVar10 - param_3) + -1" (parenthesized_expression "(iVar10 - param_3)" ( (binary_expression "iVar10 - param_3" identifier - identifier) )) + number_literal) == identifier) )) (compound_statement "{\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (if_statement "if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }" if (parenthesized_expression "(DAT_00080270 != '+')" ( (binary_expression "DAT_00080270 != '+'" identifier != (char_literal "'+'" ' character ')) )) (compound_statement "{\n      uVar7 = 0x8000;\n    }" { (expression_statement "uVar7 = 0x8000;" (assignment_expression "uVar7 = 0x8000" identifier = number_literal) ;) })) (expression_statement "*param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));" (assignment_expression "*param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f))" (pointer_expression "*param_1" * identifier) = (binary_expression "uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f))" identifier | (call_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(1 << (0xfU - cVar1 & 0x1f))" ( (binary_expression "1 << (0xfU - cVar1 & 0x1f)" number_literal << (parenthesized_expression "(0xfU - cVar1 & 0x1f)" ( (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" number_literal - identifier) & number_literal) ))) ))))) ;) (if_statement "if (param_2 != 5) goto joined_r0x00058c0c;" if (parenthesized_expression "(param_2 != 5)" ( (binary_expression "param_2 != 5" identifier != number_literal) )) (goto_statement "goto joined_r0x00058c0c;" goto statement_identifier ;)) }) (else_clause "else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }" else (compound_statement "{\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }" { (if_statement "if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;" if (parenthesized_expression "((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28))" ( (binary_expression "(param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)" (parenthesized_expression "(param_2 != 5)" ( (binary_expression "param_2 != 5" identifier != number_literal) )) || (parenthesized_expression "((iVar10 - param_3) + -2 != local_28)" ( (binary_expression "(iVar10 - param_3) + -2 != local_28" (binary_expression "(iVar10 - param_3) + -2" (parenthesized_expression "(iVar10 - param_3)" ( (binary_expression "iVar10 - param_3" identifier - identifier) )) + number_literal) != identifier) ))) )) (goto_statement "goto joined_r0x00058a2d;" goto statement_identifier ;)) (if_statement "if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }" if (parenthesized_expression "(DAT_00080270 == '+')" ( (binary_expression "DAT_00080270 == '+'" identifier == (char_literal "'+'" ' character ')) )) (compound_statement "{\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }" { (expression_statement "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));" (assignment_expression "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f))" (pointer_expression "*param_1" * identifier) = (call_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(1 << (0xfU - cVar1 & 0x1f))" ( (binary_expression "1 << (0xfU - cVar1 & 0x1f)" number_literal << (parenthesized_expression "(0xfU - cVar1 & 0x1f)" ( (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" number_literal - identifier) & number_literal) ))) )))) ;) }) (else_clause "else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }" else (compound_statement "{\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }" { (expression_statement "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;" (assignment_expression "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000" (pointer_expression "*param_1" * identifier) = (binary_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000" (call_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(1 << (0xfU - cVar1 & 0x1f))" ( (binary_expression "1 << (0xfU - cVar1 & 0x1f)" number_literal << (parenthesized_expression "(0xfU - cVar1 & 0x1f)" ( (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" number_literal - identifier) & number_literal) ))) ))) | number_literal)) ;) }))) }))) (expression_statement "puVar9 = param_1 + 2;" (assignment_expression "puVar9 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "param_1[1] = 0x8000;" (assignment_expression "param_1[1] = 0x8000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "joined_r0x00058c0c:\n  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }" statement_identifier : (for_statement "for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }" for ( ; (binary_expression "puVar9 < puVar11" identifier < identifier) ; (assignment_expression "puVar9 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ) (compound_statement "{\n    *puVar9 = 0;\n  }" { (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint gen_to_words(LITTLENUM_TYPE *words,int precision,long exponent_bits)\n\n{\n  ushort uVar1;\n  char cVar2;\n  bool bVar3;\n  LITTLENUM_TYPE LVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  ushort uVar8;\n  ushort *puVar9;\n  ushort *puVar10;\n  int iVar11;\n  ushort *puVar12;\n  ushort *local_2c;\n  int local_28;\n  \n  if (generic_floating_point_number.leader < generic_floating_point_number.low) {\n    LVar4 = 0;\n    if (generic_floating_point_number.sign != '+') {\n      LVar4 = 0x8000;\n    }\n    *words = LVar4;\n    memset(words + 1,0,precision * 2 - 2);\n    return 0;\n  }\n  if (generic_floating_point_number.sign == '\0') {\n    if (precision == 2) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      words[2] = 0xffff;\n      words[3] = 0xffff;\n      return 0;\n    }\n    words[0] = 0xffff;\n    words[1] = 0xc000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }\n  if (generic_floating_point_number.sign == 'P') {\n    if (precision == 2) {\n      words[0] = 0x7f80;\n      words[1] = 0;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0x7ff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }\n    words[0] = 0x7fff;\n    words[1] = 0x8000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }\n  if (generic_floating_point_number.sign == 'N') {\n    if (precision == 2) {\n      words[0] = 0xff80;\n      words[1] = 0;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0xfff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }\n    words[0] = 0xffff;\n    words[1] = 0x8000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }\n  littlenum_pointer = generic_floating_point_number.leader;\n  iVar11 = 0;\n  bits_left_in_littlenum = 0x10;\n  littlenums_left =\n       (int)generic_floating_point_number.leader + (2 - (int)generic_floating_point_number.low) >> 1\n  ;\n  while (iVar5 = next_bits(1), iVar5 == 0) {\n    iVar11 = iVar11 + 1;\n  }\n  cVar2 = (char)exponent_bits;\n  uVar7 = (((int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1) * 0x10 - iVar11) + -2 +\n          (1 << (cVar2 - 1U & 0x1f));\n  uVar8 = 0x8000;\n  if (generic_floating_point_number.sign == '+') {\n    uVar8 = 0;\n  }\n  puVar12 = words + precision;\n  if (0 < (int)uVar7) {\n    if (uVar7 < mask[exponent_bits]) {\n      iVar11 = next_bits(0xf - exponent_bits);\n      uVar8 = (ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11 | uVar8;\n      *words = uVar8;\n      bVar3 = exponent_bits == 0xf && precision == 5;\n      if (bVar3) {\n        iVar11 = next_bits(0xf);\n        puVar10 = words + 2;\n        words[1] = (ushort)iVar11 | 0x8000;\n      }\n      else {\n        puVar10 = words + 1;\n      }\n      puVar6 = puVar10;\n      if (puVar10 < puVar12) {\n        do {\n          puVar9 = puVar6 + 1;\n          iVar11 = next_bits(0x10);\n          *puVar6 = (ushort)iVar11;\n          puVar6 = puVar9;\n        } while (puVar9 < puVar12);\n        puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2);\n      }\n      iVar11 = next_bits(1);\n      if (iVar11 == 0) {\n        return 0;\n      }\n      puVar10 = puVar10 + -1;\n      do {\n        uVar1 = *puVar10;\n        *puVar10 = uVar1 + 1;\n        if (words == puVar10) goto LAB_0005878a;\n        puVar10 = puVar10 + -1;\n      } while (uVar1 + 1 >> 0x10 != 0);\n      if (words == puVar10) {\nLAB_0005878a:\n        if (bVar3) {\n          puVar10[1] = puVar10[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar8 ^ *words)) {\n        return 0;\n      }\n      *words = *words & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }\n  if (littlenums_left == 0) {\n    littlenum_pointer = littlenum_pointer + 1;\n    littlenums_left = 1;\n    bits_left_in_littlenum = 1;\n    iVar11 = bits_left_in_littlenum;\n  }\n  else {\n    iVar11 = bits_left_in_littlenum + 1;\n    if (0x10 < bits_left_in_littlenum + 1) {\n      littlenums_left = littlenums_left + 1;\n      littlenum_pointer = littlenum_pointer + 1;\n      iVar11 = bits_left_in_littlenum + -0xf;\n    }\n  }\n  bits_left_in_littlenum = iVar11;\n  iVar11 = precision * 0x10;\n  local_28 = iVar11 - ((exponent_bits + 1) - uVar7);\n  puVar10 = words + 1;\n  local_2c = puVar10;\n  if ((precision == 5) && (exponent_bits == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar5 = 1 - uVar7;\nLAB_00058914:\n    iVar5 = iVar5 + -0xf + exponent_bits;\n    *words = uVar8;\n    if (iVar11 <= exponent_bits + iVar5) {\nLAB_00058810:\n      make_invalid_floating_point_number(words);\n      return 0;\n    }\n    if (0xf < iVar5) {\n      uVar7 = iVar5 - 0x10U >> 4;\n      puVar6 = puVar10;\n      do {\n        puVar9 = puVar6 + 1;\n        *puVar6 = 0;\n        puVar6 = puVar9;\n      } while (words + uVar7 + 2 != puVar9);\n      iVar5 = (iVar5 - 0x10U) + uVar7 * -0x10;\n      local_2c = words + uVar7 + 2;\n    }\n    if (iVar5 != 0) {\n      iVar5 = next_bits(0x10 - iVar5);\n      *local_2c = (ushort)iVar5;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar5 = -uVar7;\n    if (0x10 - exponent_bits <= iVar5) goto LAB_00058914;\n    iVar5 = next_bits((uVar7 - exponent_bits) + 0xf);\n    *words = (ushort)iVar5 | uVar8;\n  }\n  puVar6 = local_2c;\n  if (local_2c < puVar12) {\n    do {\n      puVar9 = puVar6 + 1;\n      iVar5 = next_bits(0x10);\n      *puVar6 = (ushort)iVar5;\n      puVar6 = puVar9;\n    } while (puVar9 < puVar12);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }\n  iVar5 = next_bits(1);\n  if (iVar5 == 0) {\n    return 0;\n  }\n  if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }\n  if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar6 = local_2c + -2;\n      iVar5 = local_28;\n      do {\n        iVar5 = iVar5 + -0x10;\n        uVar8 = *puVar6;\n        if (iVar5 < 0x11) goto LAB_00058a14;\n        puVar6 = puVar6 + -1;\n      } while (uVar8 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < words) {\n        return 0;\n      }\n      uVar8 = *local_2c;\n      *local_2c = uVar8 + 1;\n    } while (uVar8 + 1 >> 0x10 != 0);\n    return 0;\n  }\n  iVar5 = 0x10;\n  uVar8 = local_2c[-1];\nLAB_00058a14:\n  if (mask[iVar5] != ((uint)uVar8 & mask[iVar5])) goto joined_r0x00058a2d;\n  if ((iVar11 - exponent_bits) + -1 == local_28) {\n    uVar8 = 0;\n    if (generic_floating_point_number.sign != '+') {\n      uVar8 = 0x8000;\n    }\n    *words = uVar8 | (ushort)(1 << (0xfU - cVar2 & 0x1f));\n    if (precision != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((precision != 5) || ((iVar11 - exponent_bits) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (generic_floating_point_number.sign == '+') {\n      *words = (LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f));\n    }\n    else {\n      *words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000;\n    }\n  }\n  puVar10 = words + 2;\n  words[1] = 0x8000;\njoined_r0x00058c0c:\n  for (; puVar10 < puVar12; puVar10 = puVar10 + 1) {\n    *puVar10 = 0;\n  }\n  return 0;\n}\n\n" comment comment (function_definition "int gen_to_words(LITTLENUM_TYPE *words,int precision,long exponent_bits)\n\n{\n  ushort uVar1;\n  char cVar2;\n  bool bVar3;\n  LITTLENUM_TYPE LVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  ushort uVar8;\n  ushort *puVar9;\n  ushort *puVar10;\n  int iVar11;\n  ushort *puVar12;\n  ushort *local_2c;\n  int local_28;\n  \n  if (generic_floating_point_number.leader < generic_floating_point_number.low) {\n    LVar4 = 0;\n    if (generic_floating_point_number.sign != '+') {\n      LVar4 = 0x8000;\n    }\n    *words = LVar4;\n    memset(words + 1,0,precision * 2 - 2);\n    return 0;\n  }\n  if (generic_floating_point_number.sign == '\0') {\n    if (precision == 2) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      words[2] = 0xffff;\n      words[3] = 0xffff;\n      return 0;\n    }\n    words[0] = 0xffff;\n    words[1] = 0xc000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }\n  if (generic_floating_point_number.sign == 'P') {\n    if (precision == 2) {\n      words[0] = 0x7f80;\n      words[1] = 0;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0x7ff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }\n    words[0] = 0x7fff;\n    words[1] = 0x8000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }\n  if (generic_floating_point_number.sign == 'N') {\n    if (precision == 2) {\n      words[0] = 0xff80;\n      words[1] = 0;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0xfff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }\n    words[0] = 0xffff;\n    words[1] = 0x8000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }\n  littlenum_pointer = generic_floating_point_number.leader;\n  iVar11 = 0;\n  bits_left_in_littlenum = 0x10;\n  littlenums_left =\n       (int)generic_floating_point_number.leader + (2 - (int)generic_floating_point_number.low) >> 1\n  ;\n  while (iVar5 = next_bits(1), iVar5 == 0) {\n    iVar11 = iVar11 + 1;\n  }\n  cVar2 = (char)exponent_bits;\n  uVar7 = (((int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1) * 0x10 - iVar11) + -2 +\n          (1 << (cVar2 - 1U & 0x1f));\n  uVar8 = 0x8000;\n  if (generic_floating_point_number.sign == '+') {\n    uVar8 = 0;\n  }\n  puVar12 = words + precision;\n  if (0 < (int)uVar7) {\n    if (uVar7 < mask[exponent_bits]) {\n      iVar11 = next_bits(0xf - exponent_bits);\n      uVar8 = (ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11 | uVar8;\n      *words = uVar8;\n      bVar3 = exponent_bits == 0xf && precision == 5;\n      if (bVar3) {\n        iVar11 = next_bits(0xf);\n        puVar10 = words + 2;\n        words[1] = (ushort)iVar11 | 0x8000;\n      }\n      else {\n        puVar10 = words + 1;\n      }\n      puVar6 = puVar10;\n      if (puVar10 < puVar12) {\n        do {\n          puVar9 = puVar6 + 1;\n          iVar11 = next_bits(0x10);\n          *puVar6 = (ushort)iVar11;\n          puVar6 = puVar9;\n        } while (puVar9 < puVar12);\n        puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2);\n      }\n      iVar11 = next_bits(1);\n      if (iVar11 == 0) {\n        return 0;\n      }\n      puVar10 = puVar10 + -1;\n      do {\n        uVar1 = *puVar10;\n        *puVar10 = uVar1 + 1;\n        if (words == puVar10) goto LAB_0005878a;\n        puVar10 = puVar10 + -1;\n      } while (uVar1 + 1 >> 0x10 != 0);\n      if (words == puVar10) {\nLAB_0005878a:\n        if (bVar3) {\n          puVar10[1] = puVar10[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar8 ^ *words)) {\n        return 0;\n      }\n      *words = *words & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }\n  if (littlenums_left == 0) {\n    littlenum_pointer = littlenum_pointer + 1;\n    littlenums_left = 1;\n    bits_left_in_littlenum = 1;\n    iVar11 = bits_left_in_littlenum;\n  }\n  else {\n    iVar11 = bits_left_in_littlenum + 1;\n    if (0x10 < bits_left_in_littlenum + 1) {\n      littlenums_left = littlenums_left + 1;\n      littlenum_pointer = littlenum_pointer + 1;\n      iVar11 = bits_left_in_littlenum + -0xf;\n    }\n  }\n  bits_left_in_littlenum = iVar11;\n  iVar11 = precision * 0x10;\n  local_28 = iVar11 - ((exponent_bits + 1) - uVar7);\n  puVar10 = words + 1;\n  local_2c = puVar10;\n  if ((precision == 5) && (exponent_bits == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar5 = 1 - uVar7;\nLAB_00058914:\n    iVar5 = iVar5 + -0xf + exponent_bits;\n    *words = uVar8;\n    if (iVar11 <= exponent_bits + iVar5) {\nLAB_00058810:\n      make_invalid_floating_point_number(words);\n      return 0;\n    }\n    if (0xf < iVar5) {\n      uVar7 = iVar5 - 0x10U >> 4;\n      puVar6 = puVar10;\n      do {\n        puVar9 = puVar6 + 1;\n        *puVar6 = 0;\n        puVar6 = puVar9;\n      } while (words + uVar7 + 2 != puVar9);\n      iVar5 = (iVar5 - 0x10U) + uVar7 * -0x10;\n      local_2c = words + uVar7 + 2;\n    }\n    if (iVar5 != 0) {\n      iVar5 = next_bits(0x10 - iVar5);\n      *local_2c = (ushort)iVar5;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar5 = -uVar7;\n    if (0x10 - exponent_bits <= iVar5) goto LAB_00058914;\n    iVar5 = next_bits((uVar7 - exponent_bits) + 0xf);\n    *words = (ushort)iVar5 | uVar8;\n  }\n  puVar6 = local_2c;\n  if (local_2c < puVar12) {\n    do {\n      puVar9 = puVar6 + 1;\n      iVar5 = next_bits(0x10);\n      *puVar6 = (ushort)iVar5;\n      puVar6 = puVar9;\n    } while (puVar9 < puVar12);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }\n  iVar5 = next_bits(1);\n  if (iVar5 == 0) {\n    return 0;\n  }\n  if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }\n  if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar6 = local_2c + -2;\n      iVar5 = local_28;\n      do {\n        iVar5 = iVar5 + -0x10;\n        uVar8 = *puVar6;\n        if (iVar5 < 0x11) goto LAB_00058a14;\n        puVar6 = puVar6 + -1;\n      } while (uVar8 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < words) {\n        return 0;\n      }\n      uVar8 = *local_2c;\n      *local_2c = uVar8 + 1;\n    } while (uVar8 + 1 >> 0x10 != 0);\n    return 0;\n  }\n  iVar5 = 0x10;\n  uVar8 = local_2c[-1];\nLAB_00058a14:\n  if (mask[iVar5] != ((uint)uVar8 & mask[iVar5])) goto joined_r0x00058a2d;\n  if ((iVar11 - exponent_bits) + -1 == local_28) {\n    uVar8 = 0;\n    if (generic_floating_point_number.sign != '+') {\n      uVar8 = 0x8000;\n    }\n    *words = uVar8 | (ushort)(1 << (0xfU - cVar2 & 0x1f));\n    if (precision != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((precision != 5) || ((iVar11 - exponent_bits) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (generic_floating_point_number.sign == '+') {\n      *words = (LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f));\n    }\n    else {\n      *words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000;\n    }\n  }\n  puVar10 = words + 2;\n  words[1] = 0x8000;\njoined_r0x00058c0c:\n  for (; puVar10 < puVar12; puVar10 = puVar10 + 1) {\n    *puVar10 = 0;\n  }\n  return 0;\n}" primitive_type (function_declarator "gen_to_words(LITTLENUM_TYPE *words,int precision,long exponent_bits)" identifier (parameter_list "(LITTLENUM_TYPE *words,int precision,long exponent_bits)" ( (parameter_declaration "LITTLENUM_TYPE *words" type_identifier (pointer_declarator "*words" * identifier)) , (parameter_declaration "int precision" primitive_type identifier) , (parameter_declaration "long exponent_bits" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ushort uVar1;\n  char cVar2;\n  bool bVar3;\n  LITTLENUM_TYPE LVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  ushort uVar8;\n  ushort *puVar9;\n  ushort *puVar10;\n  int iVar11;\n  ushort *puVar12;\n  ushort *local_2c;\n  int local_28;\n  \n  if (generic_floating_point_number.leader < generic_floating_point_number.low) {\n    LVar4 = 0;\n    if (generic_floating_point_number.sign != '+') {\n      LVar4 = 0x8000;\n    }\n    *words = LVar4;\n    memset(words + 1,0,precision * 2 - 2);\n    return 0;\n  }\n  if (generic_floating_point_number.sign == '\0') {\n    if (precision == 2) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      words[2] = 0xffff;\n      words[3] = 0xffff;\n      return 0;\n    }\n    words[0] = 0xffff;\n    words[1] = 0xc000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }\n  if (generic_floating_point_number.sign == 'P') {\n    if (precision == 2) {\n      words[0] = 0x7f80;\n      words[1] = 0;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0x7ff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }\n    words[0] = 0x7fff;\n    words[1] = 0x8000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }\n  if (generic_floating_point_number.sign == 'N') {\n    if (precision == 2) {\n      words[0] = 0xff80;\n      words[1] = 0;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0xfff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }\n    words[0] = 0xffff;\n    words[1] = 0x8000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }\n  littlenum_pointer = generic_floating_point_number.leader;\n  iVar11 = 0;\n  bits_left_in_littlenum = 0x10;\n  littlenums_left =\n       (int)generic_floating_point_number.leader + (2 - (int)generic_floating_point_number.low) >> 1\n  ;\n  while (iVar5 = next_bits(1), iVar5 == 0) {\n    iVar11 = iVar11 + 1;\n  }\n  cVar2 = (char)exponent_bits;\n  uVar7 = (((int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1) * 0x10 - iVar11) + -2 +\n          (1 << (cVar2 - 1U & 0x1f));\n  uVar8 = 0x8000;\n  if (generic_floating_point_number.sign == '+') {\n    uVar8 = 0;\n  }\n  puVar12 = words + precision;\n  if (0 < (int)uVar7) {\n    if (uVar7 < mask[exponent_bits]) {\n      iVar11 = next_bits(0xf - exponent_bits);\n      uVar8 = (ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11 | uVar8;\n      *words = uVar8;\n      bVar3 = exponent_bits == 0xf && precision == 5;\n      if (bVar3) {\n        iVar11 = next_bits(0xf);\n        puVar10 = words + 2;\n        words[1] = (ushort)iVar11 | 0x8000;\n      }\n      else {\n        puVar10 = words + 1;\n      }\n      puVar6 = puVar10;\n      if (puVar10 < puVar12) {\n        do {\n          puVar9 = puVar6 + 1;\n          iVar11 = next_bits(0x10);\n          *puVar6 = (ushort)iVar11;\n          puVar6 = puVar9;\n        } while (puVar9 < puVar12);\n        puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2);\n      }\n      iVar11 = next_bits(1);\n      if (iVar11 == 0) {\n        return 0;\n      }\n      puVar10 = puVar10 + -1;\n      do {\n        uVar1 = *puVar10;\n        *puVar10 = uVar1 + 1;\n        if (words == puVar10) goto LAB_0005878a;\n        puVar10 = puVar10 + -1;\n      } while (uVar1 + 1 >> 0x10 != 0);\n      if (words == puVar10) {\nLAB_0005878a:\n        if (bVar3) {\n          puVar10[1] = puVar10[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar8 ^ *words)) {\n        return 0;\n      }\n      *words = *words & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }\n  if (littlenums_left == 0) {\n    littlenum_pointer = littlenum_pointer + 1;\n    littlenums_left = 1;\n    bits_left_in_littlenum = 1;\n    iVar11 = bits_left_in_littlenum;\n  }\n  else {\n    iVar11 = bits_left_in_littlenum + 1;\n    if (0x10 < bits_left_in_littlenum + 1) {\n      littlenums_left = littlenums_left + 1;\n      littlenum_pointer = littlenum_pointer + 1;\n      iVar11 = bits_left_in_littlenum + -0xf;\n    }\n  }\n  bits_left_in_littlenum = iVar11;\n  iVar11 = precision * 0x10;\n  local_28 = iVar11 - ((exponent_bits + 1) - uVar7);\n  puVar10 = words + 1;\n  local_2c = puVar10;\n  if ((precision == 5) && (exponent_bits == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar5 = 1 - uVar7;\nLAB_00058914:\n    iVar5 = iVar5 + -0xf + exponent_bits;\n    *words = uVar8;\n    if (iVar11 <= exponent_bits + iVar5) {\nLAB_00058810:\n      make_invalid_floating_point_number(words);\n      return 0;\n    }\n    if (0xf < iVar5) {\n      uVar7 = iVar5 - 0x10U >> 4;\n      puVar6 = puVar10;\n      do {\n        puVar9 = puVar6 + 1;\n        *puVar6 = 0;\n        puVar6 = puVar9;\n      } while (words + uVar7 + 2 != puVar9);\n      iVar5 = (iVar5 - 0x10U) + uVar7 * -0x10;\n      local_2c = words + uVar7 + 2;\n    }\n    if (iVar5 != 0) {\n      iVar5 = next_bits(0x10 - iVar5);\n      *local_2c = (ushort)iVar5;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar5 = -uVar7;\n    if (0x10 - exponent_bits <= iVar5) goto LAB_00058914;\n    iVar5 = next_bits((uVar7 - exponent_bits) + 0xf);\n    *words = (ushort)iVar5 | uVar8;\n  }\n  puVar6 = local_2c;\n  if (local_2c < puVar12) {\n    do {\n      puVar9 = puVar6 + 1;\n      iVar5 = next_bits(0x10);\n      *puVar6 = (ushort)iVar5;\n      puVar6 = puVar9;\n    } while (puVar9 < puVar12);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }\n  iVar5 = next_bits(1);\n  if (iVar5 == 0) {\n    return 0;\n  }\n  if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }\n  if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar6 = local_2c + -2;\n      iVar5 = local_28;\n      do {\n        iVar5 = iVar5 + -0x10;\n        uVar8 = *puVar6;\n        if (iVar5 < 0x11) goto LAB_00058a14;\n        puVar6 = puVar6 + -1;\n      } while (uVar8 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < words) {\n        return 0;\n      }\n      uVar8 = *local_2c;\n      *local_2c = uVar8 + 1;\n    } while (uVar8 + 1 >> 0x10 != 0);\n    return 0;\n  }\n  iVar5 = 0x10;\n  uVar8 = local_2c[-1];\nLAB_00058a14:\n  if (mask[iVar5] != ((uint)uVar8 & mask[iVar5])) goto joined_r0x00058a2d;\n  if ((iVar11 - exponent_bits) + -1 == local_28) {\n    uVar8 = 0;\n    if (generic_floating_point_number.sign != '+') {\n      uVar8 = 0x8000;\n    }\n    *words = uVar8 | (ushort)(1 << (0xfU - cVar2 & 0x1f));\n    if (precision != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((precision != 5) || ((iVar11 - exponent_bits) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (generic_floating_point_number.sign == '+') {\n      *words = (LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f));\n    }\n    else {\n      *words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000;\n    }\n  }\n  puVar10 = words + 2;\n  words[1] = 0x8000;\njoined_r0x00058c0c:\n  for (; puVar10 < puVar12; puVar10 = puVar10 + 1) {\n    *puVar10 = 0;\n  }\n  return 0;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "LITTLENUM_TYPE LVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ushort *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "ushort uVar8;" type_identifier identifier ;) (declaration "ushort *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "ushort *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "ushort *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "ushort *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (if_statement "if (generic_floating_point_number.leader < generic_floating_point_number.low) {\n    LVar4 = 0;\n    if (generic_floating_point_number.sign != '+') {\n      LVar4 = 0x8000;\n    }\n    *words = LVar4;\n    memset(words + 1,0,precision * 2 - 2);\n    return 0;\n  }" if (parenthesized_expression "(generic_floating_point_number.leader < generic_floating_point_number.low)" ( (binary_expression "generic_floating_point_number.leader < generic_floating_point_number.low" (field_expression "generic_floating_point_number.leader" identifier . field_identifier) < (field_expression "generic_floating_point_number.low" identifier . field_identifier)) )) (compound_statement "{\n    LVar4 = 0;\n    if (generic_floating_point_number.sign != '+') {\n      LVar4 = 0x8000;\n    }\n    *words = LVar4;\n    memset(words + 1,0,precision * 2 - 2);\n    return 0;\n  }" { (expression_statement "LVar4 = 0;" (assignment_expression "LVar4 = 0" identifier = number_literal) ;) (if_statement "if (generic_floating_point_number.sign != '+') {\n      LVar4 = 0x8000;\n    }" if (parenthesized_expression "(generic_floating_point_number.sign != '+')" ( (binary_expression "generic_floating_point_number.sign != '+'" (field_expression "generic_floating_point_number.sign" identifier . field_identifier) != (char_literal "'+'" ' character ')) )) (compound_statement "{\n      LVar4 = 0x8000;\n    }" { (expression_statement "LVar4 = 0x8000;" (assignment_expression "LVar4 = 0x8000" identifier = number_literal) ;) })) (expression_statement "*words = LVar4;" (assignment_expression "*words = LVar4" (pointer_expression "*words" * identifier) = identifier) ;) (expression_statement "memset(words + 1,0,precision * 2 - 2);" (call_expression "memset(words + 1,0,precision * 2 - 2)" identifier (argument_list "(words + 1,0,precision * 2 - 2)" ( (binary_expression "words + 1" identifier + number_literal) , number_literal , (binary_expression "precision * 2 - 2" (binary_expression "precision * 2" identifier * number_literal) - number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (generic_floating_point_number.sign == '\0') {\n    if (precision == 2) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      words[2] = 0xffff;\n      words[3] = 0xffff;\n      return 0;\n    }\n    words[0] = 0xffff;\n    words[1] = 0xc000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }" if (parenthesized_expression "(generic_floating_point_number.sign == '\0')" ( (binary_expression "generic_floating_point_number.sign == '\0'" (field_expression "generic_floating_point_number.sign" identifier . field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (precision == 2) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      words[2] = 0xffff;\n      words[3] = 0xffff;\n      return 0;\n    }\n    words[0] = 0xffff;\n    words[1] = 0xc000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }" { (if_statement "if (precision == 2) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      return 0;\n    }" if (parenthesized_expression "(precision == 2)" ( (binary_expression "precision == 2" identifier == number_literal) )) (compound_statement "{\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      return 0;\n    }" { (expression_statement "words[0] = 0x7fff;" (assignment_expression "words[0] = 0x7fff" (subscript_expression "words[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[1] = 0xffff;" (assignment_expression "words[1] = 0xffff" (subscript_expression "words[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (precision != 5) {\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      words[2] = 0xffff;\n      words[3] = 0xffff;\n      return 0;\n    }" if (parenthesized_expression "(precision != 5)" ( (binary_expression "precision != 5" identifier != number_literal) )) (compound_statement "{\n      words[0] = 0x7fff;\n      words[1] = 0xffff;\n      words[2] = 0xffff;\n      words[3] = 0xffff;\n      return 0;\n    }" { (expression_statement "words[0] = 0x7fff;" (assignment_expression "words[0] = 0x7fff" (subscript_expression "words[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[1] = 0xffff;" (assignment_expression "words[1] = 0xffff" (subscript_expression "words[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[2] = 0xffff;" (assignment_expression "words[2] = 0xffff" (subscript_expression "words[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[3] = 0xffff;" (assignment_expression "words[3] = 0xffff" (subscript_expression "words[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "words[0] = 0xffff;" (assignment_expression "words[0] = 0xffff" (subscript_expression "words[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[1] = 0xc000;" (assignment_expression "words[1] = 0xc000" (subscript_expression "words[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[2] = 0;" (assignment_expression "words[2] = 0" (subscript_expression "words[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[3] = 0;" (assignment_expression "words[3] = 0" (subscript_expression "words[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[4] = 0;" (assignment_expression "words[4] = 0" (subscript_expression "words[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (generic_floating_point_number.sign == 'P') {\n    if (precision == 2) {\n      words[0] = 0x7f80;\n      words[1] = 0;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0x7ff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }\n    words[0] = 0x7fff;\n    words[1] = 0x8000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }" if (parenthesized_expression "(generic_floating_point_number.sign == 'P')" ( (binary_expression "generic_floating_point_number.sign == 'P'" (field_expression "generic_floating_point_number.sign" identifier . field_identifier) == (char_literal "'P'" ' character ')) )) (compound_statement "{\n    if (precision == 2) {\n      words[0] = 0x7f80;\n      words[1] = 0;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0x7ff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }\n    words[0] = 0x7fff;\n    words[1] = 0x8000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }" { (if_statement "if (precision == 2) {\n      words[0] = 0x7f80;\n      words[1] = 0;\n      return 0;\n    }" if (parenthesized_expression "(precision == 2)" ( (binary_expression "precision == 2" identifier == number_literal) )) (compound_statement "{\n      words[0] = 0x7f80;\n      words[1] = 0;\n      return 0;\n    }" { (expression_statement "words[0] = 0x7f80;" (assignment_expression "words[0] = 0x7f80" (subscript_expression "words[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[1] = 0;" (assignment_expression "words[1] = 0" (subscript_expression "words[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (precision != 5) {\n      words[0] = 0x7ff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }" if (parenthesized_expression "(precision != 5)" ( (binary_expression "precision != 5" identifier != number_literal) )) (compound_statement "{\n      words[0] = 0x7ff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }" { (expression_statement "words[0] = 0x7ff0;" (assignment_expression "words[0] = 0x7ff0" (subscript_expression "words[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[1] = 0;" (assignment_expression "words[1] = 0" (subscript_expression "words[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[2] = 0;" (assignment_expression "words[2] = 0" (subscript_expression "words[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[3] = 0;" (assignment_expression "words[3] = 0" (subscript_expression "words[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "words[0] = 0x7fff;" (assignment_expression "words[0] = 0x7fff" (subscript_expression "words[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[1] = 0x8000;" (assignment_expression "words[1] = 0x8000" (subscript_expression "words[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[2] = 0;" (assignment_expression "words[2] = 0" (subscript_expression "words[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[3] = 0;" (assignment_expression "words[3] = 0" (subscript_expression "words[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[4] = 0;" (assignment_expression "words[4] = 0" (subscript_expression "words[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (generic_floating_point_number.sign == 'N') {\n    if (precision == 2) {\n      words[0] = 0xff80;\n      words[1] = 0;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0xfff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }\n    words[0] = 0xffff;\n    words[1] = 0x8000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }" if (parenthesized_expression "(generic_floating_point_number.sign == 'N')" ( (binary_expression "generic_floating_point_number.sign == 'N'" (field_expression "generic_floating_point_number.sign" identifier . field_identifier) == (char_literal "'N'" ' character ')) )) (compound_statement "{\n    if (precision == 2) {\n      words[0] = 0xff80;\n      words[1] = 0;\n      return 0;\n    }\n    if (precision != 5) {\n      words[0] = 0xfff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }\n    words[0] = 0xffff;\n    words[1] = 0x8000;\n    words[2] = 0;\n    words[3] = 0;\n    words[4] = 0;\n    return 0;\n  }" { (if_statement "if (precision == 2) {\n      words[0] = 0xff80;\n      words[1] = 0;\n      return 0;\n    }" if (parenthesized_expression "(precision == 2)" ( (binary_expression "precision == 2" identifier == number_literal) )) (compound_statement "{\n      words[0] = 0xff80;\n      words[1] = 0;\n      return 0;\n    }" { (expression_statement "words[0] = 0xff80;" (assignment_expression "words[0] = 0xff80" (subscript_expression "words[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[1] = 0;" (assignment_expression "words[1] = 0" (subscript_expression "words[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (precision != 5) {\n      words[0] = 0xfff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }" if (parenthesized_expression "(precision != 5)" ( (binary_expression "precision != 5" identifier != number_literal) )) (compound_statement "{\n      words[0] = 0xfff0;\n      words[1] = 0;\n      words[2] = 0;\n      words[3] = 0;\n      return 0;\n    }" { (expression_statement "words[0] = 0xfff0;" (assignment_expression "words[0] = 0xfff0" (subscript_expression "words[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[1] = 0;" (assignment_expression "words[1] = 0" (subscript_expression "words[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[2] = 0;" (assignment_expression "words[2] = 0" (subscript_expression "words[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[3] = 0;" (assignment_expression "words[3] = 0" (subscript_expression "words[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "words[0] = 0xffff;" (assignment_expression "words[0] = 0xffff" (subscript_expression "words[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[1] = 0x8000;" (assignment_expression "words[1] = 0x8000" (subscript_expression "words[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[2] = 0;" (assignment_expression "words[2] = 0" (subscript_expression "words[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[3] = 0;" (assignment_expression "words[3] = 0" (subscript_expression "words[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "words[4] = 0;" (assignment_expression "words[4] = 0" (subscript_expression "words[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "littlenum_pointer = generic_floating_point_number.leader;" (assignment_expression "littlenum_pointer = generic_floating_point_number.leader" identifier = (field_expression "generic_floating_point_number.leader" identifier . field_identifier)) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "bits_left_in_littlenum = 0x10;" (assignment_expression "bits_left_in_littlenum = 0x10" identifier = number_literal) ;) (expression_statement "littlenums_left =\n       (int)generic_floating_point_number.leader + (2 - (int)generic_floating_point_number.low) >> 1\n  ;" (assignment_expression "littlenums_left =\n       (int)generic_floating_point_number.leader + (2 - (int)generic_floating_point_number.low) >> 1" identifier = (binary_expression "(int)generic_floating_point_number.leader + (2 - (int)generic_floating_point_number.low) >> 1" (binary_expression "(int)generic_floating_point_number.leader + (2 - (int)generic_floating_point_number.low)" (cast_expression "(int)generic_floating_point_number.leader" ( (type_descriptor "int" primitive_type) ) (field_expression "generic_floating_point_number.leader" identifier . field_identifier)) + (parenthesized_expression "(2 - (int)generic_floating_point_number.low)" ( (binary_expression "2 - (int)generic_floating_point_number.low" number_literal - (cast_expression "(int)generic_floating_point_number.low" ( (type_descriptor "int" primitive_type) ) (field_expression "generic_floating_point_number.low" identifier . field_identifier))) ))) >> number_literal)) ;) (while_statement "while (iVar5 = next_bits(1), iVar5 == 0) {\n    iVar11 = iVar11 + 1;\n  }" while (parenthesized_expression "(iVar5 = next_bits(1), iVar5 == 0)" ( (comma_expression "iVar5 = next_bits(1), iVar5 == 0" (assignment_expression "iVar5 = next_bits(1)" identifier = (call_expression "next_bits(1)" identifier (argument_list "(1)" ( number_literal )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) )) (compound_statement "{\n    iVar11 = iVar11 + 1;\n  }" { (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) })) (expression_statement "cVar2 = (char)exponent_bits;" (assignment_expression "cVar2 = (char)exponent_bits" identifier = (cast_expression "(char)exponent_bits" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar7 = (((int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1) * 0x10 - iVar11) + -2 +\n          (1 << (cVar2 - 1U & 0x1f));" (assignment_expression "uVar7 = (((int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1) * 0x10 - iVar11) + -2 +\n          (1 << (cVar2 - 1U & 0x1f))" identifier = (binary_expression "(((int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1) * 0x10 - iVar11) + -2 +\n          (1 << (cVar2 - 1U & 0x1f))" (binary_expression "(((int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1) * 0x10 - iVar11) + -2" (parenthesized_expression "(((int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1) * 0x10 - iVar11)" ( (binary_expression "((int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1) * 0x10 - iVar11" (binary_expression "((int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1) * 0x10" (parenthesized_expression "((int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1)" ( (binary_expression "(int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low) >> 1" (binary_expression "(int)generic_floating_point_number.leader +\n            ((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low)" (cast_expression "(int)generic_floating_point_number.leader" ( (type_descriptor "int" primitive_type) ) (field_expression "generic_floating_point_number.leader" identifier . field_identifier)) + (parenthesized_expression "((generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low)" ( (binary_expression "(generic_floating_point_number.exponent * 2 + 2) -\n            (int)generic_floating_point_number.low" (parenthesized_expression "(generic_floating_point_number.exponent * 2 + 2)" ( (binary_expression "generic_floating_point_number.exponent * 2 + 2" (binary_expression "generic_floating_point_number.exponent * 2" (field_expression "generic_floating_point_number.exponent" identifier . field_identifier) * number_literal) + number_literal) )) - (cast_expression "(int)generic_floating_point_number.low" ( (type_descriptor "int" primitive_type) ) (field_expression "generic_floating_point_number.low" identifier . field_identifier))) ))) >> number_literal) )) * number_literal) - identifier) )) + number_literal) + (parenthesized_expression "(1 << (cVar2 - 1U & 0x1f))" ( (binary_expression "1 << (cVar2 - 1U & 0x1f)" number_literal << (parenthesized_expression "(cVar2 - 1U & 0x1f)" ( (binary_expression "cVar2 - 1U & 0x1f" (binary_expression "cVar2 - 1U" identifier - number_literal) & number_literal) ))) )))) ;) (expression_statement "uVar8 = 0x8000;" (assignment_expression "uVar8 = 0x8000" identifier = number_literal) ;) (if_statement "if (generic_floating_point_number.sign == '+') {\n    uVar8 = 0;\n  }" if (parenthesized_expression "(generic_floating_point_number.sign == '+')" ( (binary_expression "generic_floating_point_number.sign == '+'" (field_expression "generic_floating_point_number.sign" identifier . field_identifier) == (char_literal "'+'" ' character ')) )) (compound_statement "{\n    uVar8 = 0;\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) })) (expression_statement "puVar12 = words + precision;" (assignment_expression "puVar12 = words + precision" identifier = (binary_expression "words + precision" identifier + identifier)) ;) (if_statement "if (0 < (int)uVar7) {\n    if (uVar7 < mask[exponent_bits]) {\n      iVar11 = next_bits(0xf - exponent_bits);\n      uVar8 = (ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11 | uVar8;\n      *words = uVar8;\n      bVar3 = exponent_bits == 0xf && precision == 5;\n      if (bVar3) {\n        iVar11 = next_bits(0xf);\n        puVar10 = words + 2;\n        words[1] = (ushort)iVar11 | 0x8000;\n      }\n      else {\n        puVar10 = words + 1;\n      }\n      puVar6 = puVar10;\n      if (puVar10 < puVar12) {\n        do {\n          puVar9 = puVar6 + 1;\n          iVar11 = next_bits(0x10);\n          *puVar6 = (ushort)iVar11;\n          puVar6 = puVar9;\n        } while (puVar9 < puVar12);\n        puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2);\n      }\n      iVar11 = next_bits(1);\n      if (iVar11 == 0) {\n        return 0;\n      }\n      puVar10 = puVar10 + -1;\n      do {\n        uVar1 = *puVar10;\n        *puVar10 = uVar1 + 1;\n        if (words == puVar10) goto LAB_0005878a;\n        puVar10 = puVar10 + -1;\n      } while (uVar1 + 1 >> 0x10 != 0);\n      if (words == puVar10) {\nLAB_0005878a:\n        if (bVar3) {\n          puVar10[1] = puVar10[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar8 ^ *words)) {\n        return 0;\n      }\n      *words = *words & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }" if (parenthesized_expression "(0 < (int)uVar7)" ( (binary_expression "0 < (int)uVar7" number_literal < (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    if (uVar7 < mask[exponent_bits]) {\n      iVar11 = next_bits(0xf - exponent_bits);\n      uVar8 = (ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11 | uVar8;\n      *words = uVar8;\n      bVar3 = exponent_bits == 0xf && precision == 5;\n      if (bVar3) {\n        iVar11 = next_bits(0xf);\n        puVar10 = words + 2;\n        words[1] = (ushort)iVar11 | 0x8000;\n      }\n      else {\n        puVar10 = words + 1;\n      }\n      puVar6 = puVar10;\n      if (puVar10 < puVar12) {\n        do {\n          puVar9 = puVar6 + 1;\n          iVar11 = next_bits(0x10);\n          *puVar6 = (ushort)iVar11;\n          puVar6 = puVar9;\n        } while (puVar9 < puVar12);\n        puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2);\n      }\n      iVar11 = next_bits(1);\n      if (iVar11 == 0) {\n        return 0;\n      }\n      puVar10 = puVar10 + -1;\n      do {\n        uVar1 = *puVar10;\n        *puVar10 = uVar1 + 1;\n        if (words == puVar10) goto LAB_0005878a;\n        puVar10 = puVar10 + -1;\n      } while (uVar1 + 1 >> 0x10 != 0);\n      if (words == puVar10) {\nLAB_0005878a:\n        if (bVar3) {\n          puVar10[1] = puVar10[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar8 ^ *words)) {\n        return 0;\n      }\n      *words = *words & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }" { (if_statement "if (uVar7 < mask[exponent_bits]) {\n      iVar11 = next_bits(0xf - exponent_bits);\n      uVar8 = (ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11 | uVar8;\n      *words = uVar8;\n      bVar3 = exponent_bits == 0xf && precision == 5;\n      if (bVar3) {\n        iVar11 = next_bits(0xf);\n        puVar10 = words + 2;\n        words[1] = (ushort)iVar11 | 0x8000;\n      }\n      else {\n        puVar10 = words + 1;\n      }\n      puVar6 = puVar10;\n      if (puVar10 < puVar12) {\n        do {\n          puVar9 = puVar6 + 1;\n          iVar11 = next_bits(0x10);\n          *puVar6 = (ushort)iVar11;\n          puVar6 = puVar9;\n        } while (puVar9 < puVar12);\n        puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2);\n      }\n      iVar11 = next_bits(1);\n      if (iVar11 == 0) {\n        return 0;\n      }\n      puVar10 = puVar10 + -1;\n      do {\n        uVar1 = *puVar10;\n        *puVar10 = uVar1 + 1;\n        if (words == puVar10) goto LAB_0005878a;\n        puVar10 = puVar10 + -1;\n      } while (uVar1 + 1 >> 0x10 != 0);\n      if (words == puVar10) {\nLAB_0005878a:\n        if (bVar3) {\n          puVar10[1] = puVar10[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar8 ^ *words)) {\n        return 0;\n      }\n      *words = *words & 0x7fff;\n      return 0;\n    }" if (parenthesized_expression "(uVar7 < mask[exponent_bits])" ( (binary_expression "uVar7 < mask[exponent_bits]" identifier < (subscript_expression "mask[exponent_bits]" identifier [ identifier ])) )) (compound_statement "{\n      iVar11 = next_bits(0xf - exponent_bits);\n      uVar8 = (ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11 | uVar8;\n      *words = uVar8;\n      bVar3 = exponent_bits == 0xf && precision == 5;\n      if (bVar3) {\n        iVar11 = next_bits(0xf);\n        puVar10 = words + 2;\n        words[1] = (ushort)iVar11 | 0x8000;\n      }\n      else {\n        puVar10 = words + 1;\n      }\n      puVar6 = puVar10;\n      if (puVar10 < puVar12) {\n        do {\n          puVar9 = puVar6 + 1;\n          iVar11 = next_bits(0x10);\n          *puVar6 = (ushort)iVar11;\n          puVar6 = puVar9;\n        } while (puVar9 < puVar12);\n        puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2);\n      }\n      iVar11 = next_bits(1);\n      if (iVar11 == 0) {\n        return 0;\n      }\n      puVar10 = puVar10 + -1;\n      do {\n        uVar1 = *puVar10;\n        *puVar10 = uVar1 + 1;\n        if (words == puVar10) goto LAB_0005878a;\n        puVar10 = puVar10 + -1;\n      } while (uVar1 + 1 >> 0x10 != 0);\n      if (words == puVar10) {\nLAB_0005878a:\n        if (bVar3) {\n          puVar10[1] = puVar10[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar8 ^ *words)) {\n        return 0;\n      }\n      *words = *words & 0x7fff;\n      return 0;\n    }" { (expression_statement "iVar11 = next_bits(0xf - exponent_bits);" (assignment_expression "iVar11 = next_bits(0xf - exponent_bits)" identifier = (call_expression "next_bits(0xf - exponent_bits)" identifier (argument_list "(0xf - exponent_bits)" ( (binary_expression "0xf - exponent_bits" number_literal - identifier) )))) ;) (expression_statement "uVar8 = (ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11 | uVar8;" (assignment_expression "uVar8 = (ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11 | uVar8" identifier = (binary_expression "(ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11 | uVar8" (binary_expression "(ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)) | (ushort)iVar11" (call_expression "(ushort)(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar7 << ((byte)(0xf - exponent_bits) & 0x1f))" ( (binary_expression "uVar7 << ((byte)(0xf - exponent_bits) & 0x1f)" identifier << (parenthesized_expression "((byte)(0xf - exponent_bits) & 0x1f)" ( (binary_expression "(byte)(0xf - exponent_bits) & 0x1f" (call_expression "(byte)(0xf - exponent_bits)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(0xf - exponent_bits)" ( (binary_expression "0xf - exponent_bits" number_literal - identifier) ))) & number_literal) ))) ))) | (cast_expression "(ushort)iVar11" ( (type_descriptor "ushort" type_identifier) ) identifier)) | identifier)) ;) (expression_statement "*words = uVar8;" (assignment_expression "*words = uVar8" (pointer_expression "*words" * identifier) = identifier) ;) (expression_statement "bVar3 = exponent_bits == 0xf && precision == 5;" (assignment_expression "bVar3 = exponent_bits == 0xf && precision == 5" identifier = (binary_expression "exponent_bits == 0xf && precision == 5" (binary_expression "exponent_bits == 0xf" identifier == number_literal) && (binary_expression "precision == 5" identifier == number_literal))) ;) (if_statement "if (bVar3) {\n        iVar11 = next_bits(0xf);\n        puVar10 = words + 2;\n        words[1] = (ushort)iVar11 | 0x8000;\n      }\n      else {\n        puVar10 = words + 1;\n      }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n        iVar11 = next_bits(0xf);\n        puVar10 = words + 2;\n        words[1] = (ushort)iVar11 | 0x8000;\n      }" { (expression_statement "iVar11 = next_bits(0xf);" (assignment_expression "iVar11 = next_bits(0xf)" identifier = (call_expression "next_bits(0xf)" identifier (argument_list "(0xf)" ( number_literal )))) ;) (expression_statement "puVar10 = words + 2;" (assignment_expression "puVar10 = words + 2" identifier = (binary_expression "words + 2" identifier + number_literal)) ;) (expression_statement "words[1] = (ushort)iVar11 | 0x8000;" (assignment_expression "words[1] = (ushort)iVar11 | 0x8000" (subscript_expression "words[1]" identifier [ number_literal ]) = (binary_expression "(ushort)iVar11 | 0x8000" (cast_expression "(ushort)iVar11" ( (type_descriptor "ushort" type_identifier) ) identifier) | number_literal)) ;) }) (else_clause "else {\n        puVar10 = words + 1;\n      }" else (compound_statement "{\n        puVar10 = words + 1;\n      }" { (expression_statement "puVar10 = words + 1;" (assignment_expression "puVar10 = words + 1" identifier = (binary_expression "words + 1" identifier + number_literal)) ;) }))) (expression_statement "puVar6 = puVar10;" (assignment_expression "puVar6 = puVar10" identifier = identifier) ;) (if_statement "if (puVar10 < puVar12) {\n        do {\n          puVar9 = puVar6 + 1;\n          iVar11 = next_bits(0x10);\n          *puVar6 = (ushort)iVar11;\n          puVar6 = puVar9;\n        } while (puVar9 < puVar12);\n        puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2);\n      }" if (parenthesized_expression "(puVar10 < puVar12)" ( (binary_expression "puVar10 < puVar12" identifier < identifier) )) (compound_statement "{\n        do {\n          puVar9 = puVar6 + 1;\n          iVar11 = next_bits(0x10);\n          *puVar6 = (ushort)iVar11;\n          puVar6 = puVar9;\n        } while (puVar9 < puVar12);\n        puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2);\n      }" { (do_statement "do {\n          puVar9 = puVar6 + 1;\n          iVar11 = next_bits(0x10);\n          *puVar6 = (ushort)iVar11;\n          puVar6 = puVar9;\n        } while (puVar9 < puVar12);" do (compound_statement "{\n          puVar9 = puVar6 + 1;\n          iVar11 = next_bits(0x10);\n          *puVar6 = (ushort)iVar11;\n          puVar6 = puVar9;\n        }" { (expression_statement "puVar9 = puVar6 + 1;" (assignment_expression "puVar9 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar11 = next_bits(0x10);" (assignment_expression "iVar11 = next_bits(0x10)" identifier = (call_expression "next_bits(0x10)" identifier (argument_list "(0x10)" ( number_literal )))) ;) (expression_statement "*puVar6 = (ushort)iVar11;" (assignment_expression "*puVar6 = (ushort)iVar11" (pointer_expression "*puVar6" * identifier) = (cast_expression "(ushort)iVar11" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "puVar6 = puVar9;" (assignment_expression "puVar6 = puVar9" identifier = identifier) ;) }) while (parenthesized_expression "(puVar9 < puVar12)" ( (binary_expression "puVar9 < puVar12" identifier < identifier) )) ;) (expression_statement "puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2);" (assignment_expression "puVar10 = (ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2)" identifier = (cast_expression "(ushort *)((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2)" ( (binary_expression "(int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU) + 2" (binary_expression "(int)puVar10 + ((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU)" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU)" ( (binary_expression "(int)puVar12 + (-1 - (int)puVar10) & 0xfffffffeU" (binary_expression "(int)puVar12 + (-1 - (int)puVar10)" (cast_expression "(int)puVar12" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-1 - (int)puVar10)" ( (binary_expression "-1 - (int)puVar10" number_literal - (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier)) ))) & number_literal) ))) + number_literal) )))) ;) })) (expression_statement "iVar11 = next_bits(1);" (assignment_expression "iVar11 = next_bits(1)" identifier = (call_expression "next_bits(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (if_statement "if (iVar11 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar10 = puVar10 + -1;" (assignment_expression "puVar10 = puVar10 + -1" identifier = (binary_expression "puVar10 + -1" identifier + number_literal)) ;) (do_statement "do {\n        uVar1 = *puVar10;\n        *puVar10 = uVar1 + 1;\n        if (words == puVar10) goto LAB_0005878a;\n        puVar10 = puVar10 + -1;\n      } while (uVar1 + 1 >> 0x10 != 0);" do (compound_statement "{\n        uVar1 = *puVar10;\n        *puVar10 = uVar1 + 1;\n        if (words == puVar10) goto LAB_0005878a;\n        puVar10 = puVar10 + -1;\n      }" { (expression_statement "uVar1 = *puVar10;" (assignment_expression "uVar1 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "*puVar10 = uVar1 + 1;" (assignment_expression "*puVar10 = uVar1 + 1" (pointer_expression "*puVar10" * identifier) = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (if_statement "if (words == puVar10) goto LAB_0005878a;" if (parenthesized_expression "(words == puVar10)" ( (binary_expression "words == puVar10" identifier == identifier) )) (goto_statement "goto LAB_0005878a;" goto statement_identifier ;)) (expression_statement "puVar10 = puVar10 + -1;" (assignment_expression "puVar10 = puVar10 + -1" identifier = (binary_expression "puVar10 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar1 + 1 >> 0x10 != 0)" ( (binary_expression "uVar1 + 1 >> 0x10 != 0" (binary_expression "uVar1 + 1 >> 0x10" (binary_expression "uVar1 + 1" identifier + number_literal) >> number_literal) != number_literal) )) ;) (if_statement "if (words == puVar10) {\nLAB_0005878a:\n        if (bVar3) {\n          puVar10[1] = puVar10[1] | 0x8000;\n        }\n      }" if (parenthesized_expression "(words == puVar10)" ( (binary_expression "words == puVar10" identifier == identifier) )) (compound_statement "{\nLAB_0005878a:\n        if (bVar3) {\n          puVar10[1] = puVar10[1] | 0x8000;\n        }\n      }" { (labeled_statement "LAB_0005878a:\n        if (bVar3) {\n          puVar10[1] = puVar10[1] | 0x8000;\n        }" statement_identifier : (if_statement "if (bVar3) {\n          puVar10[1] = puVar10[1] | 0x8000;\n        }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n          puVar10[1] = puVar10[1] | 0x8000;\n        }" { (expression_statement "puVar10[1] = puVar10[1] | 0x8000;" (assignment_expression "puVar10[1] = puVar10[1] | 0x8000" (subscript_expression "puVar10[1]" identifier [ number_literal ]) = (binary_expression "puVar10[1] | 0x8000" (subscript_expression "puVar10[1]" identifier [ number_literal ]) | number_literal)) ;) }))) })) (if_statement "if (-1 < (short)(uVar8 ^ *words)) {\n        return 0;\n      }" if (parenthesized_expression "(-1 < (short)(uVar8 ^ *words))" ( (binary_expression "-1 < (short)(uVar8 ^ *words)" number_literal < (cast_expression "(short)(uVar8 ^ *words)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "(uVar8 ^ *words)" ( (binary_expression "uVar8 ^ *words" identifier ^ (pointer_expression "*words" * identifier)) )))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*words = *words & 0x7fff;" (assignment_expression "*words = *words & 0x7fff" (pointer_expression "*words" * identifier) = (binary_expression "*words & 0x7fff" (pointer_expression "*words" * identifier) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_00058810;" goto statement_identifier ;) })) (if_statement "if (littlenums_left == 0) {\n    littlenum_pointer = littlenum_pointer + 1;\n    littlenums_left = 1;\n    bits_left_in_littlenum = 1;\n    iVar11 = bits_left_in_littlenum;\n  }\n  else {\n    iVar11 = bits_left_in_littlenum + 1;\n    if (0x10 < bits_left_in_littlenum + 1) {\n      littlenums_left = littlenums_left + 1;\n      littlenum_pointer = littlenum_pointer + 1;\n      iVar11 = bits_left_in_littlenum + -0xf;\n    }\n  }" if (parenthesized_expression "(littlenums_left == 0)" ( (binary_expression "littlenums_left == 0" identifier == number_literal) )) (compound_statement "{\n    littlenum_pointer = littlenum_pointer + 1;\n    littlenums_left = 1;\n    bits_left_in_littlenum = 1;\n    iVar11 = bits_left_in_littlenum;\n  }" { (expression_statement "littlenum_pointer = littlenum_pointer + 1;" (assignment_expression "littlenum_pointer = littlenum_pointer + 1" identifier = (binary_expression "littlenum_pointer + 1" identifier + number_literal)) ;) (expression_statement "littlenums_left = 1;" (assignment_expression "littlenums_left = 1" identifier = number_literal) ;) (expression_statement "bits_left_in_littlenum = 1;" (assignment_expression "bits_left_in_littlenum = 1" identifier = number_literal) ;) (expression_statement "iVar11 = bits_left_in_littlenum;" (assignment_expression "iVar11 = bits_left_in_littlenum" identifier = identifier) ;) }) (else_clause "else {\n    iVar11 = bits_left_in_littlenum + 1;\n    if (0x10 < bits_left_in_littlenum + 1) {\n      littlenums_left = littlenums_left + 1;\n      littlenum_pointer = littlenum_pointer + 1;\n      iVar11 = bits_left_in_littlenum + -0xf;\n    }\n  }" else (compound_statement "{\n    iVar11 = bits_left_in_littlenum + 1;\n    if (0x10 < bits_left_in_littlenum + 1) {\n      littlenums_left = littlenums_left + 1;\n      littlenum_pointer = littlenum_pointer + 1;\n      iVar11 = bits_left_in_littlenum + -0xf;\n    }\n  }" { (expression_statement "iVar11 = bits_left_in_littlenum + 1;" (assignment_expression "iVar11 = bits_left_in_littlenum + 1" identifier = (binary_expression "bits_left_in_littlenum + 1" identifier + number_literal)) ;) (if_statement "if (0x10 < bits_left_in_littlenum + 1) {\n      littlenums_left = littlenums_left + 1;\n      littlenum_pointer = littlenum_pointer + 1;\n      iVar11 = bits_left_in_littlenum + -0xf;\n    }" if (parenthesized_expression "(0x10 < bits_left_in_littlenum + 1)" ( (binary_expression "0x10 < bits_left_in_littlenum + 1" number_literal < (binary_expression "bits_left_in_littlenum + 1" identifier + number_literal)) )) (compound_statement "{\n      littlenums_left = littlenums_left + 1;\n      littlenum_pointer = littlenum_pointer + 1;\n      iVar11 = bits_left_in_littlenum + -0xf;\n    }" { (expression_statement "littlenums_left = littlenums_left + 1;" (assignment_expression "littlenums_left = littlenums_left + 1" identifier = (binary_expression "littlenums_left + 1" identifier + number_literal)) ;) (expression_statement "littlenum_pointer = littlenum_pointer + 1;" (assignment_expression "littlenum_pointer = littlenum_pointer + 1" identifier = (binary_expression "littlenum_pointer + 1" identifier + number_literal)) ;) (expression_statement "iVar11 = bits_left_in_littlenum + -0xf;" (assignment_expression "iVar11 = bits_left_in_littlenum + -0xf" identifier = (binary_expression "bits_left_in_littlenum + -0xf" identifier + number_literal)) ;) })) }))) (expression_statement "bits_left_in_littlenum = iVar11;" (assignment_expression "bits_left_in_littlenum = iVar11" identifier = identifier) ;) (expression_statement "iVar11 = precision * 0x10;" (assignment_expression "iVar11 = precision * 0x10" identifier = (binary_expression "precision * 0x10" identifier * number_literal)) ;) (expression_statement "local_28 = iVar11 - ((exponent_bits + 1) - uVar7);" (assignment_expression "local_28 = iVar11 - ((exponent_bits + 1) - uVar7)" identifier = (binary_expression "iVar11 - ((exponent_bits + 1) - uVar7)" identifier - (parenthesized_expression "((exponent_bits + 1) - uVar7)" ( (binary_expression "(exponent_bits + 1) - uVar7" (parenthesized_expression "(exponent_bits + 1)" ( (binary_expression "exponent_bits + 1" identifier + number_literal) )) - identifier) )))) ;) (expression_statement "puVar10 = words + 1;" (assignment_expression "puVar10 = words + 1" identifier = (binary_expression "words + 1" identifier + number_literal)) ;) (expression_statement "local_2c = puVar10;" (assignment_expression "local_2c = puVar10" identifier = identifier) ;) (if_statement "if ((precision == 5) && (exponent_bits == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar5 = 1 - uVar7;\nLAB_00058914:\n    iVar5 = iVar5 + -0xf + exponent_bits;\n    *words = uVar8;\n    if (iVar11 <= exponent_bits + iVar5) {\nLAB_00058810:\n      make_invalid_floating_point_number(words);\n      return 0;\n    }\n    if (0xf < iVar5) {\n      uVar7 = iVar5 - 0x10U >> 4;\n      puVar6 = puVar10;\n      do {\n        puVar9 = puVar6 + 1;\n        *puVar6 = 0;\n        puVar6 = puVar9;\n      } while (words + uVar7 + 2 != puVar9);\n      iVar5 = (iVar5 - 0x10U) + uVar7 * -0x10;\n      local_2c = words + uVar7 + 2;\n    }\n    if (iVar5 != 0) {\n      iVar5 = next_bits(0x10 - iVar5);\n      *local_2c = (ushort)iVar5;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar5 = -uVar7;\n    if (0x10 - exponent_bits <= iVar5) goto LAB_00058914;\n    iVar5 = next_bits((uVar7 - exponent_bits) + 0xf);\n    *words = (ushort)iVar5 | uVar8;\n  }" if (parenthesized_expression "((precision == 5) && (exponent_bits == 0xf))" ( (binary_expression "(precision == 5) && (exponent_bits == 0xf)" (parenthesized_expression "(precision == 5)" ( (binary_expression "precision == 5" identifier == number_literal) )) && (parenthesized_expression "(exponent_bits == 0xf)" ( (binary_expression "exponent_bits == 0xf" identifier == number_literal) ))) )) (compound_statement "{\n    local_28 = local_28 + -1;\n    iVar5 = 1 - uVar7;\nLAB_00058914:\n    iVar5 = iVar5 + -0xf + exponent_bits;\n    *words = uVar8;\n    if (iVar11 <= exponent_bits + iVar5) {\nLAB_00058810:\n      make_invalid_floating_point_number(words);\n      return 0;\n    }\n    if (0xf < iVar5) {\n      uVar7 = iVar5 - 0x10U >> 4;\n      puVar6 = puVar10;\n      do {\n        puVar9 = puVar6 + 1;\n        *puVar6 = 0;\n        puVar6 = puVar9;\n      } while (words + uVar7 + 2 != puVar9);\n      iVar5 = (iVar5 - 0x10U) + uVar7 * -0x10;\n      local_2c = words + uVar7 + 2;\n    }\n    if (iVar5 != 0) {\n      iVar5 = next_bits(0x10 - iVar5);\n      *local_2c = (ushort)iVar5;\n      local_2c = local_2c + 1;\n    }\n  }" { (expression_statement "local_28 = local_28 + -1;" (assignment_expression "local_28 = local_28 + -1" identifier = (binary_expression "local_28 + -1" identifier + number_literal)) ;) (expression_statement "iVar5 = 1 - uVar7;" (assignment_expression "iVar5 = 1 - uVar7" identifier = (binary_expression "1 - uVar7" number_literal - identifier)) ;) (labeled_statement "LAB_00058914:\n    iVar5 = iVar5 + -0xf + exponent_bits;" statement_identifier : (expression_statement "iVar5 = iVar5 + -0xf + exponent_bits;" (assignment_expression "iVar5 = iVar5 + -0xf + exponent_bits" identifier = (binary_expression "iVar5 + -0xf + exponent_bits" (binary_expression "iVar5 + -0xf" identifier + number_literal) + identifier)) ;)) (expression_statement "*words = uVar8;" (assignment_expression "*words = uVar8" (pointer_expression "*words" * identifier) = identifier) ;) (if_statement "if (iVar11 <= exponent_bits + iVar5) {\nLAB_00058810:\n      make_invalid_floating_point_number(words);\n      return 0;\n    }" if (parenthesized_expression "(iVar11 <= exponent_bits + iVar5)" ( (binary_expression "iVar11 <= exponent_bits + iVar5" identifier <= (binary_expression "exponent_bits + iVar5" identifier + identifier)) )) (compound_statement "{\nLAB_00058810:\n      make_invalid_floating_point_number(words);\n      return 0;\n    }" { (labeled_statement "LAB_00058810:\n      make_invalid_floating_point_number(words);" statement_identifier : (expression_statement "make_invalid_floating_point_number(words);" (call_expression "make_invalid_floating_point_number(words)" identifier (argument_list "(words)" ( identifier ))) ;)) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (0xf < iVar5) {\n      uVar7 = iVar5 - 0x10U >> 4;\n      puVar6 = puVar10;\n      do {\n        puVar9 = puVar6 + 1;\n        *puVar6 = 0;\n        puVar6 = puVar9;\n      } while (words + uVar7 + 2 != puVar9);\n      iVar5 = (iVar5 - 0x10U) + uVar7 * -0x10;\n      local_2c = words + uVar7 + 2;\n    }" if (parenthesized_expression "(0xf < iVar5)" ( (binary_expression "0xf < iVar5" number_literal < identifier) )) (compound_statement "{\n      uVar7 = iVar5 - 0x10U >> 4;\n      puVar6 = puVar10;\n      do {\n        puVar9 = puVar6 + 1;\n        *puVar6 = 0;\n        puVar6 = puVar9;\n      } while (words + uVar7 + 2 != puVar9);\n      iVar5 = (iVar5 - 0x10U) + uVar7 * -0x10;\n      local_2c = words + uVar7 + 2;\n    }" { (expression_statement "uVar7 = iVar5 - 0x10U >> 4;" (assignment_expression "uVar7 = iVar5 - 0x10U >> 4" identifier = (binary_expression "iVar5 - 0x10U >> 4" (binary_expression "iVar5 - 0x10U" identifier - number_literal) >> number_literal)) ;) (expression_statement "puVar6 = puVar10;" (assignment_expression "puVar6 = puVar10" identifier = identifier) ;) (do_statement "do {\n        puVar9 = puVar6 + 1;\n        *puVar6 = 0;\n        puVar6 = puVar9;\n      } while (words + uVar7 + 2 != puVar9);" do (compound_statement "{\n        puVar9 = puVar6 + 1;\n        *puVar6 = 0;\n        puVar6 = puVar9;\n      }" { (expression_statement "puVar9 = puVar6 + 1;" (assignment_expression "puVar9 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6 = puVar9;" (assignment_expression "puVar6 = puVar9" identifier = identifier) ;) }) while (parenthesized_expression "(words + uVar7 + 2 != puVar9)" ( (binary_expression "words + uVar7 + 2 != puVar9" (binary_expression "words + uVar7 + 2" (binary_expression "words + uVar7" identifier + identifier) + number_literal) != identifier) )) ;) (expression_statement "iVar5 = (iVar5 - 0x10U) + uVar7 * -0x10;" (assignment_expression "iVar5 = (iVar5 - 0x10U) + uVar7 * -0x10" identifier = (binary_expression "(iVar5 - 0x10U) + uVar7 * -0x10" (parenthesized_expression "(iVar5 - 0x10U)" ( (binary_expression "iVar5 - 0x10U" identifier - number_literal) )) + (binary_expression "uVar7 * -0x10" identifier * number_literal))) ;) (expression_statement "local_2c = words + uVar7 + 2;" (assignment_expression "local_2c = words + uVar7 + 2" identifier = (binary_expression "words + uVar7 + 2" (binary_expression "words + uVar7" identifier + identifier) + number_literal)) ;) })) (if_statement "if (iVar5 != 0) {\n      iVar5 = next_bits(0x10 - iVar5);\n      *local_2c = (ushort)iVar5;\n      local_2c = local_2c + 1;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar5 = next_bits(0x10 - iVar5);\n      *local_2c = (ushort)iVar5;\n      local_2c = local_2c + 1;\n    }" { (expression_statement "iVar5 = next_bits(0x10 - iVar5);" (assignment_expression "iVar5 = next_bits(0x10 - iVar5)" identifier = (call_expression "next_bits(0x10 - iVar5)" identifier (argument_list "(0x10 - iVar5)" ( (binary_expression "0x10 - iVar5" number_literal - identifier) )))) ;) (expression_statement "*local_2c = (ushort)iVar5;" (assignment_expression "*local_2c = (ushort)iVar5" (pointer_expression "*local_2c" * identifier) = (cast_expression "(ushort)iVar5" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n    iVar5 = -uVar7;\n    if (0x10 - exponent_bits <= iVar5) goto LAB_00058914;\n    iVar5 = next_bits((uVar7 - exponent_bits) + 0xf);\n    *words = (ushort)iVar5 | uVar8;\n  }" else (compound_statement "{\n    iVar5 = -uVar7;\n    if (0x10 - exponent_bits <= iVar5) goto LAB_00058914;\n    iVar5 = next_bits((uVar7 - exponent_bits) + 0xf);\n    *words = (ushort)iVar5 | uVar8;\n  }" { (expression_statement "iVar5 = -uVar7;" (assignment_expression "iVar5 = -uVar7" identifier = (unary_expression "-uVar7" - identifier)) ;) (if_statement "if (0x10 - exponent_bits <= iVar5) goto LAB_00058914;" if (parenthesized_expression "(0x10 - exponent_bits <= iVar5)" ( (binary_expression "0x10 - exponent_bits <= iVar5" (binary_expression "0x10 - exponent_bits" number_literal - identifier) <= identifier) )) (goto_statement "goto LAB_00058914;" goto statement_identifier ;)) (expression_statement "iVar5 = next_bits((uVar7 - exponent_bits) + 0xf);" (assignment_expression "iVar5 = next_bits((uVar7 - exponent_bits) + 0xf)" identifier = (call_expression "next_bits((uVar7 - exponent_bits) + 0xf)" identifier (argument_list "((uVar7 - exponent_bits) + 0xf)" ( (binary_expression "(uVar7 - exponent_bits) + 0xf" (parenthesized_expression "(uVar7 - exponent_bits)" ( (binary_expression "uVar7 - exponent_bits" identifier - identifier) )) + number_literal) )))) ;) (expression_statement "*words = (ushort)iVar5 | uVar8;" (assignment_expression "*words = (ushort)iVar5 | uVar8" (pointer_expression "*words" * identifier) = (binary_expression "(ushort)iVar5 | uVar8" (cast_expression "(ushort)iVar5" ( (type_descriptor "ushort" type_identifier) ) identifier) | identifier)) ;) }))) (expression_statement "puVar6 = local_2c;" (assignment_expression "puVar6 = local_2c" identifier = identifier) ;) (if_statement "if (local_2c < puVar12) {\n    do {\n      puVar9 = puVar6 + 1;\n      iVar5 = next_bits(0x10);\n      *puVar6 = (ushort)iVar5;\n      puVar6 = puVar9;\n    } while (puVar9 < puVar12);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }" if (parenthesized_expression "(local_2c < puVar12)" ( (binary_expression "local_2c < puVar12" identifier < identifier) )) (compound_statement "{\n    do {\n      puVar9 = puVar6 + 1;\n      iVar5 = next_bits(0x10);\n      *puVar6 = (ushort)iVar5;\n      puVar6 = puVar9;\n    } while (puVar9 < puVar12);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }" { (do_statement "do {\n      puVar9 = puVar6 + 1;\n      iVar5 = next_bits(0x10);\n      *puVar6 = (ushort)iVar5;\n      puVar6 = puVar9;\n    } while (puVar9 < puVar12);" do (compound_statement "{\n      puVar9 = puVar6 + 1;\n      iVar5 = next_bits(0x10);\n      *puVar6 = (ushort)iVar5;\n      puVar6 = puVar9;\n    }" { (expression_statement "puVar9 = puVar6 + 1;" (assignment_expression "puVar9 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = next_bits(0x10);" (assignment_expression "iVar5 = next_bits(0x10)" identifier = (call_expression "next_bits(0x10)" identifier (argument_list "(0x10)" ( number_literal )))) ;) (expression_statement "*puVar6 = (ushort)iVar5;" (assignment_expression "*puVar6 = (ushort)iVar5" (pointer_expression "*puVar6" * identifier) = (cast_expression "(ushort)iVar5" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "puVar6 = puVar9;" (assignment_expression "puVar6 = puVar9" identifier = identifier) ;) }) while (parenthesized_expression "(puVar9 < puVar12)" ( (binary_expression "puVar9 < puVar12" identifier < identifier) )) ;) (expression_statement "local_2c = (ushort *)((int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);" (assignment_expression "local_2c = (ushort *)((int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" identifier = (cast_expression "(ushort *)((int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" ( (binary_expression "(int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU) + 2" (binary_expression "(int)local_2c + ((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU)" (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU)" ( (binary_expression "(int)puVar12 + (-1 - (int)local_2c) & 0xfffffffeU" (binary_expression "(int)puVar12 + (-1 - (int)local_2c)" (cast_expression "(int)puVar12" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-1 - (int)local_2c)" ( (binary_expression "-1 - (int)local_2c" number_literal - (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier)) ))) & number_literal) ))) + number_literal) )))) ;) })) (expression_statement "iVar5 = next_bits(1);" (assignment_expression "iVar5 = next_bits(1)" identifier = (call_expression "next_bits(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }" if (parenthesized_expression "(local_28 < 0x10)" ( (binary_expression "local_28 < 0x10" identifier < number_literal) )) (compound_statement "{\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }" { (expression_statement "local_2c[-1] = local_2c[-1] + 1;" (assignment_expression "local_2c[-1] = local_2c[-1] + 1" (subscript_expression "local_2c[-1]" identifier [ number_literal ]) = (binary_expression "local_2c[-1] + 1" (subscript_expression "local_2c[-1]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar6 = local_2c + -2;\n      iVar5 = local_28;\n      do {\n        iVar5 = iVar5 + -0x10;\n        uVar8 = *puVar6;\n        if (iVar5 < 0x11) goto LAB_00058a14;\n        puVar6 = puVar6 + -1;\n      } while (uVar8 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < words) {\n        return 0;\n      }\n      uVar8 = *local_2c;\n      *local_2c = uVar8 + 1;\n    } while (uVar8 + 1 >> 0x10 != 0);\n    return 0;\n  }" if (parenthesized_expression "(local_28 != 0x10)" ( (binary_expression "local_28 != 0x10" identifier != number_literal) )) (compound_statement "{\n    if (local_2c[-1] == 0xffff) {\n      puVar6 = local_2c + -2;\n      iVar5 = local_28;\n      do {\n        iVar5 = iVar5 + -0x10;\n        uVar8 = *puVar6;\n        if (iVar5 < 0x11) goto LAB_00058a14;\n        puVar6 = puVar6 + -1;\n      } while (uVar8 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < words) {\n        return 0;\n      }\n      uVar8 = *local_2c;\n      *local_2c = uVar8 + 1;\n    } while (uVar8 + 1 >> 0x10 != 0);\n    return 0;\n  }" { (if_statement "if (local_2c[-1] == 0xffff) {\n      puVar6 = local_2c + -2;\n      iVar5 = local_28;\n      do {\n        iVar5 = iVar5 + -0x10;\n        uVar8 = *puVar6;\n        if (iVar5 < 0x11) goto LAB_00058a14;\n        puVar6 = puVar6 + -1;\n      } while (uVar8 == 0xffff);\n    }" if (parenthesized_expression "(local_2c[-1] == 0xffff)" ( (binary_expression "local_2c[-1] == 0xffff" (subscript_expression "local_2c[-1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      puVar6 = local_2c + -2;\n      iVar5 = local_28;\n      do {\n        iVar5 = iVar5 + -0x10;\n        uVar8 = *puVar6;\n        if (iVar5 < 0x11) goto LAB_00058a14;\n        puVar6 = puVar6 + -1;\n      } while (uVar8 == 0xffff);\n    }" { (expression_statement "puVar6 = local_2c + -2;" (assignment_expression "puVar6 = local_2c + -2" identifier = (binary_expression "local_2c + -2" identifier + number_literal)) ;) (expression_statement "iVar5 = local_28;" (assignment_expression "iVar5 = local_28" identifier = identifier) ;) (do_statement "do {\n        iVar5 = iVar5 + -0x10;\n        uVar8 = *puVar6;\n        if (iVar5 < 0x11) goto LAB_00058a14;\n        puVar6 = puVar6 + -1;\n      } while (uVar8 == 0xffff);" do (compound_statement "{\n        iVar5 = iVar5 + -0x10;\n        uVar8 = *puVar6;\n        if (iVar5 < 0x11) goto LAB_00058a14;\n        puVar6 = puVar6 + -1;\n      }" { (expression_statement "iVar5 = iVar5 + -0x10;" (assignment_expression "iVar5 = iVar5 + -0x10" identifier = (binary_expression "iVar5 + -0x10" identifier + number_literal)) ;) (expression_statement "uVar8 = *puVar6;" (assignment_expression "uVar8 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (if_statement "if (iVar5 < 0x11) goto LAB_00058a14;" if (parenthesized_expression "(iVar5 < 0x11)" ( (binary_expression "iVar5 < 0x11" identifier < number_literal) )) (goto_statement "goto LAB_00058a14;" goto statement_identifier ;)) (expression_statement "puVar6 = puVar6 + -1;" (assignment_expression "puVar6 = puVar6 + -1" identifier = (binary_expression "puVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar8 == 0xffff)" ( (binary_expression "uVar8 == 0xffff" identifier == number_literal) )) ;) })) (labeled_statement "joined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < words) {\n        return 0;\n      }\n      uVar8 = *local_2c;\n      *local_2c = uVar8 + 1;\n    } while (uVar8 + 1 >> 0x10 != 0);" statement_identifier : (do_statement "do {\n      local_2c = local_2c + -1;\n      if (local_2c < words) {\n        return 0;\n      }\n      uVar8 = *local_2c;\n      *local_2c = uVar8 + 1;\n    } while (uVar8 + 1 >> 0x10 != 0);" do (compound_statement "{\n      local_2c = local_2c + -1;\n      if (local_2c < words) {\n        return 0;\n      }\n      uVar8 = *local_2c;\n      *local_2c = uVar8 + 1;\n    }" { (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (if_statement "if (local_2c < words) {\n        return 0;\n      }" if (parenthesized_expression "(local_2c < words)" ( (binary_expression "local_2c < words" identifier < identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar8 = *local_2c;" (assignment_expression "uVar8 = *local_2c" identifier = (pointer_expression "*local_2c" * identifier)) ;) (expression_statement "*local_2c = uVar8 + 1;" (assignment_expression "*local_2c = uVar8 + 1" (pointer_expression "*local_2c" * identifier) = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar8 + 1 >> 0x10 != 0)" ( (binary_expression "uVar8 + 1 >> 0x10 != 0" (binary_expression "uVar8 + 1 >> 0x10" (binary_expression "uVar8 + 1" identifier + number_literal) >> number_literal) != number_literal) )) ;)) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = 0x10;" (assignment_expression "iVar5 = 0x10" identifier = number_literal) ;) (expression_statement "uVar8 = local_2c[-1];" (assignment_expression "uVar8 = local_2c[-1]" identifier = (subscript_expression "local_2c[-1]" identifier [ number_literal ])) ;) (labeled_statement "LAB_00058a14:\n  if (mask[iVar5] != ((uint)uVar8 & mask[iVar5])) goto joined_r0x00058a2d;" statement_identifier : (if_statement "if (mask[iVar5] != ((uint)uVar8 & mask[iVar5])) goto joined_r0x00058a2d;" if (parenthesized_expression "(mask[iVar5] != ((uint)uVar8 & mask[iVar5]))" ( (binary_expression "mask[iVar5] != ((uint)uVar8 & mask[iVar5])" (subscript_expression "mask[iVar5]" identifier [ identifier ]) != (parenthesized_expression "((uint)uVar8 & mask[iVar5])" ( (binary_expression "(uint)uVar8 & mask[iVar5]" (cast_expression "(uint)uVar8" ( (type_descriptor "uint" type_identifier) ) identifier) & (subscript_expression "mask[iVar5]" identifier [ identifier ])) ))) )) (goto_statement "goto joined_r0x00058a2d;" goto statement_identifier ;))) (if_statement "if ((iVar11 - exponent_bits) + -1 == local_28) {\n    uVar8 = 0;\n    if (generic_floating_point_number.sign != '+') {\n      uVar8 = 0x8000;\n    }\n    *words = uVar8 | (ushort)(1 << (0xfU - cVar2 & 0x1f));\n    if (precision != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((precision != 5) || ((iVar11 - exponent_bits) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (generic_floating_point_number.sign == '+') {\n      *words = (LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f));\n    }\n    else {\n      *words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000;\n    }\n  }" if (parenthesized_expression "((iVar11 - exponent_bits) + -1 == local_28)" ( (binary_expression "(iVar11 - exponent_bits) + -1 == local_28" (binary_expression "(iVar11 - exponent_bits) + -1" (parenthesized_expression "(iVar11 - exponent_bits)" ( (binary_expression "iVar11 - exponent_bits" identifier - identifier) )) + number_literal) == identifier) )) (compound_statement "{\n    uVar8 = 0;\n    if (generic_floating_point_number.sign != '+') {\n      uVar8 = 0x8000;\n    }\n    *words = uVar8 | (ushort)(1 << (0xfU - cVar2 & 0x1f));\n    if (precision != 5) goto joined_r0x00058c0c;\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (if_statement "if (generic_floating_point_number.sign != '+') {\n      uVar8 = 0x8000;\n    }" if (parenthesized_expression "(generic_floating_point_number.sign != '+')" ( (binary_expression "generic_floating_point_number.sign != '+'" (field_expression "generic_floating_point_number.sign" identifier . field_identifier) != (char_literal "'+'" ' character ')) )) (compound_statement "{\n      uVar8 = 0x8000;\n    }" { (expression_statement "uVar8 = 0x8000;" (assignment_expression "uVar8 = 0x8000" identifier = number_literal) ;) })) (expression_statement "*words = uVar8 | (ushort)(1 << (0xfU - cVar2 & 0x1f));" (assignment_expression "*words = uVar8 | (ushort)(1 << (0xfU - cVar2 & 0x1f))" (pointer_expression "*words" * identifier) = (binary_expression "uVar8 | (ushort)(1 << (0xfU - cVar2 & 0x1f))" identifier | (call_expression "(ushort)(1 << (0xfU - cVar2 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(1 << (0xfU - cVar2 & 0x1f))" ( (binary_expression "1 << (0xfU - cVar2 & 0x1f)" number_literal << (parenthesized_expression "(0xfU - cVar2 & 0x1f)" ( (binary_expression "0xfU - cVar2 & 0x1f" (binary_expression "0xfU - cVar2" number_literal - identifier) & number_literal) ))) ))))) ;) (if_statement "if (precision != 5) goto joined_r0x00058c0c;" if (parenthesized_expression "(precision != 5)" ( (binary_expression "precision != 5" identifier != number_literal) )) (goto_statement "goto joined_r0x00058c0c;" goto statement_identifier ;)) }) (else_clause "else {\n    if ((precision != 5) || ((iVar11 - exponent_bits) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (generic_floating_point_number.sign == '+') {\n      *words = (LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f));\n    }\n    else {\n      *words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000;\n    }\n  }" else (compound_statement "{\n    if ((precision != 5) || ((iVar11 - exponent_bits) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (generic_floating_point_number.sign == '+') {\n      *words = (LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f));\n    }\n    else {\n      *words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000;\n    }\n  }" { (if_statement "if ((precision != 5) || ((iVar11 - exponent_bits) + -2 != local_28)) goto joined_r0x00058a2d;" if (parenthesized_expression "((precision != 5) || ((iVar11 - exponent_bits) + -2 != local_28))" ( (binary_expression "(precision != 5) || ((iVar11 - exponent_bits) + -2 != local_28)" (parenthesized_expression "(precision != 5)" ( (binary_expression "precision != 5" identifier != number_literal) )) || (parenthesized_expression "((iVar11 - exponent_bits) + -2 != local_28)" ( (binary_expression "(iVar11 - exponent_bits) + -2 != local_28" (binary_expression "(iVar11 - exponent_bits) + -2" (parenthesized_expression "(iVar11 - exponent_bits)" ( (binary_expression "iVar11 - exponent_bits" identifier - identifier) )) + number_literal) != identifier) ))) )) (goto_statement "goto joined_r0x00058a2d;" goto statement_identifier ;)) (if_statement "if (generic_floating_point_number.sign == '+') {\n      *words = (LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f));\n    }\n    else {\n      *words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000;\n    }" if (parenthesized_expression "(generic_floating_point_number.sign == '+')" ( (binary_expression "generic_floating_point_number.sign == '+'" (field_expression "generic_floating_point_number.sign" identifier . field_identifier) == (char_literal "'+'" ' character ')) )) (compound_statement "{\n      *words = (LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f));\n    }" { (expression_statement "*words = (LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f));" (assignment_expression "*words = (LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f))" (pointer_expression "*words" * identifier) = (call_expression "(LITTLENUM_TYPE)(1 << (0xfU - cVar2 & 0x1f))" (parenthesized_expression "(LITTLENUM_TYPE)" ( identifier )) (argument_list "(1 << (0xfU - cVar2 & 0x1f))" ( (binary_expression "1 << (0xfU - cVar2 & 0x1f)" number_literal << (parenthesized_expression "(0xfU - cVar2 & 0x1f)" ( (binary_expression "0xfU - cVar2 & 0x1f" (binary_expression "0xfU - cVar2" number_literal - identifier) & number_literal) ))) )))) ;) }) (else_clause "else {\n      *words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000;\n    }" else (compound_statement "{\n      *words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000;\n    }" { (expression_statement "*words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000;" (assignment_expression "*words = (ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000" (pointer_expression "*words" * identifier) = (binary_expression "(ushort)(1 << (0xfU - cVar2 & 0x1f)) | 0x8000" (call_expression "(ushort)(1 << (0xfU - cVar2 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(1 << (0xfU - cVar2 & 0x1f))" ( (binary_expression "1 << (0xfU - cVar2 & 0x1f)" number_literal << (parenthesized_expression "(0xfU - cVar2 & 0x1f)" ( (binary_expression "0xfU - cVar2 & 0x1f" (binary_expression "0xfU - cVar2" number_literal - identifier) & number_literal) ))) ))) | number_literal)) ;) }))) }))) (expression_statement "puVar10 = words + 2;" (assignment_expression "puVar10 = words + 2" identifier = (binary_expression "words + 2" identifier + number_literal)) ;) (expression_statement "words[1] = 0x8000;" (assignment_expression "words[1] = 0x8000" (subscript_expression "words[1]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "joined_r0x00058c0c:\n  for (; puVar10 < puVar12; puVar10 = puVar10 + 1) {\n    *puVar10 = 0;\n  }" statement_identifier : (for_statement "for (; puVar10 < puVar12; puVar10 = puVar10 + 1) {\n    *puVar10 = 0;\n  }" for ( ; (binary_expression "puVar10 < puVar12" identifier < identifier) ; (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ) (compound_statement "{\n    *puVar10 = 0;\n  }" { (expression_statement "*puVar10 = 0;" (assignment_expression "*puVar10 = 0" (pointer_expression "*puVar10" * identifier) = number_literal) ;) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00058600(ushort *param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  bool bVar2;\n  ushort uVar3;\n  int iVar4;\n  ushort *puVar5;\n  uint uVar6;\n  ushort uVar7;\n  ushort *puVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  ushort *local_2c;\n  int local_28;\n  \n  if (DAT_00080268 < PTR_DAT_00080260) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }\n  if (DAT_00080270 == '\0') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'P') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'N') {\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  DAT_00089674 = DAT_00080268;\n  iVar10 = 0;\n  DAT_0008967c = 0x10;\n  DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;\n  while (iVar4 = FUN_00058510(), iVar4 == 0) {\n    iVar10 = iVar10 + 1;\n  }\n  cVar1 = (char)param_3;\n  uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));\n  uVar7 = 0x8000;\n  if (DAT_00080270 == '+') {\n    uVar7 = 0;\n  }\n  puVar11 = param_1 + param_2;\n  if (0 < (int)uVar6) {\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }\n  if (DAT_00089678 == 0) {\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }\n  else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }\n  DAT_0008967c = iVar10;\n  iVar10 = param_2 * 0x10;\n  local_28 = iVar10 - ((param_3 + 1) - uVar6);\n  puVar9 = param_1 + 1;\n  local_2c = puVar9;\n  if ((param_2 == 5) && (param_3 == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }\n  puVar5 = local_2c;\n  if (local_2c < puVar11) {\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }\n  iVar4 = FUN_00058510();\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }\n  if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }\n  iVar4 = 0x10;\n  uVar7 = local_2c[-1];\nLAB_00058a14:\n  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;\n  if ((iVar10 - param_3) + -1 == local_28) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }\n  puVar9 = param_1 + 2;\n  param_1[1] = 0x8000;\njoined_r0x00058c0c:\n  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00058600(ushort *param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  bool bVar2;\n  ushort uVar3;\n  int iVar4;\n  ushort *puVar5;\n  uint uVar6;\n  ushort uVar7;\n  ushort *puVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  ushort *local_2c;\n  int local_28;\n  \n  if (DAT_00080268 < PTR_DAT_00080260) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }\n  if (DAT_00080270 == '\0') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'P') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'N') {\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  DAT_00089674 = DAT_00080268;\n  iVar10 = 0;\n  DAT_0008967c = 0x10;\n  DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;\n  while (iVar4 = FUN_00058510(), iVar4 == 0) {\n    iVar10 = iVar10 + 1;\n  }\n  cVar1 = (char)param_3;\n  uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));\n  uVar7 = 0x8000;\n  if (DAT_00080270 == '+') {\n    uVar7 = 0;\n  }\n  puVar11 = param_1 + param_2;\n  if (0 < (int)uVar6) {\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }\n  if (DAT_00089678 == 0) {\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }\n  else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }\n  DAT_0008967c = iVar10;\n  iVar10 = param_2 * 0x10;\n  local_28 = iVar10 - ((param_3 + 1) - uVar6);\n  puVar9 = param_1 + 1;\n  local_2c = puVar9;\n  if ((param_2 == 5) && (param_3 == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }\n  puVar5 = local_2c;\n  if (local_2c < puVar11) {\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }\n  iVar4 = FUN_00058510();\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }\n  if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }\n  iVar4 = 0x10;\n  uVar7 = local_2c[-1];\nLAB_00058a14:\n  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;\n  if ((iVar10 - param_3) + -1 == local_28) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }\n  puVar9 = param_1 + 2;\n  param_1[1] = 0x8000;\njoined_r0x00058c0c:\n  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00058600(ushort *param_1,int param_2,int param_3)" identifier (parameter_list "(ushort *param_1,int param_2,int param_3)" ( (parameter_declaration "ushort *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  ushort uVar3;\n  int iVar4;\n  ushort *puVar5;\n  uint uVar6;\n  ushort uVar7;\n  ushort *puVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  ushort *local_2c;\n  int local_28;\n  \n  if (DAT_00080268 < PTR_DAT_00080260) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }\n  if (DAT_00080270 == '\0') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'P') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'N') {\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  DAT_00089674 = DAT_00080268;\n  iVar10 = 0;\n  DAT_0008967c = 0x10;\n  DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;\n  while (iVar4 = FUN_00058510(), iVar4 == 0) {\n    iVar10 = iVar10 + 1;\n  }\n  cVar1 = (char)param_3;\n  uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));\n  uVar7 = 0x8000;\n  if (DAT_00080270 == '+') {\n    uVar7 = 0;\n  }\n  puVar11 = param_1 + param_2;\n  if (0 < (int)uVar6) {\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }\n  if (DAT_00089678 == 0) {\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }\n  else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }\n  DAT_0008967c = iVar10;\n  iVar10 = param_2 * 0x10;\n  local_28 = iVar10 - ((param_3 + 1) - uVar6);\n  puVar9 = param_1 + 1;\n  local_2c = puVar9;\n  if ((param_2 == 5) && (param_3 == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }\n  puVar5 = local_2c;\n  if (local_2c < puVar11) {\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }\n  iVar4 = FUN_00058510();\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }\n  if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }\n  iVar4 = 0x10;\n  uVar7 = local_2c[-1];\nLAB_00058a14:\n  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;\n  if ((iVar10 - param_3) + -1 == local_28) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }\n  puVar9 = param_1 + 2;\n  param_1[1] = 0x8000;\njoined_r0x00058c0c:\n  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ushort *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "ushort uVar7;" type_identifier identifier ;) (declaration "ushort *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "ushort *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "ushort *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "ushort *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (if_statement "if (DAT_00080268 < PTR_DAT_00080260) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }" if (parenthesized_expression "(DAT_00080268 < PTR_DAT_00080260)" ( (binary_expression "DAT_00080268 < PTR_DAT_00080260" identifier < identifier) )) (compound_statement "{\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (if_statement "if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }" if (parenthesized_expression "(DAT_00080270 != '+')" ( (binary_expression "DAT_00080270 != '+'" identifier != (char_literal "'+'" ' character ')) )) (compound_statement "{\n      uVar7 = 0x8000;\n    }" { (expression_statement "uVar7 = 0x8000;" (assignment_expression "uVar7 = 0x8000" identifier = number_literal) ;) })) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "memset(param_1 + 1,0,param_2 * 2 - 2);" (call_expression "memset(param_1 + 1,0,param_2 * 2 - 2)" identifier (argument_list "(param_1 + 1,0,param_2 * 2 - 2)" ( (binary_expression "param_1 + 1" identifier + number_literal) , number_literal , (binary_expression "param_2 * 2 - 2" (binary_expression "param_2 * 2" identifier * number_literal) - number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (DAT_00080270 == '\0') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" if (parenthesized_expression "(DAT_00080270 == '\0')" ( (binary_expression "DAT_00080270 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" { (if_statement "if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0x7fff;" (assignment_expression "param_1[0] = 0x7fff" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0xffff;" (assignment_expression "param_1[1] = 0xffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }" if (parenthesized_expression "(param_2 != 5)" ( (binary_expression "param_2 != 5" identifier != number_literal) )) (compound_statement "{\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0x7fff;" (assignment_expression "param_1[0] = 0x7fff" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0xffff;" (assignment_expression "param_1[1] = 0xffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0xffff;" (assignment_expression "param_1[2] = 0xffff" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0xffff;" (assignment_expression "param_1[3] = 0xffff" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[0] = 0xffff;" (assignment_expression "param_1[0] = 0xffff" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0xc000;" (assignment_expression "param_1[1] = 0xc000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (DAT_00080270 == 'P') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" if (parenthesized_expression "(DAT_00080270 == 'P')" ( (binary_expression "DAT_00080270 == 'P'" identifier == (char_literal "'P'" ' character ')) )) (compound_statement "{\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" { (if_statement "if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0x7f80;" (assignment_expression "param_1[0] = 0x7f80" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" if (parenthesized_expression "(param_2 != 5)" ( (binary_expression "param_2 != 5" identifier != number_literal) )) (compound_statement "{\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0x7ff0;" (assignment_expression "param_1[0] = 0x7ff0" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[0] = 0x7fff;" (assignment_expression "param_1[0] = 0x7fff" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0x8000;" (assignment_expression "param_1[1] = 0x8000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (DAT_00080270 == 'N') {\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" if (parenthesized_expression "(DAT_00080270 == 'N')" ( (binary_expression "DAT_00080270 == 'N'" identifier == (char_literal "'N'" ' character ')) )) (compound_statement "{\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" { (if_statement "if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0xff80;" (assignment_expression "param_1[0] = 0xff80" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" if (parenthesized_expression "(param_2 != 5)" ( (binary_expression "param_2 != 5" identifier != number_literal) )) (compound_statement "{\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" { (expression_statement "param_1[0] = 0xfff0;" (assignment_expression "param_1[0] = 0xfff0" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[0] = 0xffff;" (assignment_expression "param_1[0] = 0xffff" (subscript_expression "param_1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = 0x8000;" (assignment_expression "param_1[1] = 0x8000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "DAT_00089674 = DAT_00080268;" (assignment_expression "DAT_00089674 = DAT_00080268" identifier = identifier) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "DAT_0008967c = 0x10;" (assignment_expression "DAT_0008967c = 0x10" identifier = number_literal) ;) (expression_statement "DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;" (assignment_expression "DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1" identifier = (binary_expression "(int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1" (cast_expression "(int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(DAT_00080268 + (2 - (int)PTR_DAT_00080260))" ( (binary_expression "DAT_00080268 + (2 - (int)PTR_DAT_00080260)" identifier + (parenthesized_expression "(2 - (int)PTR_DAT_00080260)" ( (binary_expression "2 - (int)PTR_DAT_00080260" number_literal - (cast_expression "(int)PTR_DAT_00080260" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (while_statement "while (iVar4 = FUN_00058510(), iVar4 == 0) {\n    iVar10 = iVar10 + 1;\n  }" while (parenthesized_expression "(iVar4 = FUN_00058510(), iVar4 == 0)" ( (comma_expression "iVar4 = FUN_00058510(), iVar4 == 0" (assignment_expression "iVar4 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) )) (compound_statement "{\n    iVar10 = iVar10 + 1;\n  }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) })) (expression_statement "cVar1 = (char)param_3;" (assignment_expression "cVar1 = (char)param_3" identifier = (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));" (assignment_expression "uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f))" identifier = (binary_expression "(((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f))" (binary_expression "(((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2" (parenthesized_expression "(((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10)" ( (binary_expression "((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10" (binary_expression "((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10" (parenthesized_expression "((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1)" ( (binary_expression "(int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1" (cast_expression "(int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260))" ( (binary_expression "DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)" identifier + (parenthesized_expression "((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)" ( (binary_expression "(DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260" (parenthesized_expression "(DAT_0008026c * 2 + 2)" ( (binary_expression "DAT_0008026c * 2 + 2" (binary_expression "DAT_0008026c * 2" identifier * number_literal) + number_literal) )) - (cast_expression "(int)PTR_DAT_00080260" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal) )) * number_literal) - identifier) )) + number_literal) + (parenthesized_expression "(1 << (cVar1 - 1U & 0x1f))" ( (binary_expression "1 << (cVar1 - 1U & 0x1f)" number_literal << (parenthesized_expression "(cVar1 - 1U & 0x1f)" ( (binary_expression "cVar1 - 1U & 0x1f" (binary_expression "cVar1 - 1U" identifier - number_literal) & number_literal) ))) )))) ;) (expression_statement "uVar7 = 0x8000;" (assignment_expression "uVar7 = 0x8000" identifier = number_literal) ;) (if_statement "if (DAT_00080270 == '+') {\n    uVar7 = 0;\n  }" if (parenthesized_expression "(DAT_00080270 == '+')" ( (binary_expression "DAT_00080270 == '+'" identifier == (char_literal "'+'" ' character ')) )) (compound_statement "{\n    uVar7 = 0;\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) })) (expression_statement "puVar11 = param_1 + param_2;" (assignment_expression "puVar11 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (if_statement "if (0 < (int)uVar6) {\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }" if (parenthesized_expression "(0 < (int)uVar6)" ( (binary_expression "0 < (int)uVar6" number_literal < (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }" { (if_statement "if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }" if (parenthesized_expression "(uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4))" ( (binary_expression "uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)" identifier < (pointer_expression "*(uint *)(&DAT_00066380 + param_3 * 4)" * (cast_expression "(uint *)(&DAT_00066380 + param_3 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + param_3 * 4)" ( (binary_expression "&DAT_00066380 + param_3 * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) )) (compound_statement "{\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }" { (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;" (assignment_expression "uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7" identifier = (binary_expression "(ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7" (binary_expression "(ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3" (call_expression "(ushort)(uVar6 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar6 << (0xfU - cVar1 & 0x1f))" ( (binary_expression "uVar6 << (0xfU - cVar1 & 0x1f)" identifier << (parenthesized_expression "(0xfU - cVar1 & 0x1f)" ( (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" number_literal - identifier) & number_literal) ))) ))) | identifier) | identifier)) ;) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "bVar2 = param_3 == 0xf && param_2 == 5;" (assignment_expression "bVar2 = param_3 == 0xf && param_2 == 5" identifier = (binary_expression "param_3 == 0xf && param_2 == 5" (binary_expression "param_3 == 0xf" identifier == number_literal) && (binary_expression "param_2 == 5" identifier == number_literal))) ;) (if_statement "if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }" { (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar9 = param_1 + 2;" (assignment_expression "puVar9 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "param_1[1] = uVar3 | 0x8000;" (assignment_expression "param_1[1] = uVar3 | 0x8000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar3 | 0x8000" identifier | number_literal)) ;) }) (else_clause "else {\n        puVar9 = param_1 + 1;\n      }" else (compound_statement "{\n        puVar9 = param_1 + 1;\n      }" { (expression_statement "puVar9 = param_1 + 1;" (assignment_expression "puVar9 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }))) (expression_statement "puVar5 = puVar9;" (assignment_expression "puVar5 = puVar9" identifier = identifier) ;) (if_statement "if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }" if (parenthesized_expression "(puVar9 < puVar11)" ( (binary_expression "puVar9 < puVar11" identifier < identifier) )) (compound_statement "{\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }" { (do_statement "do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);" do (compound_statement "{\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        }" { (expression_statement "puVar8 = puVar5 + 1;" (assignment_expression "puVar8 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "*puVar5 = uVar3;" (assignment_expression "*puVar5 = uVar3" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5 = puVar8;" (assignment_expression "puVar5 = puVar8" identifier = identifier) ;) }) while (parenthesized_expression "(puVar8 < puVar11)" ( (binary_expression "puVar8 < puVar11" identifier < identifier) )) ;) (expression_statement "puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2)" identifier = (cast_expression "(ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2)" ( (binary_expression "(int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2" (binary_expression "(int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU)" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU)" ( (binary_expression "(int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU" (binary_expression "(int)puVar11 + (-1 - (int)puVar9)" (cast_expression "(int)puVar11" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-1 - (int)puVar9)" ( (binary_expression "-1 - (int)puVar9" number_literal - (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ))) & number_literal) ))) + number_literal) )))) ;) })) (expression_statement "iVar10 = FUN_00058510();" (assignment_expression "iVar10 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar10 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar9 = puVar9 + -1;" (assignment_expression "puVar9 = puVar9 + -1" identifier = (binary_expression "puVar9 + -1" identifier + number_literal)) ;) (do_statement "do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);" do (compound_statement "{\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      }" { (expression_statement "uVar3 = *puVar9;" (assignment_expression "uVar3 = *puVar9" identifier = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "*puVar9 = uVar3 + 1;" (assignment_expression "*puVar9 = uVar3 + 1" (pointer_expression "*puVar9" * identifier) = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (param_1 == puVar9) goto LAB_0005878a;" if (parenthesized_expression "(param_1 == puVar9)" ( (binary_expression "param_1 == puVar9" identifier == identifier) )) (goto_statement "goto LAB_0005878a;" goto statement_identifier ;)) (expression_statement "puVar9 = puVar9 + -1;" (assignment_expression "puVar9 = puVar9 + -1" identifier = (binary_expression "puVar9 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 + 1 >> 0x10 != 0)" ( (binary_expression "uVar3 + 1 >> 0x10 != 0" (binary_expression "uVar3 + 1 >> 0x10" (binary_expression "uVar3 + 1" identifier + number_literal) >> number_literal) != number_literal) )) ;) (if_statement "if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }" if (parenthesized_expression "(param_1 == puVar9)" ( (binary_expression "param_1 == puVar9" identifier == identifier) )) (compound_statement "{\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }" { (labeled_statement "LAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }" statement_identifier : (if_statement "if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n          puVar9[1] = puVar9[1] | 0x8000;\n        }" { (expression_statement "puVar9[1] = puVar9[1] | 0x8000;" (assignment_expression "puVar9[1] = puVar9[1] | 0x8000" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = (binary_expression "puVar9[1] | 0x8000" (subscript_expression "puVar9[1]" identifier [ number_literal ]) | number_literal)) ;) }))) })) (if_statement "if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }" if (parenthesized_expression "(-1 < (short)(uVar7 ^ *param_1))" ( (binary_expression "-1 < (short)(uVar7 ^ *param_1)" number_literal < (cast_expression "(short)(uVar7 ^ *param_1)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "(uVar7 ^ *param_1)" ( (binary_expression "uVar7 ^ *param_1" identifier ^ (pointer_expression "*param_1" * identifier)) )))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_1 = *param_1 & 0x7fff;" (assignment_expression "*param_1 = *param_1 & 0x7fff" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 & 0x7fff" (pointer_expression "*param_1" * identifier) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_00058810;" goto statement_identifier ;) })) (if_statement "if (DAT_00089678 == 0) {\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }\n  else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }" if (parenthesized_expression "(DAT_00089678 == 0)" ( (binary_expression "DAT_00089678 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }" { (expression_statement "DAT_00089674 = DAT_00089674 + 2;" (assignment_expression "DAT_00089674 = DAT_00089674 + 2" identifier = (binary_expression "DAT_00089674 + 2" identifier + number_literal)) ;) (expression_statement "DAT_00089678 = 1;" (assignment_expression "DAT_00089678 = 1" identifier = number_literal) ;) (expression_statement "DAT_0008967c = 1;" (assignment_expression "DAT_0008967c = 1" identifier = number_literal) ;) (expression_statement "iVar10 = DAT_0008967c;" (assignment_expression "iVar10 = DAT_0008967c" identifier = identifier) ;) }) (else_clause "else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }" else (compound_statement "{\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }" { (expression_statement "iVar10 = DAT_0008967c + 1;" (assignment_expression "iVar10 = DAT_0008967c + 1" identifier = (binary_expression "DAT_0008967c + 1" identifier + number_literal)) ;) (if_statement "if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }" if (parenthesized_expression "(0x10 < DAT_0008967c + 1)" ( (binary_expression "0x10 < DAT_0008967c + 1" number_literal < (binary_expression "DAT_0008967c + 1" identifier + number_literal)) )) (compound_statement "{\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }" { (expression_statement "DAT_00089678 = DAT_00089678 + 1;" (assignment_expression "DAT_00089678 = DAT_00089678 + 1" identifier = (binary_expression "DAT_00089678 + 1" identifier + number_literal)) ;) (expression_statement "DAT_00089674 = DAT_00089674 + 2;" (assignment_expression "DAT_00089674 = DAT_00089674 + 2" identifier = (binary_expression "DAT_00089674 + 2" identifier + number_literal)) ;) (expression_statement "iVar10 = DAT_0008967c + -0xf;" (assignment_expression "iVar10 = DAT_0008967c + -0xf" identifier = (binary_expression "DAT_0008967c + -0xf" identifier + number_literal)) ;) })) }))) (expression_statement "DAT_0008967c = iVar10;" (assignment_expression "DAT_0008967c = iVar10" identifier = identifier) ;) (expression_statement "iVar10 = param_2 * 0x10;" (assignment_expression "iVar10 = param_2 * 0x10" identifier = (binary_expression "param_2 * 0x10" identifier * number_literal)) ;) (expression_statement "local_28 = iVar10 - ((param_3 + 1) - uVar6);" (assignment_expression "local_28 = iVar10 - ((param_3 + 1) - uVar6)" identifier = (binary_expression "iVar10 - ((param_3 + 1) - uVar6)" identifier - (parenthesized_expression "((param_3 + 1) - uVar6)" ( (binary_expression "(param_3 + 1) - uVar6" (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) )) - identifier) )))) ;) (expression_statement "puVar9 = param_1 + 1;" (assignment_expression "puVar9 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "local_2c = puVar9;" (assignment_expression "local_2c = puVar9" identifier = identifier) ;) (if_statement "if ((param_2 == 5) && (param_3 == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }" if (parenthesized_expression "((param_2 == 5) && (param_3 == 0xf))" ( (binary_expression "(param_2 == 5) && (param_3 == 0xf)" (parenthesized_expression "(param_2 == 5)" ( (binary_expression "param_2 == 5" identifier == number_literal) )) && (parenthesized_expression "(param_3 == 0xf)" ( (binary_expression "param_3 == 0xf" identifier == number_literal) ))) )) (compound_statement "{\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }" { (expression_statement "local_28 = local_28 + -1;" (assignment_expression "local_28 = local_28 + -1" identifier = (binary_expression "local_28 + -1" identifier + number_literal)) ;) (expression_statement "iVar4 = 1 - uVar6;" (assignment_expression "iVar4 = 1 - uVar6" identifier = (binary_expression "1 - uVar6" number_literal - identifier)) ;) (labeled_statement "LAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;" statement_identifier : (expression_statement "iVar4 = iVar4 + -0xf + param_3;" (assignment_expression "iVar4 = iVar4 + -0xf + param_3" identifier = (binary_expression "iVar4 + -0xf + param_3" (binary_expression "iVar4 + -0xf" identifier + number_literal) + identifier)) ;)) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }" if (parenthesized_expression "(iVar10 <= param_3 + iVar4)" ( (binary_expression "iVar10 <= param_3 + iVar4" identifier <= (binary_expression "param_3 + iVar4" identifier + identifier)) )) (compound_statement "{\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }" { (labeled_statement "LAB_00058810:\n      FUN_000585b0();" statement_identifier : (expression_statement "FUN_000585b0();" (call_expression "FUN_000585b0()" identifier (argument_list "()" ( ))) ;)) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }" if (parenthesized_expression "(0xf < iVar4)" ( (binary_expression "0xf < iVar4" number_literal < identifier) )) (compound_statement "{\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }" { (expression_statement "uVar6 = iVar4 - 0x10U >> 4;" (assignment_expression "uVar6 = iVar4 - 0x10U >> 4" identifier = (binary_expression "iVar4 - 0x10U >> 4" (binary_expression "iVar4 - 0x10U" identifier - number_literal) >> number_literal)) ;) (expression_statement "puVar5 = puVar9;" (assignment_expression "puVar5 = puVar9" identifier = identifier) ;) (do_statement "do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);" do (compound_statement "{\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      }" { (expression_statement "puVar8 = puVar5 + 1;" (assignment_expression "puVar8 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar8;" (assignment_expression "puVar5 = puVar8" identifier = identifier) ;) }) while (parenthesized_expression "(param_1 + uVar6 + 2 != puVar8)" ( (binary_expression "param_1 + uVar6 + 2 != puVar8" (binary_expression "param_1 + uVar6 + 2" (binary_expression "param_1 + uVar6" identifier + identifier) + number_literal) != identifier) )) ;) (expression_statement "iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;" (assignment_expression "iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10" identifier = (binary_expression "(iVar4 - 0x10U) + uVar6 * -0x10" (parenthesized_expression "(iVar4 - 0x10U)" ( (binary_expression "iVar4 - 0x10U" identifier - number_literal) )) + (binary_expression "uVar6 * -0x10" identifier * number_literal))) ;) (expression_statement "local_2c = param_1 + uVar6 + 2;" (assignment_expression "local_2c = param_1 + uVar6 + 2" identifier = (binary_expression "param_1 + uVar6 + 2" (binary_expression "param_1 + uVar6" identifier + identifier) + number_literal)) ;) })) (if_statement "if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }" { (expression_statement "uVar7 = FUN_00058510();" (assignment_expression "uVar7 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "*local_2c = uVar7;" (assignment_expression "*local_2c = uVar7" (pointer_expression "*local_2c" * identifier) = identifier) ;) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }" else (compound_statement "{\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }" { (expression_statement "iVar4 = -uVar6;" (assignment_expression "iVar4 = -uVar6" identifier = (unary_expression "-uVar6" - identifier)) ;) (if_statement "if (0x10 - param_3 <= iVar4) goto LAB_00058914;" if (parenthesized_expression "(0x10 - param_3 <= iVar4)" ( (binary_expression "0x10 - param_3 <= iVar4" (binary_expression "0x10 - param_3" number_literal - identifier) <= identifier) )) (goto_statement "goto LAB_00058914;" goto statement_identifier ;)) (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_1 = uVar3 | uVar7;" (assignment_expression "*param_1 = uVar3 | uVar7" (pointer_expression "*param_1" * identifier) = (binary_expression "uVar3 | uVar7" identifier | identifier)) ;) }))) (expression_statement "puVar5 = local_2c;" (assignment_expression "puVar5 = local_2c" identifier = identifier) ;) (if_statement "if (local_2c < puVar11) {\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }" if (parenthesized_expression "(local_2c < puVar11)" ( (binary_expression "local_2c < puVar11" identifier < identifier) )) (compound_statement "{\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }" { (do_statement "do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);" do (compound_statement "{\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    }" { (expression_statement "puVar8 = puVar5 + 1;" (assignment_expression "puVar8 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = FUN_00058510();" (assignment_expression "uVar7 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (expression_statement "*puVar5 = uVar7;" (assignment_expression "*puVar5 = uVar7" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5 = puVar8;" (assignment_expression "puVar5 = puVar8" identifier = identifier) ;) }) while (parenthesized_expression "(puVar8 < puVar11)" ( (binary_expression "puVar8 < puVar11" identifier < identifier) )) ;) (expression_statement "local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);" (assignment_expression "local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" identifier = (cast_expression "(ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" ( (binary_expression "(int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2" (binary_expression "(int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU)" (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU)" ( (binary_expression "(int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU" (binary_expression "(int)puVar11 + (-1 - (int)local_2c)" (cast_expression "(int)puVar11" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-1 - (int)local_2c)" ( (binary_expression "-1 - (int)local_2c" number_literal - (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier)) ))) & number_literal) ))) + number_literal) )))) ;) })) (expression_statement "iVar4 = FUN_00058510();" (assignment_expression "iVar4 = FUN_00058510()" identifier = (call_expression "FUN_00058510()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }" if (parenthesized_expression "(local_28 < 0x10)" ( (binary_expression "local_28 < 0x10" identifier < number_literal) )) (compound_statement "{\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }" { (expression_statement "local_2c[-1] = local_2c[-1] + 1;" (assignment_expression "local_2c[-1] = local_2c[-1] + 1" (subscript_expression "local_2c[-1]" identifier [ number_literal ]) = (binary_expression "local_2c[-1] + 1" (subscript_expression "local_2c[-1]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }" if (parenthesized_expression "(local_28 != 0x10)" ( (binary_expression "local_28 != 0x10" identifier != number_literal) )) (compound_statement "{\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }" { (if_statement "if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }" if (parenthesized_expression "(local_2c[-1] == 0xffff)" ( (binary_expression "local_2c[-1] == 0xffff" (subscript_expression "local_2c[-1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }" { (expression_statement "puVar5 = local_2c + -2;" (assignment_expression "puVar5 = local_2c + -2" identifier = (binary_expression "local_2c + -2" identifier + number_literal)) ;) (expression_statement "iVar4 = local_28;" (assignment_expression "iVar4 = local_28" identifier = identifier) ;) (do_statement "do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);" do (compound_statement "{\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      }" { (expression_statement "iVar4 = iVar4 + -0x10;" (assignment_expression "iVar4 = iVar4 + -0x10" identifier = (binary_expression "iVar4 + -0x10" identifier + number_literal)) ;) (expression_statement "uVar7 = *puVar5;" (assignment_expression "uVar7 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (if_statement "if (iVar4 < 0x11) goto LAB_00058a14;" if (parenthesized_expression "(iVar4 < 0x11)" ( (binary_expression "iVar4 < 0x11" identifier < number_literal) )) (goto_statement "goto LAB_00058a14;" goto statement_identifier ;)) (expression_statement "puVar5 = puVar5 + -1;" (assignment_expression "puVar5 = puVar5 + -1" identifier = (binary_expression "puVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 == 0xffff)" ( (binary_expression "uVar7 == 0xffff" identifier == number_literal) )) ;) })) (labeled_statement "joined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);" statement_identifier : (do_statement "do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);" do (compound_statement "{\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    }" { (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (if_statement "if (local_2c < param_1) {\n        return 0;\n      }" if (parenthesized_expression "(local_2c < param_1)" ( (binary_expression "local_2c < param_1" identifier < identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar7 = *local_2c;" (assignment_expression "uVar7 = *local_2c" identifier = (pointer_expression "*local_2c" * identifier)) ;) (expression_statement "*local_2c = uVar7 + 1;" (assignment_expression "*local_2c = uVar7 + 1" (pointer_expression "*local_2c" * identifier) = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 + 1 >> 0x10 != 0)" ( (binary_expression "uVar7 + 1 >> 0x10 != 0" (binary_expression "uVar7 + 1 >> 0x10" (binary_expression "uVar7 + 1" identifier + number_literal) >> number_literal) != number_literal) )) ;)) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" identifier = number_literal) ;) (expression_statement "uVar7 = local_2c[-1];" (assignment_expression "uVar7 = local_2c[-1]" identifier = (subscript_expression "local_2c[-1]" identifier [ number_literal ])) ;) (labeled_statement "LAB_00058a14:\n  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;" statement_identifier : (if_statement "if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;" if (parenthesized_expression "(*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))" ( (binary_expression "*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4))" (pointer_expression "*(uint *)(&DAT_00066380 + iVar4 * 4)" * (cast_expression "(uint *)(&DAT_00066380 + iVar4 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + iVar4 * 4)" ( (binary_expression "&DAT_00066380 + iVar4 * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) != (parenthesized_expression "((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4))" ( (binary_expression "(uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)" (cast_expression "(uint)uVar7" ( (type_descriptor "uint" type_identifier) ) identifier) & (pointer_expression "*(uint *)(&DAT_00066380 + iVar4 * 4)" * (cast_expression "(uint *)(&DAT_00066380 + iVar4 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + iVar4 * 4)" ( (binary_expression "&DAT_00066380 + iVar4 * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) ))))) ))) )) (goto_statement "goto joined_r0x00058a2d;" goto statement_identifier ;))) (if_statement "if ((iVar10 - param_3) + -1 == local_28) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }" if (parenthesized_expression "((iVar10 - param_3) + -1 == local_28)" ( (binary_expression "(iVar10 - param_3) + -1 == local_28" (binary_expression "(iVar10 - param_3) + -1" (parenthesized_expression "(iVar10 - param_3)" ( (binary_expression "iVar10 - param_3" identifier - identifier) )) + number_literal) == identifier) )) (compound_statement "{\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (if_statement "if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }" if (parenthesized_expression "(DAT_00080270 != '+')" ( (binary_expression "DAT_00080270 != '+'" identifier != (char_literal "'+'" ' character ')) )) (compound_statement "{\n      uVar7 = 0x8000;\n    }" { (expression_statement "uVar7 = 0x8000;" (assignment_expression "uVar7 = 0x8000" identifier = number_literal) ;) })) (expression_statement "*param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));" (assignment_expression "*param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f))" (pointer_expression "*param_1" * identifier) = (binary_expression "uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f))" identifier | (call_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(1 << (0xfU - cVar1 & 0x1f))" ( (binary_expression "1 << (0xfU - cVar1 & 0x1f)" number_literal << (parenthesized_expression "(0xfU - cVar1 & 0x1f)" ( (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" number_literal - identifier) & number_literal) ))) ))))) ;) (if_statement "if (param_2 != 5) goto joined_r0x00058c0c;" if (parenthesized_expression "(param_2 != 5)" ( (binary_expression "param_2 != 5" identifier != number_literal) )) (goto_statement "goto joined_r0x00058c0c;" goto statement_identifier ;)) }) (else_clause "else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }" else (compound_statement "{\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }" { (if_statement "if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;" if (parenthesized_expression "((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28))" ( (binary_expression "(param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)" (parenthesized_expression "(param_2 != 5)" ( (binary_expression "param_2 != 5" identifier != number_literal) )) || (parenthesized_expression "((iVar10 - param_3) + -2 != local_28)" ( (binary_expression "(iVar10 - param_3) + -2 != local_28" (binary_expression "(iVar10 - param_3) + -2" (parenthesized_expression "(iVar10 - param_3)" ( (binary_expression "iVar10 - param_3" identifier - identifier) )) + number_literal) != identifier) ))) )) (goto_statement "goto joined_r0x00058a2d;" goto statement_identifier ;)) (if_statement "if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }" if (parenthesized_expression "(DAT_00080270 == '+')" ( (binary_expression "DAT_00080270 == '+'" identifier == (char_literal "'+'" ' character ')) )) (compound_statement "{\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }" { (expression_statement "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));" (assignment_expression "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f))" (pointer_expression "*param_1" * identifier) = (call_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(1 << (0xfU - cVar1 & 0x1f))" ( (binary_expression "1 << (0xfU - cVar1 & 0x1f)" number_literal << (parenthesized_expression "(0xfU - cVar1 & 0x1f)" ( (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" number_literal - identifier) & number_literal) ))) )))) ;) }) (else_clause "else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }" else (compound_statement "{\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }" { (expression_statement "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;" (assignment_expression "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000" (pointer_expression "*param_1" * identifier) = (binary_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000" (call_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(1 << (0xfU - cVar1 & 0x1f))" ( (binary_expression "1 << (0xfU - cVar1 & 0x1f)" number_literal << (parenthesized_expression "(0xfU - cVar1 & 0x1f)" ( (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" number_literal - identifier) & number_literal) ))) ))) | number_literal)) ;) }))) }))) (expression_statement "puVar9 = param_1 + 2;" (assignment_expression "puVar9 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "param_1[1] = 0x8000;" (assignment_expression "param_1[1] = 0x8000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "joined_r0x00058c0c:\n  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }" statement_identifier : (for_statement "for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }" for ( ; (binary_expression "puVar9 < puVar11" identifier < identifier) ; (assignment_expression "puVar9 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ) (compound_statement "{\n    *puVar9 = 0;\n  }" { (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression (binary_expression IDENT * LIT) - LIT) ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ))) >> LIT)) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + LIT) )) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ))) >> LIT) )) * LIT) - IDENT) )) + LIT) + (parenthesized_expression ( (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT << (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) & LIT) ))) ))) | IDENT) | IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT))) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT | LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) & LIT) ))) + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + LIT) >> LIT) != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) | LIT)) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (parenthesized_expression ( (binary_expression IDENT ^ (pointer_expression * IDENT)) )))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) & LIT)) ;) (return_statement return LIT ;) })) (goto_statement goto statement_identifier ;) })) (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 = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (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 = (binary_expression IDENT + LIT)) ;) })) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + IDENT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - LIT) >> LIT)) ;) (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) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + IDENT) + LIT) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT | IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) & LIT) ))) + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) })) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + LIT) >> LIT) != LIT) )) ;)) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) != (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) ))) )) (goto_statement goto statement_identifier ;))) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) & LIT) ))) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) != IDENT) ))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) & LIT) ))) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) & LIT) ))) ))) | LIT)) ;) }))) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (for_statement for ( ; (binary_expression IDENT < IDENT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00058600(ushort *param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  bool bVar2;\n  ushort uVar3;\n  int iVar4;\n  ushort *puVar5;\n  uint uVar6;\n  ushort uVar7;\n  ushort *puVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  ushort *local_2c;\n  int local_28;\n  \n  if (DAT_00080268 < PTR_DAT_00080260) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }\n  if (DAT_00080270 == '\0') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'P') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'N') {\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  DAT_00089674 = DAT_00080268;\n  iVar10 = 0;\n  DAT_0008967c = 0x10;\n  DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;\n  while (iVar4 = FUN_00058510(), iVar4 == 0) {\n    iVar10 = iVar10 + 1;\n  }\n  cVar1 = (char)param_3;\n  uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));\n  uVar7 = 0x8000;\n  if (DAT_00080270 == '+') {\n    uVar7 = 0;\n  }\n  puVar11 = param_1 + param_2;\n  if (0 < (int)uVar6) {\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }\n  if (DAT_00089678 == 0) {\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }\n  else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }\n  DAT_0008967c = iVar10;\n  iVar10 = param_2 * 0x10;\n  local_28 = iVar10 - ((param_3 + 1) - uVar6);\n  puVar9 = param_1 + 1;\n  local_2c = puVar9;\n  if ((param_2 == 5) && (param_3 == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }\n  puVar5 = local_2c;\n  if (local_2c < puVar11) {\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }\n  iVar4 = FUN_00058510();\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }\n  if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }\n  iVar4 = 0x10;\n  uVar7 = local_2c[-1];\nLAB_00058a14:\n  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;\n  if ((iVar10 - param_3) + -1 == local_28) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }\n  puVar9 = param_1 + 2;\n  param_1[1] = 0x8000;\njoined_r0x00058c0c:\n  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00058600(ushort *param_1,int param_2,int param_3)" (identifier "FUN_00058600") (parameter_list "(ushort *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "ushort *param_1" (type_identifier "ushort") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  ushort uVar3;\n  int iVar4;\n  ushort *puVar5;\n  uint uVar6;\n  ushort uVar7;\n  ushort *puVar8;\n  ushort *puVar9;\n  int iVar10;\n  ushort *puVar11;\n  ushort *local_2c;\n  int local_28;\n  \n  if (DAT_00080268 < PTR_DAT_00080260) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }\n  if (DAT_00080270 == '\0') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'P') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  if (DAT_00080270 == 'N') {\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }\n  DAT_00089674 = DAT_00080268;\n  iVar10 = 0;\n  DAT_0008967c = 0x10;\n  DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;\n  while (iVar4 = FUN_00058510(), iVar4 == 0) {\n    iVar10 = iVar10 + 1;\n  }\n  cVar1 = (char)param_3;\n  uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));\n  uVar7 = 0x8000;\n  if (DAT_00080270 == '+') {\n    uVar7 = 0;\n  }\n  puVar11 = param_1 + param_2;\n  if (0 < (int)uVar6) {\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }\n  if (DAT_00089678 == 0) {\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }\n  else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }\n  DAT_0008967c = iVar10;\n  iVar10 = param_2 * 0x10;\n  local_28 = iVar10 - ((param_3 + 1) - uVar6);\n  puVar9 = param_1 + 1;\n  local_2c = puVar9;\n  if ((param_2 == 5) && (param_3 == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }\n  puVar5 = local_2c;\n  if (local_2c < puVar11) {\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }\n  iVar4 = FUN_00058510();\n  if (iVar4 == 0) {\n    return 0;\n  }\n  if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }\n  if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }\n  iVar4 = 0x10;\n  uVar7 = local_2c[-1];\nLAB_00058a14:\n  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;\n  if ((iVar10 - param_3) + -1 == local_28) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }\n  puVar9 = param_1 + 2;\n  param_1[1] = 0x8000;\njoined_r0x00058c0c:\n  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }\n  return 0;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "ushort uVar3;" (type_identifier "ushort") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "ushort *puVar5;" (type_identifier "ushort") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "ushort uVar7;" (type_identifier "ushort") (identifier "uVar7") (; ";")) (declaration "ushort *puVar8;" (type_identifier "ushort") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "ushort *puVar9;" (type_identifier "ushort") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "ushort *puVar11;" (type_identifier "ushort") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "ushort *local_2c;" (type_identifier "ushort") (pointer_declarator "*local_2c" (* "*") (identifier "local_2c")) (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (if_statement "if (DAT_00080268 < PTR_DAT_00080260) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }" (if "if") (parenthesized_expression "(DAT_00080268 < PTR_DAT_00080260)" (( "(") (binary_expression "DAT_00080268 < PTR_DAT_00080260" (identifier "DAT_00080268") (< "<") (identifier "PTR_DAT_00080260")) () ")")) (compound_statement "{\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7;\n    memset(param_1 + 1,0,param_2 * 2 - 2);\n    return 0;\n  }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (if_statement "if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }" (if "if") (parenthesized_expression "(DAT_00080270 != '+')" (( "(") (binary_expression "DAT_00080270 != '+'" (identifier "DAT_00080270") (!= "!=") (char_literal "'+'" (' "'") (character "+") (' "'"))) () ")")) (compound_statement "{\n      uVar7 = 0x8000;\n    }" ({ "{") (expression_statement "uVar7 = 0x8000;" (assignment_expression "uVar7 = 0x8000" (identifier "uVar7") (= "=") (number_literal "0x8000")) (; ";")) (} "}"))) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "memset(param_1 + 1,0,param_2 * 2 - 2);" (call_expression "memset(param_1 + 1,0,param_2 * 2 - 2)" (identifier "memset") (argument_list "(param_1 + 1,0,param_2 * 2 - 2)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) (, ",") (number_literal "0") (, ",") (binary_expression "param_2 * 2 - 2" (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2")) (- "-") (number_literal "2")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (DAT_00080270 == '\0') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" (if "if") (parenthesized_expression "(DAT_00080270 == '\0')" (( "(") (binary_expression "DAT_00080270 == '\0'" (identifier "DAT_00080270") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0xc000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" ({ "{") (if_statement "if (param_2 == 2) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 == 2)" (( "(") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      return 0;\n    }" ({ "{") (expression_statement "param_1[0] = 0x7fff;" (assignment_expression "param_1[0] = 0x7fff" (subscript_expression "param_1[0]" (identifier "param_1") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0x7fff")) (; ";")) (expression_statement "param_1[1] = 0xffff;" (assignment_expression "param_1[1] = 0xffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xffff")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_2 != 5) {\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 != 5)" (( "(") (binary_expression "param_2 != 5" (identifier "param_2") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n      param_1[0] = 0x7fff;\n      param_1[1] = 0xffff;\n      param_1[2] = 0xffff;\n      param_1[3] = 0xffff;\n      return 0;\n    }" ({ "{") (expression_statement "param_1[0] = 0x7fff;" (assignment_expression "param_1[0] = 0x7fff" (subscript_expression "param_1[0]" (identifier "param_1") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0x7fff")) (; ";")) (expression_statement "param_1[1] = 0xffff;" (assignment_expression "param_1[1] = 0xffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xffff")) (; ";")) (expression_statement "param_1[2] = 0xffff;" (assignment_expression "param_1[2] = 0xffff" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0xffff")) (; ";")) (expression_statement "param_1[3] = 0xffff;" (assignment_expression "param_1[3] = 0xffff" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0xffff")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_1[0] = 0xffff;" (assignment_expression "param_1[0] = 0xffff" (subscript_expression "param_1[0]" (identifier "param_1") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0xffff")) (; ";")) (expression_statement "param_1[1] = 0xc000;" (assignment_expression "param_1[1] = 0xc000" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xc000")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (DAT_00080270 == 'P') {\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" (if "if") (parenthesized_expression "(DAT_00080270 == 'P')" (( "(") (binary_expression "DAT_00080270 == 'P'" (identifier "DAT_00080270") (== "==") (char_literal "'P'" (' "'") (character "P") (' "'"))) () ")")) (compound_statement "{\n    if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0x7fff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" ({ "{") (if_statement "if (param_2 == 2) {\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 == 2)" (( "(") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      param_1[0] = 0x7f80;\n      param_1[1] = 0;\n      return 0;\n    }" ({ "{") (expression_statement "param_1[0] = 0x7f80;" (assignment_expression "param_1[0] = 0x7f80" (subscript_expression "param_1[0]" (identifier "param_1") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0x7f80")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_2 != 5) {\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 != 5)" (( "(") (binary_expression "param_2 != 5" (identifier "param_2") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n      param_1[0] = 0x7ff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" ({ "{") (expression_statement "param_1[0] = 0x7ff0;" (assignment_expression "param_1[0] = 0x7ff0" (subscript_expression "param_1[0]" (identifier "param_1") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0x7ff0")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_1[0] = 0x7fff;" (assignment_expression "param_1[0] = 0x7fff" (subscript_expression "param_1[0]" (identifier "param_1") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0x7fff")) (; ";")) (expression_statement "param_1[1] = 0x8000;" (assignment_expression "param_1[1] = 0x8000" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x8000")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (DAT_00080270 == 'N') {\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" (if "if") (parenthesized_expression "(DAT_00080270 == 'N')" (( "(") (binary_expression "DAT_00080270 == 'N'" (identifier "DAT_00080270") (== "==") (char_literal "'N'" (' "'") (character "N") (' "'"))) () ")")) (compound_statement "{\n    if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }\n    if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }\n    param_1[0] = 0xffff;\n    param_1[1] = 0x8000;\n    param_1[2] = 0;\n    param_1[3] = 0;\n    param_1[4] = 0;\n    return 0;\n  }" ({ "{") (if_statement "if (param_2 == 2) {\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 == 2)" (( "(") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      param_1[0] = 0xff80;\n      param_1[1] = 0;\n      return 0;\n    }" ({ "{") (expression_statement "param_1[0] = 0xff80;" (assignment_expression "param_1[0] = 0xff80" (subscript_expression "param_1[0]" (identifier "param_1") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0xff80")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_2 != 5) {\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 != 5)" (( "(") (binary_expression "param_2 != 5" (identifier "param_2") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n      param_1[0] = 0xfff0;\n      param_1[1] = 0;\n      param_1[2] = 0;\n      param_1[3] = 0;\n      return 0;\n    }" ({ "{") (expression_statement "param_1[0] = 0xfff0;" (assignment_expression "param_1[0] = 0xfff0" (subscript_expression "param_1[0]" (identifier "param_1") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0xfff0")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_1[0] = 0xffff;" (assignment_expression "param_1[0] = 0xffff" (subscript_expression "param_1[0]" (identifier "param_1") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0xffff")) (; ";")) (expression_statement "param_1[1] = 0x8000;" (assignment_expression "param_1[1] = 0x8000" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x8000")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "DAT_00089674 = DAT_00080268;" (assignment_expression "DAT_00089674 = DAT_00080268" (identifier "DAT_00089674") (= "=") (identifier "DAT_00080268")) (; ";")) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_0008967c = 0x10;" (assignment_expression "DAT_0008967c = 0x10" (identifier "DAT_0008967c") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;" (assignment_expression "DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1" (identifier "DAT_00089678") (= "=") (binary_expression "(int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1" (cast_expression "(int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(DAT_00080268 + (2 - (int)PTR_DAT_00080260))" (( "(") (binary_expression "DAT_00080268 + (2 - (int)PTR_DAT_00080260)" (identifier "DAT_00080268") (+ "+") (parenthesized_expression "(2 - (int)PTR_DAT_00080260)" (( "(") (binary_expression "2 - (int)PTR_DAT_00080260" (number_literal "2") (- "-") (cast_expression "(int)PTR_DAT_00080260" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "PTR_DAT_00080260"))) () ")"))) () ")"))) (>> ">>") (number_literal "1"))) (; ";")) (while_statement "while (iVar4 = FUN_00058510(), iVar4 == 0) {\n    iVar10 = iVar10 + 1;\n  }" (while "while") (parenthesized_expression "(iVar4 = FUN_00058510(), iVar4 == 0)" (( "(") (comma_expression "iVar4 = FUN_00058510(), iVar4 == 0" (assignment_expression "iVar4 = FUN_00058510()" (identifier "iVar4") (= "=") (call_expression "FUN_00058510()" (identifier "FUN_00058510") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n    iVar10 = iVar10 + 1;\n  }" ({ "{") (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "cVar1 = (char)param_3;" (assignment_expression "cVar1 = (char)param_3" (identifier "cVar1") (= "=") (cast_expression "(char)param_3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_3"))) (; ";")) (expression_statement "uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));" (assignment_expression "uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f))" (identifier "uVar6") (= "=") (binary_expression "(((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f))" (binary_expression "(((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10) + -2" (parenthesized_expression "(((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10)" (( "(") (binary_expression "((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -\n          iVar10" (binary_expression "((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10" (parenthesized_expression "((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1)" (( "(") (binary_expression "(int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1" (cast_expression "(int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260))" (( "(") (binary_expression "DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)" (identifier "DAT_00080268") (+ "+") (parenthesized_expression "((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)" (( "(") (binary_expression "(DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260" (parenthesized_expression "(DAT_0008026c * 2 + 2)" (( "(") (binary_expression "DAT_0008026c * 2 + 2" (binary_expression "DAT_0008026c * 2" (identifier "DAT_0008026c") (* "*") (number_literal "2")) (+ "+") (number_literal "2")) () ")")) (- "-") (cast_expression "(int)PTR_DAT_00080260" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "PTR_DAT_00080260"))) () ")"))) () ")"))) (>> ">>") (number_literal "1")) () ")")) (* "*") (number_literal "0x10")) (- "-") (identifier "iVar10")) () ")")) (+ "+") (number_literal "-2")) (+ "+") (parenthesized_expression "(1 << (cVar1 - 1U & 0x1f))" (( "(") (binary_expression "1 << (cVar1 - 1U & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(cVar1 - 1U & 0x1f)" (( "(") (binary_expression "cVar1 - 1U & 0x1f" (binary_expression "cVar1 - 1U" (identifier "cVar1") (- "-") (number_literal "1U")) (& "&") (number_literal "0x1f")) () ")"))) () ")")))) (; ";")) (expression_statement "uVar7 = 0x8000;" (assignment_expression "uVar7 = 0x8000" (identifier "uVar7") (= "=") (number_literal "0x8000")) (; ";")) (if_statement "if (DAT_00080270 == '+') {\n    uVar7 = 0;\n  }" (if "if") (parenthesized_expression "(DAT_00080270 == '+')" (( "(") (binary_expression "DAT_00080270 == '+'" (identifier "DAT_00080270") (== "==") (char_literal "'+'" (' "'") (character "+") (' "'"))) () ")")) (compound_statement "{\n    uVar7 = 0;\n  }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "puVar11 = param_1 + param_2;" (assignment_expression "puVar11 = param_1 + param_2" (identifier "puVar11") (= "=") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2"))) (; ";")) (if_statement "if (0 < (int)uVar6) {\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }" (if "if") (parenthesized_expression "(0 < (int)uVar6)" (( "(") (binary_expression "0 < (int)uVar6" (number_literal "0") (< "<") (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6"))) () ")")) (compound_statement "{\n    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }\n    goto LAB_00058810;\n  }" ({ "{") (if_statement "if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4))" (( "(") (binary_expression "uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)" (identifier "uVar6") (< "<") (pointer_expression "*(uint *)(&DAT_00066380 + param_3 * 4)" (* "*") (cast_expression "(uint *)(&DAT_00066380 + param_3 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00066380 + param_3 * 4)" (( "(") (binary_expression "&DAT_00066380 + param_3 * 4" (pointer_expression "&DAT_00066380" (& "&") (identifier "DAT_00066380")) (+ "+") (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4"))) () ")"))))) () ")")) (compound_statement "{\n      uVar3 = FUN_00058510();\n      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;\n      *param_1 = uVar7;\n      bVar2 = param_3 == 0xf && param_2 == 5;\n      if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }\n      puVar5 = puVar9;\n      if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }\n      iVar10 = FUN_00058510();\n      if (iVar10 == 0) {\n        return 0;\n      }\n      puVar9 = puVar9 + -1;\n      do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);\n      if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }\n      if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }\n      *param_1 = *param_1 & 0x7fff;\n      return 0;\n    }" ({ "{") (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" (identifier "uVar3") (= "=") (call_expression "FUN_00058510()" (identifier "FUN_00058510") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;" (assignment_expression "uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7" (identifier "uVar7") (= "=") (binary_expression "(ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7" (binary_expression "(ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3" (call_expression "(ushort)(uVar6 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(uVar6 << (0xfU - cVar1 & 0x1f))" (( "(") (binary_expression "uVar6 << (0xfU - cVar1 & 0x1f)" (identifier "uVar6") (<< "<<") (parenthesized_expression "(0xfU - cVar1 & 0x1f)" (( "(") (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" (number_literal "0xfU") (- "-") (identifier "cVar1")) (& "&") (number_literal "0x1f")) () ")"))) () ")"))) (| "|") (identifier "uVar3")) (| "|") (identifier "uVar7"))) (; ";")) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "bVar2 = param_3 == 0xf && param_2 == 5;" (assignment_expression "bVar2 = param_3 == 0xf && param_2 == 5" (identifier "bVar2") (= "=") (binary_expression "param_3 == 0xf && param_2 == 5" (binary_expression "param_3 == 0xf" (identifier "param_3") (== "==") (number_literal "0xf")) (&& "&&") (binary_expression "param_2 == 5" (identifier "param_2") (== "==") (number_literal "5")))) (; ";")) (if_statement "if (bVar2) {\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }\n      else {\n        puVar9 = param_1 + 1;\n      }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\n        uVar3 = FUN_00058510();\n        puVar9 = param_1 + 2;\n        param_1[1] = uVar3 | 0x8000;\n      }" ({ "{") (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" (identifier "uVar3") (= "=") (call_expression "FUN_00058510()" (identifier "FUN_00058510") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar9 = param_1 + 2;" (assignment_expression "puVar9 = param_1 + 2" (identifier "puVar9") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "param_1[1] = uVar3 | 0x8000;" (assignment_expression "param_1[1] = uVar3 | 0x8000" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar3 | 0x8000" (identifier "uVar3") (| "|") (number_literal "0x8000"))) (; ";")) (} "}")) (else_clause "else {\n        puVar9 = param_1 + 1;\n      }" (else "else") (compound_statement "{\n        puVar9 = param_1 + 1;\n      }" ({ "{") (expression_statement "puVar9 = param_1 + 1;" (assignment_expression "puVar9 = param_1 + 1" (identifier "puVar9") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "puVar5 = puVar9;" (assignment_expression "puVar5 = puVar9" (identifier "puVar5") (= "=") (identifier "puVar9")) (; ";")) (if_statement "if (puVar9 < puVar11) {\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }" (if "if") (parenthesized_expression "(puVar9 < puVar11)" (( "(") (binary_expression "puVar9 < puVar11" (identifier "puVar9") (< "<") (identifier "puVar11")) () ")")) (compound_statement "{\n        do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);\n        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);\n      }" ({ "{") (do_statement "do {\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        } while (puVar8 < puVar11);" (do "do") (compound_statement "{\n          puVar8 = puVar5 + 1;\n          uVar3 = FUN_00058510();\n          *puVar5 = uVar3;\n          puVar5 = puVar8;\n        }" ({ "{") (expression_statement "puVar8 = puVar5 + 1;" (assignment_expression "puVar8 = puVar5 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" (identifier "uVar3") (= "=") (call_expression "FUN_00058510()" (identifier "FUN_00058510") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*puVar5 = uVar3;" (assignment_expression "*puVar5 = uVar3" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar5 = puVar8;" (assignment_expression "puVar5 = puVar8" (identifier "puVar5") (= "=") (identifier "puVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar8 < puVar11)" (( "(") (binary_expression "puVar8 < puVar11" (identifier "puVar8") (< "<") (identifier "puVar11")) () ")")) (; ";")) (expression_statement "puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);" (assignment_expression "puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2)" (identifier "puVar9") (= "=") (cast_expression "(ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2)" (( "(") (binary_expression "(int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2" (binary_expression "(int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU)" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (+ "+") (parenthesized_expression "((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU)" (( "(") (binary_expression "(int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU" (binary_expression "(int)puVar11 + (-1 - (int)puVar9)" (cast_expression "(int)puVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar11")) (+ "+") (parenthesized_expression "(-1 - (int)puVar9)" (( "(") (binary_expression "-1 - (int)puVar9" (number_literal "-1") (- "-") (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9"))) () ")"))) (& "&") (number_literal "0xfffffffeU")) () ")"))) (+ "+") (number_literal "2")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar10 = FUN_00058510();" (assignment_expression "iVar10 = FUN_00058510()" (identifier "iVar10") (= "=") (call_expression "FUN_00058510()" (identifier "FUN_00058510") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar10 == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar9 = puVar9 + -1;" (assignment_expression "puVar9 = puVar9 + -1" (identifier "puVar9") (= "=") (binary_expression "puVar9 + -1" (identifier "puVar9") (+ "+") (number_literal "-1"))) (; ";")) (do_statement "do {\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      } while (uVar3 + 1 >> 0x10 != 0);" (do "do") (compound_statement "{\n        uVar3 = *puVar9;\n        *puVar9 = uVar3 + 1;\n        if (param_1 == puVar9) goto LAB_0005878a;\n        puVar9 = puVar9 + -1;\n      }" ({ "{") (expression_statement "uVar3 = *puVar9;" (assignment_expression "uVar3 = *puVar9" (identifier "uVar3") (= "=") (pointer_expression "*puVar9" (* "*") (identifier "puVar9"))) (; ";")) (expression_statement "*puVar9 = uVar3 + 1;" (assignment_expression "*puVar9 = uVar3 + 1" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_1 == puVar9) goto LAB_0005878a;" (if "if") (parenthesized_expression "(param_1 == puVar9)" (( "(") (binary_expression "param_1 == puVar9" (identifier "param_1") (== "==") (identifier "puVar9")) () ")")) (goto_statement "goto LAB_0005878a;" (goto "goto") (statement_identifier "LAB_0005878a") (; ";"))) (expression_statement "puVar9 = puVar9 + -1;" (assignment_expression "puVar9 = puVar9 + -1" (identifier "puVar9") (= "=") (binary_expression "puVar9 + -1" (identifier "puVar9") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 + 1 >> 0x10 != 0)" (( "(") (binary_expression "uVar3 + 1 >> 0x10 != 0" (binary_expression "uVar3 + 1 >> 0x10" (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1")) (>> ">>") (number_literal "0x10")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (if_statement "if (param_1 == puVar9) {\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }" (if "if") (parenthesized_expression "(param_1 == puVar9)" (( "(") (binary_expression "param_1 == puVar9" (identifier "param_1") (== "==") (identifier "puVar9")) () ")")) (compound_statement "{\nLAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }\n      }" ({ "{") (labeled_statement "LAB_0005878a:\n        if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }" (statement_identifier "LAB_0005878a") (: ":") (if_statement "if (bVar2) {\n          puVar9[1] = puVar9[1] | 0x8000;\n        }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\n          puVar9[1] = puVar9[1] | 0x8000;\n        }" ({ "{") (expression_statement "puVar9[1] = puVar9[1] | 0x8000;" (assignment_expression "puVar9[1] = puVar9[1] | 0x8000" (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "puVar9[1] | 0x8000" (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]")) (| "|") (number_literal "0x8000"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (-1 < (short)(uVar7 ^ *param_1)) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(-1 < (short)(uVar7 ^ *param_1))" (( "(") (binary_expression "-1 < (short)(uVar7 ^ *param_1)" (number_literal "-1") (< "<") (cast_expression "(short)(uVar7 ^ *param_1)" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (parenthesized_expression "(uVar7 ^ *param_1)" (( "(") (binary_expression "uVar7 ^ *param_1" (identifier "uVar7") (^ "^") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_1 = *param_1 & 0x7fff;" (assignment_expression "*param_1 = *param_1 & 0x7fff" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*param_1 & 0x7fff" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "0x7fff"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (goto_statement "goto LAB_00058810;" (goto "goto") (statement_identifier "LAB_00058810") (; ";")) (} "}"))) (if_statement "if (DAT_00089678 == 0) {\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }\n  else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }" (if "if") (parenthesized_expression "(DAT_00089678 == 0)" (( "(") (binary_expression "DAT_00089678 == 0" (identifier "DAT_00089678") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_00089674 = DAT_00089674 + 2;\n    DAT_00089678 = 1;\n    DAT_0008967c = 1;\n    iVar10 = DAT_0008967c;\n  }" ({ "{") (expression_statement "DAT_00089674 = DAT_00089674 + 2;" (assignment_expression "DAT_00089674 = DAT_00089674 + 2" (identifier "DAT_00089674") (= "=") (binary_expression "DAT_00089674 + 2" (identifier "DAT_00089674") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "DAT_00089678 = 1;" (assignment_expression "DAT_00089678 = 1" (identifier "DAT_00089678") (= "=") (number_literal "1")) (; ";")) (expression_statement "DAT_0008967c = 1;" (assignment_expression "DAT_0008967c = 1" (identifier "DAT_0008967c") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar10 = DAT_0008967c;" (assignment_expression "iVar10 = DAT_0008967c" (identifier "iVar10") (= "=") (identifier "DAT_0008967c")) (; ";")) (} "}")) (else_clause "else {\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }" (else "else") (compound_statement "{\n    iVar10 = DAT_0008967c + 1;\n    if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }\n  }" ({ "{") (expression_statement "iVar10 = DAT_0008967c + 1;" (assignment_expression "iVar10 = DAT_0008967c + 1" (identifier "iVar10") (= "=") (binary_expression "DAT_0008967c + 1" (identifier "DAT_0008967c") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (0x10 < DAT_0008967c + 1) {\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }" (if "if") (parenthesized_expression "(0x10 < DAT_0008967c + 1)" (( "(") (binary_expression "0x10 < DAT_0008967c + 1" (number_literal "0x10") (< "<") (binary_expression "DAT_0008967c + 1" (identifier "DAT_0008967c") (+ "+") (number_literal "1"))) () ")")) (compound_statement "{\n      DAT_00089678 = DAT_00089678 + 1;\n      DAT_00089674 = DAT_00089674 + 2;\n      iVar10 = DAT_0008967c + -0xf;\n    }" ({ "{") (expression_statement "DAT_00089678 = DAT_00089678 + 1;" (assignment_expression "DAT_00089678 = DAT_00089678 + 1" (identifier "DAT_00089678") (= "=") (binary_expression "DAT_00089678 + 1" (identifier "DAT_00089678") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "DAT_00089674 = DAT_00089674 + 2;" (assignment_expression "DAT_00089674 = DAT_00089674 + 2" (identifier "DAT_00089674") (= "=") (binary_expression "DAT_00089674 + 2" (identifier "DAT_00089674") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar10 = DAT_0008967c + -0xf;" (assignment_expression "iVar10 = DAT_0008967c + -0xf" (identifier "iVar10") (= "=") (binary_expression "DAT_0008967c + -0xf" (identifier "DAT_0008967c") (+ "+") (number_literal "-0xf"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "DAT_0008967c = iVar10;" (assignment_expression "DAT_0008967c = iVar10" (identifier "DAT_0008967c") (= "=") (identifier "iVar10")) (; ";")) (expression_statement "iVar10 = param_2 * 0x10;" (assignment_expression "iVar10 = param_2 * 0x10" (identifier "iVar10") (= "=") (binary_expression "param_2 * 0x10" (identifier "param_2") (* "*") (number_literal "0x10"))) (; ";")) (expression_statement "local_28 = iVar10 - ((param_3 + 1) - uVar6);" (assignment_expression "local_28 = iVar10 - ((param_3 + 1) - uVar6)" (identifier "local_28") (= "=") (binary_expression "iVar10 - ((param_3 + 1) - uVar6)" (identifier "iVar10") (- "-") (parenthesized_expression "((param_3 + 1) - uVar6)" (( "(") (binary_expression "(param_3 + 1) - uVar6" (parenthesized_expression "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")")) (- "-") (identifier "uVar6")) () ")")))) (; ";")) (expression_statement "puVar9 = param_1 + 1;" (assignment_expression "puVar9 = param_1 + 1" (identifier "puVar9") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_2c = puVar9;" (assignment_expression "local_2c = puVar9" (identifier "local_2c") (= "=") (identifier "puVar9")) (; ";")) (if_statement "if ((param_2 == 5) && (param_3 == 0xf)) {\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }\n  else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }" (if "if") (parenthesized_expression "((param_2 == 5) && (param_3 == 0xf))" (( "(") (binary_expression "(param_2 == 5) && (param_3 == 0xf)" (parenthesized_expression "(param_2 == 5)" (( "(") (binary_expression "param_2 == 5" (identifier "param_2") (== "==") (number_literal "5")) () ")")) (&& "&&") (parenthesized_expression "(param_3 == 0xf)" (( "(") (binary_expression "param_3 == 0xf" (identifier "param_3") (== "==") (number_literal "0xf")) () ")"))) () ")")) (compound_statement "{\n    local_28 = local_28 + -1;\n    iVar4 = 1 - uVar6;\nLAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;\n    *param_1 = uVar7;\n    if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }\n    if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }\n    if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }\n  }" ({ "{") (expression_statement "local_28 = local_28 + -1;" (assignment_expression "local_28 = local_28 + -1" (identifier "local_28") (= "=") (binary_expression "local_28 + -1" (identifier "local_28") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar4 = 1 - uVar6;" (assignment_expression "iVar4 = 1 - uVar6" (identifier "iVar4") (= "=") (binary_expression "1 - uVar6" (number_literal "1") (- "-") (identifier "uVar6"))) (; ";")) (labeled_statement "LAB_00058914:\n    iVar4 = iVar4 + -0xf + param_3;" (statement_identifier "LAB_00058914") (: ":") (expression_statement "iVar4 = iVar4 + -0xf + param_3;" (assignment_expression "iVar4 = iVar4 + -0xf + param_3" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -0xf + param_3" (binary_expression "iVar4 + -0xf" (identifier "iVar4") (+ "+") (number_literal "-0xf")) (+ "+") (identifier "param_3"))) (; ";"))) (expression_statement "*param_1 = uVar7;" (assignment_expression "*param_1 = uVar7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar7")) (; ";")) (if_statement "if (iVar10 <= param_3 + iVar4) {\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar10 <= param_3 + iVar4)" (( "(") (binary_expression "iVar10 <= param_3 + iVar4" (identifier "iVar10") (<= "<=") (binary_expression "param_3 + iVar4" (identifier "param_3") (+ "+") (identifier "iVar4"))) () ")")) (compound_statement "{\nLAB_00058810:\n      FUN_000585b0();\n      return 0;\n    }" ({ "{") (labeled_statement "LAB_00058810:\n      FUN_000585b0();" (statement_identifier "LAB_00058810") (: ":") (expression_statement "FUN_000585b0();" (call_expression "FUN_000585b0()" (identifier "FUN_000585b0") (argument_list "()" (( "(") () ")"))) (; ";"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (0xf < iVar4) {\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }" (if "if") (parenthesized_expression "(0xf < iVar4)" (( "(") (binary_expression "0xf < iVar4" (number_literal "0xf") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n      uVar6 = iVar4 - 0x10U >> 4;\n      puVar5 = puVar9;\n      do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);\n      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;\n      local_2c = param_1 + uVar6 + 2;\n    }" ({ "{") (expression_statement "uVar6 = iVar4 - 0x10U >> 4;" (assignment_expression "uVar6 = iVar4 - 0x10U >> 4" (identifier "uVar6") (= "=") (binary_expression "iVar4 - 0x10U >> 4" (binary_expression "iVar4 - 0x10U" (identifier "iVar4") (- "-") (number_literal "0x10U")) (>> ">>") (number_literal "4"))) (; ";")) (expression_statement "puVar5 = puVar9;" (assignment_expression "puVar5 = puVar9" (identifier "puVar5") (= "=") (identifier "puVar9")) (; ";")) (do_statement "do {\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      } while (param_1 + uVar6 + 2 != puVar8);" (do "do") (compound_statement "{\n        puVar8 = puVar5 + 1;\n        *puVar5 = 0;\n        puVar5 = puVar8;\n      }" ({ "{") (expression_statement "puVar8 = puVar5 + 1;" (assignment_expression "puVar8 = puVar5 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = puVar8;" (assignment_expression "puVar5 = puVar8" (identifier "puVar5") (= "=") (identifier "puVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 + uVar6 + 2 != puVar8)" (( "(") (binary_expression "param_1 + uVar6 + 2 != puVar8" (binary_expression "param_1 + uVar6 + 2" (binary_expression "param_1 + uVar6" (identifier "param_1") (+ "+") (identifier "uVar6")) (+ "+") (number_literal "2")) (!= "!=") (identifier "puVar8")) () ")")) (; ";")) (expression_statement "iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;" (assignment_expression "iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10" (identifier "iVar4") (= "=") (binary_expression "(iVar4 - 0x10U) + uVar6 * -0x10" (parenthesized_expression "(iVar4 - 0x10U)" (( "(") (binary_expression "iVar4 - 0x10U" (identifier "iVar4") (- "-") (number_literal "0x10U")) () ")")) (+ "+") (binary_expression "uVar6 * -0x10" (identifier "uVar6") (* "*") (number_literal "-0x10")))) (; ";")) (expression_statement "local_2c = param_1 + uVar6 + 2;" (assignment_expression "local_2c = param_1 + uVar6 + 2" (identifier "local_2c") (= "=") (binary_expression "param_1 + uVar6 + 2" (binary_expression "param_1 + uVar6" (identifier "param_1") (+ "+") (identifier "uVar6")) (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (if_statement "if (iVar4 != 0) {\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar7 = FUN_00058510();\n      *local_2c = uVar7;\n      local_2c = local_2c + 1;\n    }" ({ "{") (expression_statement "uVar7 = FUN_00058510();" (assignment_expression "uVar7 = FUN_00058510()" (identifier "uVar7") (= "=") (call_expression "FUN_00058510()" (identifier "FUN_00058510") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*local_2c = uVar7;" (assignment_expression "*local_2c = uVar7" (pointer_expression "*local_2c" (* "*") (identifier "local_2c")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" (identifier "local_2c") (= "=") (binary_expression "local_2c + 1" (identifier "local_2c") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }" (else "else") (compound_statement "{\n    iVar4 = -uVar6;\n    if (0x10 - param_3 <= iVar4) goto LAB_00058914;\n    uVar3 = FUN_00058510();\n    *param_1 = uVar3 | uVar7;\n  }" ({ "{") (expression_statement "iVar4 = -uVar6;" (assignment_expression "iVar4 = -uVar6" (identifier "iVar4") (= "=") (unary_expression "-uVar6" (- "-") (identifier "uVar6"))) (; ";")) (if_statement "if (0x10 - param_3 <= iVar4) goto LAB_00058914;" (if "if") (parenthesized_expression "(0x10 - param_3 <= iVar4)" (( "(") (binary_expression "0x10 - param_3 <= iVar4" (binary_expression "0x10 - param_3" (number_literal "0x10") (- "-") (identifier "param_3")) (<= "<=") (identifier "iVar4")) () ")")) (goto_statement "goto LAB_00058914;" (goto "goto") (statement_identifier "LAB_00058914") (; ";"))) (expression_statement "uVar3 = FUN_00058510();" (assignment_expression "uVar3 = FUN_00058510()" (identifier "uVar3") (= "=") (call_expression "FUN_00058510()" (identifier "FUN_00058510") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_1 = uVar3 | uVar7;" (assignment_expression "*param_1 = uVar3 | uVar7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "uVar3 | uVar7" (identifier "uVar3") (| "|") (identifier "uVar7"))) (; ";")) (} "}")))) (expression_statement "puVar5 = local_2c;" (assignment_expression "puVar5 = local_2c" (identifier "puVar5") (= "=") (identifier "local_2c")) (; ";")) (if_statement "if (local_2c < puVar11) {\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }" (if "if") (parenthesized_expression "(local_2c < puVar11)" (( "(") (binary_expression "local_2c < puVar11" (identifier "local_2c") (< "<") (identifier "puVar11")) () ")")) (compound_statement "{\n    do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);\n    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);\n  }" ({ "{") (do_statement "do {\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    } while (puVar8 < puVar11);" (do "do") (compound_statement "{\n      puVar8 = puVar5 + 1;\n      uVar7 = FUN_00058510();\n      *puVar5 = uVar7;\n      puVar5 = puVar8;\n    }" ({ "{") (expression_statement "puVar8 = puVar5 + 1;" (assignment_expression "puVar8 = puVar5 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = FUN_00058510();" (assignment_expression "uVar7 = FUN_00058510()" (identifier "uVar7") (= "=") (call_expression "FUN_00058510()" (identifier "FUN_00058510") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*puVar5 = uVar7;" (assignment_expression "*puVar5 = uVar7" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "puVar5 = puVar8;" (assignment_expression "puVar5 = puVar8" (identifier "puVar5") (= "=") (identifier "puVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar8 < puVar11)" (( "(") (binary_expression "puVar8 < puVar11" (identifier "puVar8") (< "<") (identifier "puVar11")) () ")")) (; ";")) (expression_statement "local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);" (assignment_expression "local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" (identifier "local_2c") (= "=") (cast_expression "(ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2)" (( "(") (binary_expression "(int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2" (binary_expression "(int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU)" (cast_expression "(int)local_2c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_2c")) (+ "+") (parenthesized_expression "((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU)" (( "(") (binary_expression "(int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU" (binary_expression "(int)puVar11 + (-1 - (int)local_2c)" (cast_expression "(int)puVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar11")) (+ "+") (parenthesized_expression "(-1 - (int)local_2c)" (( "(") (binary_expression "-1 - (int)local_2c" (number_literal "-1") (- "-") (cast_expression "(int)local_2c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_2c"))) () ")"))) (& "&") (number_literal "0xfffffffeU")) () ")"))) (+ "+") (number_literal "2")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_00058510();" (assignment_expression "iVar4 = FUN_00058510()" (identifier "iVar4") (= "=") (call_expression "FUN_00058510()" (identifier "FUN_00058510") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (local_28 < 0x10) {\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }" (if "if") (parenthesized_expression "(local_28 < 0x10)" (( "(") (binary_expression "local_28 < 0x10" (identifier "local_28") (< "<") (number_literal "0x10")) () ")")) (compound_statement "{\n    local_2c[-1] = local_2c[-1] + 1;\n    return 0;\n  }" ({ "{") (expression_statement "local_2c[-1] = local_2c[-1] + 1;" (assignment_expression "local_2c[-1] = local_2c[-1] + 1" (subscript_expression "local_2c[-1]" (identifier "local_2c") ([ "[") (number_literal "-1") (] "]")) (= "=") (binary_expression "local_2c[-1] + 1" (subscript_expression "local_2c[-1]" (identifier "local_2c") ([ "[") (number_literal "-1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (local_28 != 0x10) {\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }" (if "if") (parenthesized_expression "(local_28 != 0x10)" (( "(") (binary_expression "local_28 != 0x10" (identifier "local_28") (!= "!=") (number_literal "0x10")) () ")")) (compound_statement "{\n    if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }\njoined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);\n    return 0;\n  }" ({ "{") (if_statement "if (local_2c[-1] == 0xffff) {\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }" (if "if") (parenthesized_expression "(local_2c[-1] == 0xffff)" (( "(") (binary_expression "local_2c[-1] == 0xffff" (subscript_expression "local_2c[-1]" (identifier "local_2c") ([ "[") (number_literal "-1") (] "]")) (== "==") (number_literal "0xffff")) () ")")) (compound_statement "{\n      puVar5 = local_2c + -2;\n      iVar4 = local_28;\n      do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);\n    }" ({ "{") (expression_statement "puVar5 = local_2c + -2;" (assignment_expression "puVar5 = local_2c + -2" (identifier "puVar5") (= "=") (binary_expression "local_2c + -2" (identifier "local_2c") (+ "+") (number_literal "-2"))) (; ";")) (expression_statement "iVar4 = local_28;" (assignment_expression "iVar4 = local_28" (identifier "iVar4") (= "=") (identifier "local_28")) (; ";")) (do_statement "do {\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      } while (uVar7 == 0xffff);" (do "do") (compound_statement "{\n        iVar4 = iVar4 + -0x10;\n        uVar7 = *puVar5;\n        if (iVar4 < 0x11) goto LAB_00058a14;\n        puVar5 = puVar5 + -1;\n      }" ({ "{") (expression_statement "iVar4 = iVar4 + -0x10;" (assignment_expression "iVar4 = iVar4 + -0x10" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -0x10" (identifier "iVar4") (+ "+") (number_literal "-0x10"))) (; ";")) (expression_statement "uVar7 = *puVar5;" (assignment_expression "uVar7 = *puVar5" (identifier "uVar7") (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (if_statement "if (iVar4 < 0x11) goto LAB_00058a14;" (if "if") (parenthesized_expression "(iVar4 < 0x11)" (( "(") (binary_expression "iVar4 < 0x11" (identifier "iVar4") (< "<") (number_literal "0x11")) () ")")) (goto_statement "goto LAB_00058a14;" (goto "goto") (statement_identifier "LAB_00058a14") (; ";"))) (expression_statement "puVar5 = puVar5 + -1;" (assignment_expression "puVar5 = puVar5 + -1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + -1" (identifier "puVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 == 0xffff)" (( "(") (binary_expression "uVar7 == 0xffff" (identifier "uVar7") (== "==") (number_literal "0xffff")) () ")")) (; ";")) (} "}"))) (labeled_statement "joined_r0x00058a2d:\n    do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);" (statement_identifier "joined_r0x00058a2d") (: ":") (do_statement "do {\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    } while (uVar7 + 1 >> 0x10 != 0);" (do "do") (compound_statement "{\n      local_2c = local_2c + -1;\n      if (local_2c < param_1) {\n        return 0;\n      }\n      uVar7 = *local_2c;\n      *local_2c = uVar7 + 1;\n    }" ({ "{") (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" (identifier "local_2c") (= "=") (binary_expression "local_2c + -1" (identifier "local_2c") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (local_2c < param_1) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(local_2c < param_1)" (( "(") (binary_expression "local_2c < param_1" (identifier "local_2c") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar7 = *local_2c;" (assignment_expression "uVar7 = *local_2c" (identifier "uVar7") (= "=") (pointer_expression "*local_2c" (* "*") (identifier "local_2c"))) (; ";")) (expression_statement "*local_2c = uVar7 + 1;" (assignment_expression "*local_2c = uVar7 + 1" (pointer_expression "*local_2c" (* "*") (identifier "local_2c")) (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 + 1 >> 0x10 != 0)" (( "(") (binary_expression "uVar7 + 1 >> 0x10 != 0" (binary_expression "uVar7 + 1 >> 0x10" (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1")) (>> ">>") (number_literal "0x10")) (!= "!=") (number_literal "0")) () ")")) (; ";"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" (identifier "iVar4") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "uVar7 = local_2c[-1];" (assignment_expression "uVar7 = local_2c[-1]" (identifier "uVar7") (= "=") (subscript_expression "local_2c[-1]" (identifier "local_2c") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (labeled_statement "LAB_00058a14:\n  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;" (statement_identifier "LAB_00058a14") (: ":") (if_statement "if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))\n  goto joined_r0x00058a2d;" (if "if") (parenthesized_expression "(*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))" (( "(") (binary_expression "*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4))" (pointer_expression "*(uint *)(&DAT_00066380 + iVar4 * 4)" (* "*") (cast_expression "(uint *)(&DAT_00066380 + iVar4 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00066380 + iVar4 * 4)" (( "(") (binary_expression "&DAT_00066380 + iVar4 * 4" (pointer_expression "&DAT_00066380" (& "&") (identifier "DAT_00066380")) (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (parenthesized_expression "((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4))" (( "(") (binary_expression "(uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)" (cast_expression "(uint)uVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar7")) (& "&") (pointer_expression "*(uint *)(&DAT_00066380 + iVar4 * 4)" (* "*") (cast_expression "(uint *)(&DAT_00066380 + iVar4 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00066380 + iVar4 * 4)" (( "(") (binary_expression "&DAT_00066380 + iVar4 * 4" (pointer_expression "&DAT_00066380" (& "&") (identifier "DAT_00066380")) (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")"))))) () ")"))) () ")")) (goto_statement "goto joined_r0x00058a2d;" (goto "goto") (statement_identifier "joined_r0x00058a2d") (; ";")))) (if_statement "if ((iVar10 - param_3) + -1 == local_28) {\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }\n  else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }" (if "if") (parenthesized_expression "((iVar10 - param_3) + -1 == local_28)" (( "(") (binary_expression "(iVar10 - param_3) + -1 == local_28" (binary_expression "(iVar10 - param_3) + -1" (parenthesized_expression "(iVar10 - param_3)" (( "(") (binary_expression "iVar10 - param_3" (identifier "iVar10") (- "-") (identifier "param_3")) () ")")) (+ "+") (number_literal "-1")) (== "==") (identifier "local_28")) () ")")) (compound_statement "{\n    uVar7 = 0;\n    if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }\n    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    if (param_2 != 5) goto joined_r0x00058c0c;\n  }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (if_statement "if (DAT_00080270 != '+') {\n      uVar7 = 0x8000;\n    }" (if "if") (parenthesized_expression "(DAT_00080270 != '+')" (( "(") (binary_expression "DAT_00080270 != '+'" (identifier "DAT_00080270") (!= "!=") (char_literal "'+'" (' "'") (character "+") (' "'"))) () ")")) (compound_statement "{\n      uVar7 = 0x8000;\n    }" ({ "{") (expression_statement "uVar7 = 0x8000;" (assignment_expression "uVar7 = 0x8000" (identifier "uVar7") (= "=") (number_literal "0x8000")) (; ";")) (} "}"))) (expression_statement "*param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));" (assignment_expression "*param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f))" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f))" (identifier "uVar7") (| "|") (call_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(1 << (0xfU - cVar1 & 0x1f))" (( "(") (binary_expression "1 << (0xfU - cVar1 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(0xfU - cVar1 & 0x1f)" (( "(") (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" (number_literal "0xfU") (- "-") (identifier "cVar1")) (& "&") (number_literal "0x1f")) () ")"))) () ")"))))) (; ";")) (if_statement "if (param_2 != 5) goto joined_r0x00058c0c;" (if "if") (parenthesized_expression "(param_2 != 5)" (( "(") (binary_expression "param_2 != 5" (identifier "param_2") (!= "!=") (number_literal "5")) () ")")) (goto_statement "goto joined_r0x00058c0c;" (goto "goto") (statement_identifier "joined_r0x00058c0c") (; ";"))) (} "}")) (else_clause "else {\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }" (else "else") (compound_statement "{\n    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;\n    if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }\n  }" ({ "{") (if_statement "if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;" (if "if") (parenthesized_expression "((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28))" (( "(") (binary_expression "(param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)" (parenthesized_expression "(param_2 != 5)" (( "(") (binary_expression "param_2 != 5" (identifier "param_2") (!= "!=") (number_literal "5")) () ")")) (|| "||") (parenthesized_expression "((iVar10 - param_3) + -2 != local_28)" (( "(") (binary_expression "(iVar10 - param_3) + -2 != local_28" (binary_expression "(iVar10 - param_3) + -2" (parenthesized_expression "(iVar10 - param_3)" (( "(") (binary_expression "iVar10 - param_3" (identifier "iVar10") (- "-") (identifier "param_3")) () ")")) (+ "+") (number_literal "-2")) (!= "!=") (identifier "local_28")) () ")"))) () ")")) (goto_statement "goto joined_r0x00058a2d;" (goto "goto") (statement_identifier "joined_r0x00058a2d") (; ";"))) (if_statement "if (DAT_00080270 == '+') {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }\n    else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }" (if "if") (parenthesized_expression "(DAT_00080270 == '+')" (( "(") (binary_expression "DAT_00080270 == '+'" (identifier "DAT_00080270") (== "==") (char_literal "'+'" (' "'") (character "+") (' "'"))) () ")")) (compound_statement "{\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));\n    }" ({ "{") (expression_statement "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));" (assignment_expression "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f))" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (call_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(1 << (0xfU - cVar1 & 0x1f))" (( "(") (binary_expression "1 << (0xfU - cVar1 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(0xfU - cVar1 & 0x1f)" (( "(") (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" (number_literal "0xfU") (- "-") (identifier "cVar1")) (& "&") (number_literal "0x1f")) () ")"))) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }" (else "else") (compound_statement "{\n      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;\n    }" ({ "{") (expression_statement "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;" (assignment_expression "*param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000" (call_expression "(ushort)(1 << (0xfU - cVar1 & 0x1f))" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(1 << (0xfU - cVar1 & 0x1f))" (( "(") (binary_expression "1 << (0xfU - cVar1 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(0xfU - cVar1 & 0x1f)" (( "(") (binary_expression "0xfU - cVar1 & 0x1f" (binary_expression "0xfU - cVar1" (number_literal "0xfU") (- "-") (identifier "cVar1")) (& "&") (number_literal "0x1f")) () ")"))) () ")"))) (| "|") (number_literal "0x8000"))) (; ";")) (} "}")))) (} "}")))) (expression_statement "puVar9 = param_1 + 2;" (assignment_expression "puVar9 = param_1 + 2" (identifier "puVar9") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "param_1[1] = 0x8000;" (assignment_expression "param_1[1] = 0x8000" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x8000")) (; ";")) (labeled_statement "joined_r0x00058c0c:\n  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }" (statement_identifier "joined_r0x00058c0c") (: ":") (for_statement "for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {\n    *puVar9 = 0;\n  }" (for "for") (( "(") (; ";") (binary_expression "puVar9 < puVar11" (identifier "puVar9") (< "<") (identifier "puVar11")) (; ";") (assignment_expression "puVar9 = puVar9 + 1" (identifier "puVar9") (= "=") (binary_expression "puVar9 + 1" (identifier "puVar9") (+ "+") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar9 = 0;\n  }" ({ "{") (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(type_1 *var_2,int var_3,long var_9)

{
  type_2 var_15;
  char var_7;
  bool bVar3;
  type_1 LVar4;
  int var_5;
  type_2 *var_13;
  type_3 var_8;
  type_2 var_10;
  type_2 *var_14;
  type_2 *var_11;
  int var_6;
  type_2 *var_12;
  type_2 *var_21;
  int var_19;
  
  if (generic_floating_point_number.leader < generic_floating_point_number.low) {
    LVar4 = 0;
    if (generic_floating_point_number.sign != '+') {
      LVar4 = 0x8000;
    }
    *var_2 = LVar4;
    var_1(var_2 + 1,0,var_3 * 2 - 2);
    return 0;
  }
  if (generic_floating_point_number.sign == '\0') {
    if (var_3 == 2) {
      var_2[0] = 0x7fff;
      var_2[1] = 0xffff;
      return 0;
    }
    if (var_3 != 5) {
      var_2[0] = 0x7fff;
      var_2[1] = 0xffff;
      var_2[2] = 0xffff;
      var_2[3] = 0xffff;
      return 0;
    }
    var_2[0] = 0xffff;
    var_2[1] = 0xc000;
    var_2[2] = 0;
    var_2[3] = 0;
    var_2[4] = 0;
    return 0;
  }
  if (generic_floating_point_number.sign == 'P') {
    if (var_3 == 2) {
      var_2[0] = 0x7f80;
      var_2[1] = 0;
      return 0;
    }
    if (var_3 != 5) {
      var_2[0] = 0x7ff0;
      var_2[1] = 0;
      var_2[2] = 0;
      var_2[3] = 0;
      return 0;
    }
    var_2[0] = 0x7fff;
    var_2[1] = 0x8000;
    var_2[2] = 0;
    var_2[3] = 0;
    var_2[4] = 0;
    return 0;
  }
  if (generic_floating_point_number.sign == 'N') {
    if (var_3 == 2) {
      var_2[0] = 0xff80;
      var_2[1] = 0;
      return 0;
    }
    if (var_3 != 5) {
      var_2[0] = 0xfff0;
      var_2[1] = 0;
      var_2[2] = 0;
      var_2[3] = 0;
      return 0;
    }
    var_2[0] = 0xffff;
    var_2[1] = 0x8000;
    var_2[2] = 0;
    var_2[3] = 0;
    var_2[4] = 0;
    return 0;
  }
  var_17 = generic_floating_point_number.leader;
  var_6 = 0;
  var_18 = 0x10;
  var_16 =
       (int)generic_floating_point_number.leader + (2 - (int)generic_floating_point_number.low) >> 1
  ;
  while (var_5 = var_4(1), var_5 == 0) {
    var_6 = var_6 + 1;
  }
  var_7 = (char)var_9;
  var_8 = (((int)generic_floating_point_number.leader +
            ((generic_floating_point_number.exponent * 2 + 2) -
            (int)generic_floating_point_number.low) >> 1) * 0x10 - var_6) + -2 +
          (1 << (var_7 - 1U & 0x1f));
  var_10 = 0x8000;
  if (generic_floating_point_number.sign == '+') {
    var_10 = 0;
  }
  var_12 = var_2 + var_3;
  if (0 < (int)var_8) {
    if (var_8 < mask[var_9]) {
      var_6 = var_4(0xf - var_9);
      var_10 = (type_2)(var_8 << ((byte)(0xf - var_9) & 0x1f)) | (type_2)var_6 | var_10;
      *var_2 = var_10;
      bVar3 = var_9 == 0xf && var_3 == 5;
      if (bVar3) {
        var_6 = var_4(0xf);
        var_11 = var_2 + 2;
        var_2[1] = (type_2)var_6 | 0x8000;
      }
      else {
        var_11 = var_2 + 1;
      }
      var_13 = var_11;
      if (var_11 < var_12) {
        do {
          var_14 = var_13 + 1;
          var_6 = var_4(0x10);
          *var_13 = (type_2)var_6;
          var_13 = var_14;
        } while (var_14 < var_12);
        var_11 = (type_2 *)((int)var_11 + ((int)var_12 + (-1 - (int)var_11) & 0xfffffffeU) + 2);
      }
      var_6 = var_4(1);
      if (var_6 == 0) {
        return 0;
      }
      var_11 = var_11 + -1;
      do {
        var_15 = *var_11;
        *var_11 = var_15 + 1;
        if (var_2 == var_11) goto LAB_0005878a;
        var_11 = var_11 + -1;
      } while (var_15 + 1 >> 0x10 != 0);
      if (var_2 == var_11) {
LAB_0005878a:
        if (bVar3) {
          var_11[1] = var_11[1] | 0x8000;
        }
      }
      if (-1 < (short)(var_10 ^ *var_2)) {
        return 0;
      }
      *var_2 = *var_2 & 0x7fff;
      return 0;
    }
    goto LAB_00058810;
  }
  if (var_16 == 0) {
    var_17 = var_17 + 1;
    var_16 = 1;
    var_18 = 1;
    var_6 = var_18;
  }
  else {
    var_6 = var_18 + 1;
    if (0x10 < var_18 + 1) {
      var_16 = var_16 + 1;
      var_17 = var_17 + 1;
      var_6 = var_18 + -0xf;
    }
  }
  var_18 = var_6;
  var_6 = var_3 * 0x10;
  var_19 = var_6 - ((var_9 + 1) - var_8);
  var_11 = var_2 + 1;
  var_21 = var_11;
  if ((var_3 == 5) && (var_9 == 0xf)) {
    var_19 = var_19 + -1;
    var_5 = 1 - var_8;
LAB_00058914:
    var_5 = var_5 + -0xf + var_9;
    *var_2 = var_10;
    if (var_6 <= var_9 + var_5) {
LAB_00058810:
      var_20(var_2);
      return 0;
    }
    if (0xf < var_5) {
      var_8 = var_5 - 0x10U >> 4;
      var_13 = var_11;
      do {
        var_14 = var_13 + 1;
        *var_13 = 0;
        var_13 = var_14;
      } while (var_2 + var_8 + 2 != var_14);
      var_5 = (var_5 - 0x10U) + var_8 * -0x10;
      var_21 = var_2 + var_8 + 2;
    }
    if (var_5 != 0) {
      var_5 = var_4(0x10 - var_5);
      *var_21 = (type_2)var_5;
      var_21 = var_21 + 1;
    }
  }
  else {
    var_5 = -var_8;
    if (0x10 - var_9 <= var_5) goto LAB_00058914;
    var_5 = var_4((var_8 - var_9) + 0xf);
    *var_2 = (type_2)var_5 | var_10;
  }
  var_13 = var_21;
  if (var_21 < var_12) {
    do {
      var_14 = var_13 + 1;
      var_5 = var_4(0x10);
      *var_13 = (type_2)var_5;
      var_13 = var_14;
    } while (var_14 < var_12);
    var_21 = (type_2 *)((int)var_21 + ((int)var_12 + (-1 - (int)var_21) & 0xfffffffeU) + 2);
  }
  var_5 = var_4(1);
  if (var_5 == 0) {
    return 0;
  }
  if (var_19 < 0x10) {
    var_21[-1] = var_21[-1] + 1;
    return 0;
  }
  if (var_19 != 0x10) {
    if (var_21[-1] == 0xffff) {
      var_13 = var_21 + -2;
      var_5 = var_19;
      do {
        var_5 = var_5 + -0x10;
        var_10 = *var_13;
        if (var_5 < 0x11) goto LAB_00058a14;
        var_13 = var_13 + -1;
      } while (var_10 == 0xffff);
    }
joined_r0x00058a2d:
    do {
      var_21 = var_21 + -1;
      if (var_21 < var_2) {
        return 0;
      }
      var_10 = *var_21;
      *var_21 = var_10 + 1;
    } while (var_10 + 1 >> 0x10 != 0);
    return 0;
  }
  var_5 = 0x10;
  var_10 = var_21[-1];
LAB_00058a14:
  if (mask[var_5] != ((type_3)var_10 & mask[var_5])) goto joined_r0x00058a2d;
  if ((var_6 - var_9) + -1 == var_19) {
    var_10 = 0;
    if (generic_floating_point_number.sign != '+') {
      var_10 = 0x8000;
    }
    *var_2 = var_10 | (type_2)(1 << (0xfU - var_7 & 0x1f));
    if (var_3 != 5) goto joined_r0x00058c0c;
  }
  else {
    if ((var_3 != 5) || ((var_6 - var_9) + -2 != var_19)) goto joined_r0x00058a2d;
    if (generic_floating_point_number.sign == '+') {
      *var_2 = (type_1)(1 << (0xfU - var_7 & 0x1f));
    }
    else {
      *var_2 = (type_2)(1 << (0xfU - var_7 & 0x1f)) | 0x8000;
    }
  }
  var_11 = var_2 + 2;
  var_2[1] = 0x8000;
joined_r0x00058c0c:
  for (; var_11 < var_12; var_11 = var_11 + 1) {
    *var_11 = 0;
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) right: (number_literal)))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) right: (number_literal))) right: (number_literal)) right: (identifier))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (identifier)) right: (number_literal)))))) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) 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: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) right: (number_literal)))) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (return_statement (number_literal)))) (goto_statement label: (statement_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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (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: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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: (number_literal) right: (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (identifier)) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) 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: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) right: (number_literal)))) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (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: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)) right: (number_literal))))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (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: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))))) consequence: (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (identifier)) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)) right: (identifier))))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (identifier)) right: (number_literal))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (identifier)) right: (number_literal)))))) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (labeled_statement label: (statement_identifier) (for_statement condition: (binary_expression left: (identifier) right: (identifier)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (return_statement (number_literal)))))

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

undefined4 MASKED(ushort *param_1,int param_2,int param_3)

{
  char cVar1;
  bool bVar2;
  ushort uVar3;
  int iVar4;
  ushort *puVar5;
  uint uVar6;
  ushort uVar7;
  ushort *puVar8;
  ushort *puVar9;
  int iVar10;
  ushort *puVar11;
  ushort *local_2c;
  int local_28;
  
  if (DAT_00080268 < PTR_DAT_00080260) {
    uVar7 = 0;
    if (DAT_00080270 != '+') {
      uVar7 = 0x8000;
    }
    *param_1 = uVar7;
    memset(param_1 + 1,0,param_2 * 2 - 2);
    return 0;
  }
  if (DAT_00080270 == '\0') {
    if (param_2 == 2) {
      param_1[0] = 0x7fff;
      param_1[1] = 0xffff;
      return 0;
    }
    if (param_2 != 5) {
      param_1[0] = 0x7fff;
      param_1[1] = 0xffff;
      param_1[2] = 0xffff;
      param_1[3] = 0xffff;
      return 0;
    }
    param_1[0] = 0xffff;
    param_1[1] = 0xc000;
    param_1[2] = 0;
    param_1[3] = 0;
    param_1[4] = 0;
    return 0;
  }
  if (DAT_00080270 == 'P') {
    if (param_2 == 2) {
      param_1[0] = 0x7f80;
      param_1[1] = 0;
      return 0;
    }
    if (param_2 != 5) {
      param_1[0] = 0x7ff0;
      param_1[1] = 0;
      param_1[2] = 0;
      param_1[3] = 0;
      return 0;
    }
    param_1[0] = 0x7fff;
    param_1[1] = 0x8000;
    param_1[2] = 0;
    param_1[3] = 0;
    param_1[4] = 0;
    return 0;
  }
  if (DAT_00080270 == 'N') {
    if (param_2 == 2) {
      param_1[0] = 0xff80;
      param_1[1] = 0;
      return 0;
    }
    if (param_2 != 5) {
      param_1[0] = 0xfff0;
      param_1[1] = 0;
      param_1[2] = 0;
      param_1[3] = 0;
      return 0;
    }
    param_1[0] = 0xffff;
    param_1[1] = 0x8000;
    param_1[2] = 0;
    param_1[3] = 0;
    param_1[4] = 0;
    return 0;
  }
  DAT_00089674 = DAT_00080268;
  iVar10 = 0;
  DAT_0008967c = 0x10;
  DAT_00089678 = (int)(DAT_00080268 + (2 - (int)PTR_DAT_00080260)) >> 1;
  while (iVar4 = FUN_00058510(), iVar4 == 0) {
    iVar10 = iVar10 + 1;
  }
  cVar1 = (char)param_3;
  uVar6 = (((int)(DAT_00080268 + ((DAT_0008026c * 2 + 2) - (int)PTR_DAT_00080260)) >> 1) * 0x10 -
          iVar10) + -2 + (1 << (cVar1 - 1U & 0x1f));
  uVar7 = 0x8000;
  if (DAT_00080270 == '+') {
    uVar7 = 0;
  }
  puVar11 = param_1 + param_2;
  if (0 < (int)uVar6) {
    if (uVar6 < *(uint *)(&DAT_00066380 + param_3 * 4)) {
      uVar3 = FUN_00058510();
      uVar7 = (ushort)(uVar6 << (0xfU - cVar1 & 0x1f)) | uVar3 | uVar7;
      *param_1 = uVar7;
      bVar2 = param_3 == 0xf && param_2 == 5;
      if (bVar2) {
        uVar3 = FUN_00058510();
        puVar9 = param_1 + 2;
        param_1[1] = uVar3 | 0x8000;
      }
      else {
        puVar9 = param_1 + 1;
      }
      puVar5 = puVar9;
      if (puVar9 < puVar11) {
        do {
          puVar8 = puVar5 + 1;
          uVar3 = FUN_00058510();
          *puVar5 = uVar3;
          puVar5 = puVar8;
        } while (puVar8 < puVar11);
        puVar9 = (ushort *)((int)puVar9 + ((int)puVar11 + (-1 - (int)puVar9) & 0xfffffffeU) + 2);
      }
      iVar10 = FUN_00058510();
      if (iVar10 == 0) {
        return 0;
      }
      puVar9 = puVar9 + -1;
      do {
        uVar3 = *puVar9;
        *puVar9 = uVar3 + 1;
        if (param_1 == puVar9) goto LAB_0005878a;
        puVar9 = puVar9 + -1;
      } while (uVar3 + 1 >> 0x10 != 0);
      if (param_1 == puVar9) {
LAB_0005878a:
        if (bVar2) {
          puVar9[1] = puVar9[1] | 0x8000;
        }
      }
      if (-1 < (short)(uVar7 ^ *param_1)) {
        return 0;
      }
      *param_1 = *param_1 & 0x7fff;
      return 0;
    }
    goto LAB_00058810;
  }
  if (DAT_00089678 == 0) {
    DAT_00089674 = DAT_00089674 + 2;
    DAT_00089678 = 1;
    DAT_0008967c = 1;
    iVar10 = DAT_0008967c;
  }
  else {
    iVar10 = DAT_0008967c + 1;
    if (0x10 < DAT_0008967c + 1) {
      DAT_00089678 = DAT_00089678 + 1;
      DAT_00089674 = DAT_00089674 + 2;
      iVar10 = DAT_0008967c + -0xf;
    }
  }
  DAT_0008967c = iVar10;
  iVar10 = param_2 * 0x10;
  local_28 = iVar10 - ((param_3 + 1) - uVar6);
  puVar9 = param_1 + 1;
  local_2c = puVar9;
  if ((param_2 == 5) && (param_3 == 0xf)) {
    local_28 = local_28 + -1;
    iVar4 = 1 - uVar6;
LAB_00058914:
    iVar4 = iVar4 + -0xf + param_3;
    *param_1 = uVar7;
    if (iVar10 <= param_3 + iVar4) {
LAB_00058810:
      FUN_000585b0();
      return 0;
    }
    if (0xf < iVar4) {
      uVar6 = iVar4 - 0x10U >> 4;
      puVar5 = puVar9;
      do {
        puVar8 = puVar5 + 1;
        *puVar5 = 0;
        puVar5 = puVar8;
      } while (param_1 + uVar6 + 2 != puVar8);
      iVar4 = (iVar4 - 0x10U) + uVar6 * -0x10;
      local_2c = param_1 + uVar6 + 2;
    }
    if (iVar4 != 0) {
      uVar7 = FUN_00058510();
      *local_2c = uVar7;
      local_2c = local_2c + 1;
    }
  }
  else {
    iVar4 = -uVar6;
    if (0x10 - param_3 <= iVar4) goto LAB_00058914;
    uVar3 = FUN_00058510();
    *param_1 = uVar3 | uVar7;
  }
  puVar5 = local_2c;
  if (local_2c < puVar11) {
    do {
      puVar8 = puVar5 + 1;
      uVar7 = FUN_00058510();
      *puVar5 = uVar7;
      puVar5 = puVar8;
    } while (puVar8 < puVar11);
    local_2c = (ushort *)((int)local_2c + ((int)puVar11 + (-1 - (int)local_2c) & 0xfffffffeU) + 2);
  }
  iVar4 = FUN_00058510();
  if (iVar4 == 0) {
    return 0;
  }
  if (local_28 < 0x10) {
    local_2c[-1] = local_2c[-1] + 1;
    return 0;
  }
  if (local_28 != 0x10) {
    if (local_2c[-1] == 0xffff) {
      puVar5 = local_2c + -2;
      iVar4 = local_28;
      do {
        iVar4 = iVar4 + -0x10;
        uVar7 = *puVar5;
        if (iVar4 < 0x11) goto LAB_00058a14;
        puVar5 = puVar5 + -1;
      } while (uVar7 == 0xffff);
    }
joined_r0x00058a2d:
    do {
      local_2c = local_2c + -1;
      if (local_2c < param_1) {
        return 0;
      }
      uVar7 = *local_2c;
      *local_2c = uVar7 + 1;
    } while (uVar7 + 1 >> 0x10 != 0);
    return 0;
  }
  iVar4 = 0x10;
  uVar7 = local_2c[-1];
LAB_00058a14:
  if (*(uint *)(&DAT_00066380 + iVar4 * 4) != ((uint)uVar7 & *(uint *)(&DAT_00066380 + iVar4 * 4)))
  goto joined_r0x00058a2d;
  if ((iVar10 - param_3) + -1 == local_28) {
    uVar7 = 0;
    if (DAT_00080270 != '+') {
      uVar7 = 0x8000;
    }
    *param_1 = uVar7 | (ushort)(1 << (0xfU - cVar1 & 0x1f));
    if (param_2 != 5) goto joined_r0x00058c0c;
  }
  else {
    if ((param_2 != 5) || ((iVar10 - param_3) + -2 != local_28)) goto joined_r0x00058a2d;
    if (DAT_00080270 == '+') {
      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f));
    }
    else {
      *param_1 = (ushort)(1 << (0xfU - cVar1 & 0x1f)) | 0x8000;
    }
  }
  puVar9 = param_1 + 2;
  param_1[1] = 0x8000;
joined_r0x00058c0c:
  for (; puVar9 < puVar11; puVar9 = puVar9 + 1) {
    *puVar9 = 0;
  }
  return 0;
}

