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

char * __regparm3
two_way_long_needle(uchar *haystack,size_t haystack_len,uchar *needle,size_t needle_len)

{
  size_t *psVar1;
  byte *pbVar2;
  int iVar3;
  void *pvVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  uint uVar9;
  uchar *puVar10;
  size_t sVar11;
  size_t sVar12;
  int in_GS_OFFSET;
  uint local_454;
  uint local_44c;
  int local_448;
  uint local_43c;
  size_t period;
  size_t shift_table [256];
  size_t local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x5981b;
  local_20[0] = *(size_t *)(in_GS_OFFSET + 0x14);
  if (needle_len < 3) {
    local_43c = needle_len - 1;
    period = 1;
  }
  else {
    local_43c = critical_factorization(needle,needle_len,&period);
  }
  sVar11 = period;
  psVar1 = shift_table;
  do {
    *psVar1 = needle_len;
    psVar1 = psVar1 + 1;
  } while (local_20 != psVar1);
  if (needle_len == 0) {
    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);
    if (iVar3 == 0) {
LAB_00059a84:
      puVar10 = (uchar *)0x0;
LAB_00059a86:
      if (local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
        __stack_chk_fail_local();
      }
      return (char *)puVar10;
    }
    local_454 = 0xffffffff;
  }
  else {
    local_454 = needle_len - 1;
    pbVar2 = needle;
    do {
      while (uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41) {
        iVar3 = local_454 - (int)pbVar2;
        pbVar2 = pbVar2 + 1;
        shift_table[uVar7] = (size_t)(needle + iVar3);
        if (pbVar2 == needle + needle_len) goto LAB_000598d1;
      }
      iVar3 = local_454 - (int)pbVar2;
      pbVar2 = pbVar2 + 1;
      shift_table[uVar7 + 0x20] = (size_t)(needle + iVar3);
    } while (pbVar2 != needle + needle_len);
LAB_000598d1:
    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);
    if (iVar3 == 0) {
      local_44c = 0;
      local_448 = 0;
LAB_00059ad0:
      do {
        sVar12 = local_448 + needle_len;
        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);
        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;
        uVar7 = (uint)haystack[sVar12 - 1];
        if (uVar7 - 0x41 < 0x1a) {
          uVar7 = uVar7 + 0x20;
        }
        uVar7 = shift_table[uVar7];
        haystack_len = sVar12;
        if (uVar7 == 0) {
          uVar7 = local_43c;
          if (local_43c <= local_44c) {
            uVar7 = local_44c;
          }
          if (uVar7 < local_454) {
            do {
              uVar5 = (uint)needle[uVar7];
              if (uVar5 - 0x41 < 0x1a) {
                uVar5 = uVar5 + 0x20;
              }
              uVar6 = (uint)haystack[uVar7 + local_448];
              if (uVar6 - 0x41 < 0x1a) {
                uVar6 = uVar6 + 0x20;
              }
              if (uVar6 != uVar5) {
                local_44c = 0;
                local_448 = local_448 + (1 - local_43c) + uVar7;
                goto LAB_00059ad0;
              }
              uVar7 = uVar7 + 1;
            } while (uVar7 != local_454);
          }
          uVar5 = local_43c;
          uVar7 = local_43c;
          if (local_44c < local_43c) {
            do {
              uVar8 = uVar7 - 1;
              uVar6 = (uint)needle[uVar8];
              if (uVar6 - 0x41 < 0x1a) {
                uVar6 = uVar6 + 0x20;
              }
              uVar9 = (uint)haystack[uVar8 + local_448];
              if (uVar9 - 0x41 < 0x1a) {
                uVar9 = uVar9 + 0x20;
              }
              uVar5 = uVar7;
            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));
          }
          if (uVar5 < local_44c + 1) {
            puVar10 = haystack + local_448;
            goto LAB_00059a86;
          }
          local_448 = local_448 + sVar11;
          local_44c = needle_len - sVar11;
        }
        else {
          if ((uVar7 < sVar11) && (local_44c != 0)) {
            uVar7 = needle_len - sVar11;
          }
          local_448 = local_448 + uVar7;
          local_44c = 0;
        }
      } while( true );
    }
  }
  local_44c = 0;
  uVar7 = needle_len - local_43c;
  if (needle_len - local_43c < local_43c) {
    uVar7 = local_43c;
  }
  period = uVar7 + 1;
LAB_00059930:
  do {
    sVar11 = local_44c + needle_len;
    pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar11 - haystack_len);
    if ((sVar11 == 0) || (pvVar4 != (void *)0x0)) goto LAB_00059a84;
    uVar5 = (uint)haystack[sVar11 - 1];
    if (uVar5 - 0x41 < 0x1a) {
      uVar5 = uVar5 + 0x20;
    }
    haystack_len = sVar11;
    if (shift_table[uVar5] == 0) {
      puVar10 = haystack + local_44c;
      for (uVar5 = local_43c; uVar6 = local_43c, uVar5 < local_454; uVar5 = uVar5 + 1) {
        uVar6 = (uint)needle[uVar5];
        if (uVar6 - 0x41 < 0x1a) {
          uVar6 = uVar6 + 0x20;
        }
        uVar8 = (uint)puVar10[uVar5];
        if (uVar8 - 0x41 < 0x1a) {
          uVar8 = uVar8 + 0x20;
        }
        if (uVar8 != uVar6) {
          local_44c = local_44c + (1 - local_43c) + uVar5;
          goto LAB_00059930;
        }
      }
      do {
        uVar6 = uVar6 - 1;
        if (uVar6 == 0xffffffff) goto LAB_00059a86;
        uVar5 = (uint)needle[uVar6];
        if (uVar5 - 0x41 < 0x1a) {
          uVar5 = uVar5 + 0x20;
        }
        uVar8 = (uint)puVar10[uVar6];
        if (uVar8 - 0x41 < 0x1a) {
          uVar8 = uVar8 + 0x20;
        }
      } while (uVar8 == uVar5);
      local_44c = local_44c + uVar7 + 1;
    }
    else {
      local_44c = local_44c + shift_table[uVar5];
    }
  } while( true );
}



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

int __regparm3 FUN_00059810(int param_1,int param_2,byte *param_3,uint param_4)

{
  uint *puVar1;
  byte *pbVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  int iVar9;
  int in_GS_OFFSET;
  uint local_454;
  uint local_44c;
  int local_448;
  uint local_43c;
  uint local_438;
  uint local_424;
  uint local_420 [256];
  uint local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x5981b;
  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);
  if (param_4 < 3) {
    local_43c = param_4 - 1;
    local_438 = 1;
  }
  else {
    local_43c = FUN_00059640();
    local_438 = local_424;
  }
  puVar1 = local_420;
  do {
    *puVar1 = param_4;
    puVar1 = puVar1 + 1;
  } while (local_20 != puVar1);
  if (param_4 == 0) {
    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);
    if (iVar3 == 0) {
LAB_00059a84:
      local_448 = 0;
LAB_00059a86:
      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
        FUN_0007ad20();
      }
      return local_448;
    }
    local_454 = 0xffffffff;
  }
  else {
    local_454 = param_4 - 1;
    pbVar2 = param_3;
    do {
      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {
        iVar3 = local_454 - (int)pbVar2;
        pbVar2 = pbVar2 + 1;
        local_420[uVar6] = (uint)(param_3 + iVar3);
        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;
      }
      iVar3 = local_454 - (int)pbVar2;
      pbVar2 = pbVar2 + 1;
      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);
    } while (pbVar2 != param_3 + param_4);
LAB_000598d1:
    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);
    if (iVar3 == 0) {
      local_44c = 0;
      local_448 = 0;
LAB_00059ad0:
      do {
        iVar9 = local_448 + param_4;
        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);
        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;
        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);
        if (uVar6 - 0x41 < 0x1a) {
          uVar6 = uVar6 + 0x20;
        }
        uVar6 = local_420[uVar6];
        param_2 = iVar9;
        if (uVar6 == 0) {
          uVar6 = local_43c;
          if (local_43c <= local_44c) {
            uVar6 = local_44c;
          }
          if (uVar6 < local_454) {
            do {
              uVar4 = (uint)param_3[uVar6];
              if (uVar4 - 0x41 < 0x1a) {
                uVar4 = uVar4 + 0x20;
              }
              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);
              if (uVar5 - 0x41 < 0x1a) {
                uVar5 = uVar5 + 0x20;
              }
              if (uVar5 != uVar4) {
                local_44c = 0;
                local_448 = local_448 + (1 - local_43c) + uVar6;
                goto LAB_00059ad0;
              }
              uVar6 = uVar6 + 1;
            } while (uVar6 != local_454);
          }
          uVar4 = local_43c;
          uVar6 = local_43c;
          if (local_44c < local_43c) {
            do {
              uVar7 = uVar6 - 1;
              uVar5 = (uint)param_3[uVar7];
              if (uVar5 - 0x41 < 0x1a) {
                uVar5 = uVar5 + 0x20;
              }
              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);
              if (uVar8 - 0x41 < 0x1a) {
                uVar8 = uVar8 + 0x20;
              }
              uVar4 = uVar6;
            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));
          }
          if (uVar4 < local_44c + 1) {
            local_448 = param_1 + local_448;
            goto LAB_00059a86;
          }
          local_448 = local_448 + local_438;
          local_44c = param_4 - local_438;
        }
        else {
          if ((uVar6 < local_438) && (local_44c != 0)) {
            uVar6 = param_4 - local_438;
          }
          local_448 = local_448 + uVar6;
          local_44c = 0;
        }
      } while( true );
    }
  }
  local_44c = 0;
  uVar6 = param_4 - local_43c;
  if (param_4 - local_43c < local_43c) {
    uVar6 = local_43c;
  }
LAB_00059930:
  do {
    iVar9 = local_44c + param_4;
    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);
    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;
    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);
    if (uVar4 - 0x41 < 0x1a) {
      uVar4 = uVar4 + 0x20;
    }
    param_2 = iVar9;
    if (local_420[uVar4] == 0) {
      local_448 = param_1 + local_44c;
      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {
        uVar5 = (uint)param_3[uVar4];
        if (uVar5 - 0x41 < 0x1a) {
          uVar5 = uVar5 + 0x20;
        }
        uVar7 = (uint)*(byte *)(local_448 + uVar4);
        if (uVar7 - 0x41 < 0x1a) {
          uVar7 = uVar7 + 0x20;
        }
        if (uVar7 != uVar5) {
          local_44c = local_44c + (1 - local_43c) + uVar4;
          goto LAB_00059930;
        }
      }
      do {
        uVar5 = uVar5 - 1;
        if (uVar5 == 0xffffffff) goto LAB_00059a86;
        uVar4 = (uint)param_3[uVar5];
        if (uVar4 - 0x41 < 0x1a) {
          uVar4 = uVar4 + 0x20;
        }
        uVar7 = (uint)*(byte *)(local_448 + uVar5);
        if (uVar7 - 0x41 < 0x1a) {
          uVar7 = uVar7 + 0x20;
        }
      } while (uVar7 == uVar4);
      local_44c = local_44c + uVar6 + 1;
    }
    else {
      local_44c = local_44c + local_420[uVar4];
    }
  } while( true );
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x000190b0
ADD EBX,0x553b5
SUB ESP,0x44c
MOV dword ptr [ESP + 0xc],EAX
MOV ESI,dword ptr [ESP + 0x460]
MOV dword ptr [ESP + 0x1c],ECX
MOV dword ptr [ESP + 0x18],EBX
MOV EBX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x43c],EBX
XOR EBX,EBX
CMP ESI,0x2
JBE 0x00059c67
MOV EAX,ECX
MOV EDX,ESI
LEA ECX,[ESP + 0x38]
CALL 0x00059640
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x24],EAX
LEA EAX,[ESP + 0x3c]
LEA EDX,[ESP + 0x43c]
LEA ESI,[ESI]
NOP
MOV dword ptr [EAX],ESI
ADD EAX,0x4
CMP EDX,EAX
JNZ 0x00059880
MOV EAX,dword ptr [ESP + 0x1c]
MOV EBX,dword ptr [ESP + 0x24]
ADD EBX,EAX
MOV dword ptr [ESP + 0x10],EBX
TEST ESI,ESI
JZ 0x00059c83
LEA ECX,[ESI + -0x1]
MOV EBX,EAX
LEA EBP,[ESI + EAX*0x1]
MOV dword ptr [ESP + 0x8],ECX
ADD EBX,ECX
LEA ESI,[ESI]
MOVZX EDX,byte ptr [EAX]
LEA ECX,[EDX + -0x41]
CMP ECX,0x19
MOV ECX,EBX
JA 0x00059990
SUB ECX,EAX
ADD EAX,0x1
MOV dword ptr [ESP + EDX*0x4 + 0xbc],ECX
CMP EAX,EBP
JNZ 0x000598b0
SUB ESP,0x4
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x28]
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x000595b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00059aa5
MOV EBX,dword ptr [ESP + 0x20]
MOV EAX,ESI
MOV dword ptr [ESP + 0x10],0x0
MOV dword ptr [ESP + 0x460],ESI
SUB EAX,EBX
CMP EAX,EBX
CMOVC EAX,EBX
ADD EAX,0x1
MOV dword ptr [ESP + 0x2c],EAX
MOV dword ptr [ESP + 0x38],EAX
LEA EAX,[EBX + -0x1]
MOV dword ptr [ESP + 0x28],EAX
MOV EAX,0x1
SUB EAX,EBX
MOV dword ptr [ESP + 0x24],EAX
LEA ESI,[ESI]
MOV EBP,dword ptr [ESP + 0x10]
ADD EBP,dword ptr [ESP + 0x460]
SUB ESP,0x4
MOV EAX,EBP
SUB EAX,EDI
PUSH EAX
PUSH 0x0
ADD EDI,dword ptr [ESP + 0x18]
PUSH EDI
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x000670c0
ADD ESP,0x10
TEST EBP,EBP
JZ 0x00059a84
TEST EAX,EAX
JNZ 0x00059a84
MOV EBX,dword ptr [ESP + 0xc]
MOVZX EAX,byte ptr [EBX + EBP*0x1 + -0x1]
LEA ECX,[EAX + -0x41]
LEA EDX,[EAX + 0x20]
CMP ECX,0x1a
CMOVC EAX,EDX
MOV EAX,dword ptr [ESP + EAX*0x4 + 0x3c]
TEST EAX,EAX
JZ 0x000599b0
ADD dword ptr [ESP + 0x10],EAX
MOV EDI,EBP
JMP 0x00059930
SUB ECX,EAX
ADD EAX,0x1
MOV dword ptr [ESP + EDX*0x4 + 0x3c],ECX
CMP EAX,EBP
JNZ 0x000598b0
JMP 0x000598d1
MOV EDI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0x20]
ADD EBX,EDI
MOV EDI,dword ptr [ESP + 0x8]
MOV ECX,EAX
CMP EAX,EDI
JNC 0x00059a24
MOV dword ptr [ESP + 0x14],EBP
MOV EBP,dword ptr [ESP + 0x1c]
JMP 0x000599d9
ADD ECX,0x1
CMP ECX,dword ptr [ESP + 0x8]
JNC 0x00059a20
MOVZX EAX,byte ptr [EBP + ECX*0x1]
LEA ESI,[EAX + -0x41]
LEA EDX,[EAX + 0x20]
CMP ESI,0x1a
CMOVC EAX,EDX
MOVZX EDX,byte ptr [EBX + ECX*0x1]
LEA EDI,[EDX + -0x41]
LEA ESI,[EDX + 0x20]
CMP EDI,0x1a
CMOVC EDX,ESI
CMP EDX,EAX
JZ 0x000599d0
MOV EAX,dword ptr [ESP + 0x10]
MOV EBP,dword ptr [ESP + 0x14]
ADD EAX,dword ptr [ESP + 0x24]
ADD EAX,ECX
MOV EDI,EBP
MOV dword ptr [ESP + 0x10],EAX
JMP 0x00059930
MOV EBP,dword ptr [ESP + 0x14]
CMP dword ptr [ESP + 0x28],-0x1
JZ 0x00059cc0
MOV dword ptr [ESP + 0x14],EBP
MOV ECX,dword ptr [ESP + 0x28]
MOV EBP,dword ptr [ESP + 0x1c]
JMP 0x00059a4c
SUB ECX,0x1
CMP ECX,-0x1
JZ 0x00059cc0
MOVZX EAX,byte ptr [EBP + ECX*0x1]
LEA ESI,[EAX + -0x41]
LEA EDX,[EAX + 0x20]
CMP ESI,0x1a
CMOVC EAX,EDX
MOVZX EDX,byte ptr [EBX + ECX*0x1]
LEA EDI,[EDX + -0x41]
LEA ESI,[EDX + 0x20]
CMP EDI,0x1a
CMOVC EDX,ESI
CMP EDX,EAX
JZ 0x00059a40
MOV EBP,dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESP + 0x2c]
ADD dword ptr [ESP + 0x10],EBX
MOV EDI,EBP
JMP 0x00059930
XOR EAX,EAX
MOV EBX,dword ptr [ESP + 0x43c]
XOR EBX,dword ptr GS:[0x14]
JNZ 0x00059cc7
ADD ESP,0x44c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,0x1
SUB EAX,dword ptr [ESP + 0x20]
MOV dword ptr [ESP + 0x10],0x0
MOV dword ptr [ESP + 0x14],0x0
MOV dword ptr [ESP + 0x2c],EAX
MOV dword ptr [ESP + 0x460],ESI
LEA ESI,[ESI]
MOV EBP,dword ptr [ESP + 0x14]
ADD EBP,dword ptr [ESP + 0x460]
SUB ESP,0x4
MOV EAX,EBP
SUB EAX,EDI
PUSH EAX
PUSH 0x0
ADD EDI,dword ptr [ESP + 0x18]
PUSH EDI
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x000670c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00059a84
TEST EBP,EBP
JZ 0x00059a84
MOV EAX,dword ptr [ESP + 0xc]
MOVZX EAX,byte ptr [EAX + EBP*0x1 + -0x1]
LEA ECX,[EAX + -0x41]
LEA EDX,[EAX + 0x20]
CMP ECX,0x1a
CMOVC EAX,EDX
MOV EAX,dword ptr [ESP + EAX*0x4 + 0x3c]
TEST EAX,EAX
JZ 0x00059b50
MOV EBX,dword ptr [ESP + 0x24]
CMP EAX,EBX
JNC 0x00059b3a
MOV EDX,dword ptr [ESP + 0x10]
TEST EDX,EDX
MOV EDX,dword ptr [ESP + 0x460]
SETNZ CL
SUB EDX,EBX
TEST CL,CL
CMOVNZ EAX,EDX
ADD dword ptr [ESP + 0x14],EAX
MOV EDI,EBP
MOV dword ptr [ESP + 0x10],0x0
JMP 0x00059ad0
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x20]
MOV EBX,dword ptr [ESP + 0x14]
CMP EAX,ECX
CMOVNC ECX,EAX
MOV EAX,dword ptr [ESP + 0xc]
ADD EBX,EAX
CMP ECX,dword ptr [ESP + 0x8]
JNC 0x00059bd4
MOV dword ptr [ESP + 0x28],EBP
MOV EBP,dword ptr [ESP + 0x1c]
JMP 0x00059b89
ADD ECX,0x1
CMP ECX,dword ptr [ESP + 0x8]
JZ 0x00059bd0
MOVZX EAX,byte ptr [EBP + ECX*0x1]
LEA ESI,[EAX + -0x41]
LEA EDX,[EAX + 0x20]
CMP ESI,0x1a
CMOVC EAX,EDX
MOVZX EDX,byte ptr [EBX + ECX*0x1]
LEA EDI,[EDX + -0x41]
LEA ESI,[EDX + 0x20]
CMP EDI,0x1a
CMOVC EDX,ESI
CMP EDX,EAX
JZ 0x00059b80
MOV EAX,dword ptr [ESP + 0x14]
MOV EBP,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x10],0x0
ADD EAX,dword ptr [ESP + 0x2c]
ADD EAX,ECX
MOV EDI,EBP
MOV dword ptr [ESP + 0x14],EAX
JMP 0x00059ad0
MOV EBP,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [ESP + 0x20]
MOV EBX,dword ptr [ESP + 0xc]
MOV EDI,dword ptr [ESP + 0x14]
LEA ECX,[EAX + -0x1]
ADD EBX,EDI
CMP dword ptr [ESP + 0x10],EAX
JNC 0x00059c63
MOV dword ptr [ESP + 0x28],EBP
JMP 0x00059c03
LEA EAX,[ECX + -0x1]
CMP dword ptr [ESP + 0x10],ECX
JZ 0x00059c5b
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x1c]
LEA EBP,[ECX + 0x1]
MOVZX EAX,byte ptr [EAX + ECX*0x1]
LEA ESI,[EAX + -0x41]
LEA EDX,[EAX + 0x20]
CMP ESI,0x1a
CMOVC EAX,EDX
MOVZX EDX,byte ptr [EBX + ECX*0x1]
LEA EDI,[EDX + -0x41]
LEA ESI,[EDX + 0x20]
CMP EDI,0x1a
CMOVC EDX,ESI
CMP EDX,EAX
JZ 0x00059bf8
MOV EDI,EBP
MOV EBP,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [ESP + 0x10]
ADD EAX,0x1
CMP EAX,EDI
JA 0x00059cb3
MOV EBX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x460]
MOV EDI,EBP
ADD dword ptr [ESP + 0x14],EBX
SUB EAX,EBX
MOV dword ptr [ESP + 0x10],EAX
JMP 0x00059ad0
MOV EBP,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [ESP + 0x10]
MOV EDI,EAX
JMP 0x00059c34
LEA EAX,[ESI + -0x1]
MOV dword ptr [ESP + 0x38],0x1
MOV dword ptr [ESP + 0x20],EAX
MOV dword ptr [ESP + 0x24],0x1
JMP 0x0005986c
SUB ESP,0x4
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x28]
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x000595b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00059a84
MOV dword ptr [ESP + 0x8],0xffffffff
JMP 0x000598f4
MOV EAX,dword ptr [ESP + 0xc]
ADD EAX,dword ptr [ESP + 0x14]
JMP 0x00059a86
MOV EAX,EBX
JMP 0x00059a86
CALL 0x0007ad20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00059810(int param_1,int param_2,byte *param_3,uint param_4)\n\n{\n  uint *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_454;\n  uint local_44c;\n  int local_448;\n  uint local_43c;\n  uint local_438;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5981b;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_4 < 3) {\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }\n  else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }\n  puVar1 = local_420;\n  do {\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  } while (local_20 != puVar1);\n  if (param_4 == 0) {\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }\n  local_44c = 0;\n  uVar6 = param_4 - local_43c;\n  if (param_4 - local_43c < local_43c) {\n    uVar6 = local_43c;\n  }\nLAB_00059930:\n  do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );\n}\n\n" comment (function_definition "int __regparm3 FUN_00059810(int param_1,int param_2,byte *param_3,uint param_4)\n\n{\n  uint *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_454;\n  uint local_44c;\n  int local_448;\n  uint local_43c;\n  uint local_438;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5981b;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_4 < 3) {\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }\n  else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }\n  puVar1 = local_420;\n  do {\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  } while (local_20 != puVar1);\n  if (param_4 == 0) {\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }\n  local_44c = 0;\n  uVar6 = param_4 - local_43c;\n  if (param_4 - local_43c < local_43c) {\n    uVar6 = local_43c;\n  }\nLAB_00059930:\n  do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00059810(int param_1,int param_2,byte *param_3,uint param_4)" identifier (parameter_list "(int param_1,int param_2,byte *param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_454;\n  uint local_44c;\n  int local_448;\n  uint local_43c;\n  uint local_438;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5981b;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_4 < 3) {\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }\n  else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }\n  puVar1 = local_420;\n  do {\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  } while (local_20 != puVar1);\n  if (param_4 == 0) {\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }\n  local_44c = 0;\n  uVar6 = param_4 - local_43c;\n  if (param_4 - local_43c < local_43c) {\n    uVar6 = local_43c;\n  }\nLAB_00059930:\n  do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_454;" type_identifier identifier ;) (declaration "uint local_44c;" type_identifier identifier ;) (declaration "int local_448;" primitive_type identifier ;) (declaration "uint local_43c;" type_identifier identifier ;) (declaration "uint local_438;" type_identifier identifier ;) (declaration "uint local_424;" type_identifier identifier ;) (declaration "uint local_420 [256];" type_identifier (array_declarator "local_420 [256]" identifier [ number_literal ]) ;) (declaration "uint local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5981b;" (assignment_expression "uStack_14 = 0x5981b" identifier = number_literal) ;) (expression_statement "local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20[0] = *(uint *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (pointer_expression "*(uint *)(in_GS_OFFSET + 0x14)" * (cast_expression "(uint *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_4 < 3) {\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }\n  else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }" if (parenthesized_expression "(param_4 < 3)" ( (binary_expression "param_4 < 3" identifier < number_literal) )) (compound_statement "{\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }" { (expression_statement "local_43c = param_4 - 1;" (assignment_expression "local_43c = param_4 - 1" identifier = (binary_expression "param_4 - 1" identifier - number_literal)) ;) (expression_statement "local_438 = 1;" (assignment_expression "local_438 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }" else (compound_statement "{\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }" { (expression_statement "local_43c = FUN_00059640();" (assignment_expression "local_43c = FUN_00059640()" identifier = (call_expression "FUN_00059640()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_438 = local_424;" (assignment_expression "local_438 = local_424" identifier = identifier) ;) }))) (expression_statement "puVar1 = local_420;" (assignment_expression "puVar1 = local_420" identifier = identifier) ;) (do_statement "do {\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  } while (local_20 != puVar1);" do (compound_statement "{\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  }" { (expression_statement "*puVar1 = param_4;" (assignment_expression "*puVar1 = param_4" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_20 != puVar1)" ( (binary_expression "local_20 != puVar1" identifier != identifier) )) ;) (if_statement "if (param_4 == 0) {\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }" { (expression_statement "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);" (assignment_expression "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c)" identifier = (call_expression "FUN_000595b0(param_3,param_3 + local_438,local_43c)" identifier (argument_list "(param_3,param_3 + local_438,local_43c)" ( identifier , (binary_expression "param_3 + local_438" identifier + identifier) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007ad20();\n      }\n      return local_448;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007ad20();\n      }\n      return local_448;\n    }" { (labeled_statement "LAB_00059a84:\n      local_448 = 0;" statement_identifier : (expression_statement "local_448 = 0;" (assignment_expression "local_448 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007ad20();\n      }" statement_identifier : (if_statement "if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0007ad20();\n      }" if (parenthesized_expression "(local_20[0] != *(uint *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_20[0]" identifier [ number_literal ]) != (pointer_expression "*(uint *)(in_GS_OFFSET + 0x14)" * (cast_expression "(uint *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_0007ad20();\n      }" { comment (expression_statement "FUN_0007ad20();" (call_expression "FUN_0007ad20()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return local_448;" return identifier ;) })) (expression_statement "local_454 = 0xffffffff;" (assignment_expression "local_454 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" else (compound_statement "{\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" { (expression_statement "local_454 = param_4 - 1;" (assignment_expression "local_454 = param_4 - 1" identifier = (binary_expression "param_4 - 1" identifier - number_literal)) ;) (expression_statement "pbVar2 = param_3;" (assignment_expression "pbVar2 = param_3" identifier = identifier) ;) (do_statement "do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);" do (compound_statement "{\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    }" { (while_statement "while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }" while (parenthesized_expression "(uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41)" ( (comma_expression "uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41" (assignment_expression "uVar6 = (uint)*pbVar2" identifier = (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) , (binary_expression "0x19 < uVar6 - 0x41" number_literal < (binary_expression "uVar6 - 0x41" identifier - number_literal))) )) (compound_statement "{\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }" { (expression_statement "iVar3 = local_454 - (int)pbVar2;" (assignment_expression "iVar3 = local_454 - (int)pbVar2" identifier = (binary_expression "local_454 - (int)pbVar2" identifier - (cast_expression "(int)pbVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "local_420[uVar6] = (uint)(param_3 + iVar3);" (assignment_expression "local_420[uVar6] = (uint)(param_3 + iVar3)" (subscript_expression "local_420[uVar6]" identifier [ identifier ]) = (call_expression "(uint)(param_3 + iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + iVar3)" ( (binary_expression "param_3 + iVar3" identifier + identifier) )))) ;) (if_statement "if (pbVar2 == param_3 + param_4) goto LAB_000598d1;" if (parenthesized_expression "(pbVar2 == param_3 + param_4)" ( (binary_expression "pbVar2 == param_3 + param_4" identifier == (binary_expression "param_3 + param_4" identifier + identifier)) )) (goto_statement "goto LAB_000598d1;" goto statement_identifier ;)) })) (expression_statement "iVar3 = local_454 - (int)pbVar2;" (assignment_expression "iVar3 = local_454 - (int)pbVar2" identifier = (binary_expression "local_454 - (int)pbVar2" identifier - (cast_expression "(int)pbVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);" (assignment_expression "local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3)" (subscript_expression "local_420[uVar6 + 0x20]" identifier [ (binary_expression "uVar6 + 0x20" identifier + number_literal) ]) = (call_expression "(uint)(param_3 + iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + iVar3)" ( (binary_expression "param_3 + iVar3" identifier + identifier) )))) ;) }) while (parenthesized_expression "(pbVar2 != param_3 + param_4)" ( (binary_expression "pbVar2 != param_3 + param_4" identifier != (binary_expression "param_3 + param_4" identifier + identifier)) )) ;) (labeled_statement "LAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);" statement_identifier : (expression_statement "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);" (assignment_expression "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c)" identifier = (call_expression "FUN_000595b0(param_3,param_3 + local_438,local_43c)" identifier (argument_list "(param_3,param_3 + local_438,local_43c)" ( identifier , (binary_expression "param_3 + local_438" identifier + identifier) , identifier )))) ;)) (if_statement "if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }" { (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) (expression_statement "local_448 = 0;" (assignment_expression "local_448 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );" statement_identifier : (do_statement "do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );" do (compound_statement "{\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      }" { (expression_statement "iVar9 = local_448 + param_4;" (assignment_expression "iVar9 = local_448 + param_4" identifier = (binary_expression "local_448 + param_4" identifier + identifier)) ;) (expression_statement "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);" (assignment_expression "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" identifier = (call_expression "FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" identifier (argument_list "(param_2 + param_1,0,iVar9 - param_2)" ( (binary_expression "param_2 + param_1" identifier + identifier) , number_literal , (binary_expression "iVar9 - param_2" identifier - identifier) )))) ;) (if_statement "if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;" if (parenthesized_expression "((iVar3 != 0) || (iVar9 == 0))" ( (binary_expression "(iVar3 != 0) || (iVar9 == 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_00059a84;" goto statement_identifier ;)) (expression_statement "uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);" (assignment_expression "uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9)" identifier = (binary_expression "(uint)*(byte *)(param_1 + -1 + iVar9)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + -1 + iVar9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + iVar9)" ( (binary_expression "param_1 + -1 + iVar9" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (if_statement "if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }" if (parenthesized_expression "(uVar6 - 0x41 < 0x1a)" ( (binary_expression "uVar6 - 0x41 < 0x1a" (binary_expression "uVar6 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar6 = uVar6 + 0x20;\n        }" { (expression_statement "uVar6 = uVar6 + 0x20;" (assignment_expression "uVar6 = uVar6 + 0x20" identifier = (binary_expression "uVar6 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar6 = local_420[uVar6];" (assignment_expression "uVar6 = local_420[uVar6]" identifier = (subscript_expression "local_420[uVar6]" identifier [ identifier ])) ;) (expression_statement "param_2 = iVar9;" (assignment_expression "param_2 = iVar9" identifier = identifier) ;) (if_statement "if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }" { (expression_statement "uVar6 = local_43c;" (assignment_expression "uVar6 = local_43c" identifier = identifier) ;) (if_statement "if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }" if (parenthesized_expression "(local_43c <= local_44c)" ( (binary_expression "local_43c <= local_44c" identifier <= identifier) )) (compound_statement "{\n            uVar6 = local_44c;\n          }" { (expression_statement "uVar6 = local_44c;" (assignment_expression "uVar6 = local_44c" identifier = identifier) ;) })) (if_statement "if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }" if (parenthesized_expression "(uVar6 < local_454)" ( (binary_expression "uVar6 < local_454" identifier < identifier) )) (compound_statement "{\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }" { (do_statement "do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);" do (compound_statement "{\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            }" { (expression_statement "uVar4 = (uint)param_3[uVar6];" (assignment_expression "uVar4 = (uint)param_3[uVar6]" identifier = (cast_expression "(uint)param_3[uVar6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_3[uVar6]" identifier [ identifier ]))) ;) (if_statement "if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }" if (parenthesized_expression "(uVar4 - 0x41 < 0x1a)" ( (binary_expression "uVar4 - 0x41 < 0x1a" (binary_expression "uVar4 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar4 = uVar4 + 0x20;\n              }" { (expression_statement "uVar4 = uVar4 + 0x20;" (assignment_expression "uVar4 = uVar4 + 0x20" identifier = (binary_expression "uVar4 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);" (assignment_expression "uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6)" identifier = (binary_expression "(uint)*(byte *)(local_448 + param_1 + uVar6)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(local_448 + param_1 + uVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_448 + param_1 + uVar6)" ( (binary_expression "local_448 + param_1 + uVar6" (binary_expression "local_448 + param_1" identifier + identifier) + identifier) ))))) ;) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }" if (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" ( (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar5 = uVar5 + 0x20;\n              }" { (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" identifier = (binary_expression "uVar5 + 0x20" identifier + number_literal)) ;) })) (if_statement "if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }" if (parenthesized_expression "(uVar5 != uVar4)" ( (binary_expression "uVar5 != uVar4" identifier != identifier) )) (compound_statement "{\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }" { (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) (expression_statement "local_448 = local_448 + (1 - local_43c) + uVar6;" (assignment_expression "local_448 = local_448 + (1 - local_43c) + uVar6" identifier = (binary_expression "local_448 + (1 - local_43c) + uVar6" (binary_expression "local_448 + (1 - local_43c)" identifier + (parenthesized_expression "(1 - local_43c)" ( (binary_expression "1 - local_43c" number_literal - identifier) ))) + identifier)) ;) (goto_statement "goto LAB_00059ad0;" goto statement_identifier ;) })) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 != local_454)" ( (binary_expression "uVar6 != local_454" identifier != identifier) )) ;) })) (expression_statement "uVar4 = local_43c;" (assignment_expression "uVar4 = local_43c" identifier = identifier) ;) (expression_statement "uVar6 = local_43c;" (assignment_expression "uVar6 = local_43c" identifier = identifier) ;) (if_statement "if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }" if (parenthesized_expression "(local_44c < local_43c)" ( (binary_expression "local_44c < local_43c" identifier < identifier) )) (compound_statement "{\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }" { (do_statement "do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));" do (compound_statement "{\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            }" { (expression_statement "uVar7 = uVar6 - 1;" (assignment_expression "uVar7 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "uVar5 = (uint)param_3[uVar7];" (assignment_expression "uVar5 = (uint)param_3[uVar7]" identifier = (cast_expression "(uint)param_3[uVar7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_3[uVar7]" identifier [ identifier ]))) ;) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }" if (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" ( (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar5 = uVar5 + 0x20;\n              }" { (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" identifier = (binary_expression "uVar5 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);" (assignment_expression "uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7)" identifier = (binary_expression "(uint)*(byte *)(param_1 + local_448 + uVar7)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + local_448 + uVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + local_448 + uVar7)" ( (binary_expression "param_1 + local_448 + uVar7" (binary_expression "param_1 + local_448" identifier + identifier) + identifier) ))))) ;) (if_statement "if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }" if (parenthesized_expression "(uVar8 - 0x41 < 0x1a)" ( (binary_expression "uVar8 - 0x41 < 0x1a" (binary_expression "uVar8 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar8 = uVar8 + 0x20;\n              }" { (expression_statement "uVar8 = uVar8 + 0x20;" (assignment_expression "uVar8 = uVar8 + 0x20" identifier = (binary_expression "uVar8 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar4 = uVar6;" (assignment_expression "uVar4 = uVar6" identifier = identifier) ;) }) while (parenthesized_expression "((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7))" ( (binary_expression "(uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7)" (parenthesized_expression "(uVar8 == uVar5)" ( (binary_expression "uVar8 == uVar5" identifier == identifier) )) && (parenthesized_expression "(uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7)" ( (comma_expression "uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7" (assignment_expression "uVar4 = local_44c" identifier = identifier) , (comma_expression "uVar6 = uVar7, local_44c != uVar7" (assignment_expression "uVar6 = uVar7" identifier = identifier) , (binary_expression "local_44c != uVar7" identifier != identifier))) ))) )) ;) })) (if_statement "if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }" if (parenthesized_expression "(uVar4 < local_44c + 1)" ( (binary_expression "uVar4 < local_44c + 1" identifier < (binary_expression "local_44c + 1" identifier + number_literal)) )) (compound_statement "{\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }" { (expression_statement "local_448 = param_1 + local_448;" (assignment_expression "local_448 = param_1 + local_448" identifier = (binary_expression "param_1 + local_448" identifier + identifier)) ;) (goto_statement "goto LAB_00059a86;" goto statement_identifier ;) })) (expression_statement "local_448 = local_448 + local_438;" (assignment_expression "local_448 = local_448 + local_438" identifier = (binary_expression "local_448 + local_438" identifier + identifier)) ;) (expression_statement "local_44c = param_4 - local_438;" (assignment_expression "local_44c = param_4 - local_438" identifier = (binary_expression "param_4 - local_438" identifier - identifier)) ;) }) (else_clause "else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }" else (compound_statement "{\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }" { (if_statement "if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }" if (parenthesized_expression "((uVar6 < local_438) && (local_44c != 0))" ( (binary_expression "(uVar6 < local_438) && (local_44c != 0)" (parenthesized_expression "(uVar6 < local_438)" ( (binary_expression "uVar6 < local_438" identifier < identifier) )) && (parenthesized_expression "(local_44c != 0)" ( (binary_expression "local_44c != 0" identifier != number_literal) ))) )) (compound_statement "{\n            uVar6 = param_4 - local_438;\n          }" { (expression_statement "uVar6 = param_4 - local_438;" (assignment_expression "uVar6 = param_4 - local_438" identifier = (binary_expression "param_4 - local_438" identifier - identifier)) ;) })) (expression_statement "local_448 = local_448 + uVar6;" (assignment_expression "local_448 = local_448 + uVar6" identifier = (binary_expression "local_448 + uVar6" identifier + identifier)) ;) (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;)) })) }))) (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) (expression_statement "uVar6 = param_4 - local_43c;" (assignment_expression "uVar6 = param_4 - local_43c" identifier = (binary_expression "param_4 - local_43c" identifier - identifier)) ;) (if_statement "if (param_4 - local_43c < local_43c) {\n    uVar6 = local_43c;\n  }" if (parenthesized_expression "(param_4 - local_43c < local_43c)" ( (binary_expression "param_4 - local_43c < local_43c" (binary_expression "param_4 - local_43c" identifier - identifier) < identifier) )) (compound_statement "{\n    uVar6 = local_43c;\n  }" { (expression_statement "uVar6 = local_43c;" (assignment_expression "uVar6 = local_43c" identifier = identifier) ;) })) (labeled_statement "LAB_00059930:\n  do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );" statement_identifier : (do_statement "do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );" do (compound_statement "{\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  }" { (expression_statement "iVar9 = local_44c + param_4;" (assignment_expression "iVar9 = local_44c + param_4" identifier = (binary_expression "local_44c + param_4" identifier + identifier)) ;) (expression_statement "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);" (assignment_expression "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" identifier = (call_expression "FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" identifier (argument_list "(param_2 + param_1,0,iVar9 - param_2)" ( (binary_expression "param_2 + param_1" identifier + identifier) , number_literal , (binary_expression "iVar9 - param_2" identifier - identifier) )))) ;) (if_statement "if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;" if (parenthesized_expression "((iVar9 == 0) || (iVar3 != 0))" ( (binary_expression "(iVar9 == 0) || (iVar3 != 0)" (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) ))) )) (goto_statement "goto LAB_00059a84;" goto statement_identifier ;)) (expression_statement "uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);" (assignment_expression "uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9)" identifier = (binary_expression "(uint)*(byte *)(param_1 + -1 + iVar9)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + -1 + iVar9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + iVar9)" ( (binary_expression "param_1 + -1 + iVar9" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (if_statement "if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }" if (parenthesized_expression "(uVar4 - 0x41 < 0x1a)" ( (binary_expression "uVar4 - 0x41 < 0x1a" (binary_expression "uVar4 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n      uVar4 = uVar4 + 0x20;\n    }" { (expression_statement "uVar4 = uVar4 + 0x20;" (assignment_expression "uVar4 = uVar4 + 0x20" identifier = (binary_expression "uVar4 + 0x20" identifier + number_literal)) ;) })) (expression_statement "param_2 = iVar9;" (assignment_expression "param_2 = iVar9" identifier = identifier) ;) (if_statement "if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }" if (parenthesized_expression "(local_420[uVar4] == 0)" ( (binary_expression "local_420[uVar4] == 0" (subscript_expression "local_420[uVar4]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }" { (expression_statement "local_448 = param_1 + local_44c;" (assignment_expression "local_448 = param_1 + local_44c" identifier = (binary_expression "param_1 + local_44c" identifier + identifier)) ;) (for_statement "for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }" for ( (assignment_expression "uVar4 = local_43c" identifier = identifier) ; (comma_expression "uVar5 = local_43c, uVar4 < local_454" (assignment_expression "uVar5 = local_43c" identifier = identifier) , (binary_expression "uVar4 < local_454" identifier < identifier)) ; (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ) (compound_statement "{\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }" { (expression_statement "uVar5 = (uint)param_3[uVar4];" (assignment_expression "uVar5 = (uint)param_3[uVar4]" identifier = (cast_expression "(uint)param_3[uVar4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_3[uVar4]" identifier [ identifier ]))) ;) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }" if (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" ( (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar5 = uVar5 + 0x20;\n        }" { (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" identifier = (binary_expression "uVar5 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar7 = (uint)*(byte *)(local_448 + uVar4);" (assignment_expression "uVar7 = (uint)*(byte *)(local_448 + uVar4)" identifier = (binary_expression "(uint)*(byte *)(local_448 + uVar4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(local_448 + uVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_448 + uVar4)" ( (binary_expression "local_448 + uVar4" identifier + identifier) ))))) ;) (if_statement "if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }" if (parenthesized_expression "(uVar7 - 0x41 < 0x1a)" ( (binary_expression "uVar7 - 0x41 < 0x1a" (binary_expression "uVar7 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar7 = uVar7 + 0x20;\n        }" { (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) })) (if_statement "if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }" if (parenthesized_expression "(uVar7 != uVar5)" ( (binary_expression "uVar7 != uVar5" identifier != identifier) )) (compound_statement "{\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }" { (expression_statement "local_44c = local_44c + (1 - local_43c) + uVar4;" (assignment_expression "local_44c = local_44c + (1 - local_43c) + uVar4" identifier = (binary_expression "local_44c + (1 - local_43c) + uVar4" (binary_expression "local_44c + (1 - local_43c)" identifier + (parenthesized_expression "(1 - local_43c)" ( (binary_expression "1 - local_43c" number_literal - identifier) ))) + identifier)) ;) (goto_statement "goto LAB_00059930;" goto statement_identifier ;) })) })) (do_statement "do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);" do (compound_statement "{\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      }" { (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (if_statement "if (uVar5 == 0xffffffff) goto LAB_00059a86;" if (parenthesized_expression "(uVar5 == 0xffffffff)" ( (binary_expression "uVar5 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_00059a86;" goto statement_identifier ;)) (expression_statement "uVar4 = (uint)param_3[uVar5];" (assignment_expression "uVar4 = (uint)param_3[uVar5]" identifier = (cast_expression "(uint)param_3[uVar5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_3[uVar5]" identifier [ identifier ]))) ;) (if_statement "if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }" if (parenthesized_expression "(uVar4 - 0x41 < 0x1a)" ( (binary_expression "uVar4 - 0x41 < 0x1a" (binary_expression "uVar4 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar4 = uVar4 + 0x20;\n        }" { (expression_statement "uVar4 = uVar4 + 0x20;" (assignment_expression "uVar4 = uVar4 + 0x20" identifier = (binary_expression "uVar4 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar7 = (uint)*(byte *)(local_448 + uVar5);" (assignment_expression "uVar7 = (uint)*(byte *)(local_448 + uVar5)" identifier = (binary_expression "(uint)*(byte *)(local_448 + uVar5)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(local_448 + uVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_448 + uVar5)" ( (binary_expression "local_448 + uVar5" identifier + identifier) ))))) ;) (if_statement "if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }" if (parenthesized_expression "(uVar7 - 0x41 < 0x1a)" ( (binary_expression "uVar7 - 0x41 < 0x1a" (binary_expression "uVar7 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar7 = uVar7 + 0x20;\n        }" { (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) })) }) while (parenthesized_expression "(uVar7 == uVar4)" ( (binary_expression "uVar7 == uVar4" identifier == identifier) )) ;) (expression_statement "local_44c = local_44c + uVar6 + 1;" (assignment_expression "local_44c = local_44c + uVar6 + 1" identifier = (binary_expression "local_44c + uVar6 + 1" (binary_expression "local_44c + uVar6" identifier + identifier) + number_literal)) ;) }) (else_clause "else {\n      local_44c = local_44c + local_420[uVar4];\n    }" else (compound_statement "{\n      local_44c = local_44c + local_420[uVar4];\n    }" { (expression_statement "local_44c = local_44c + local_420[uVar4];" (assignment_expression "local_44c = local_44c + local_420[uVar4]" identifier = (binary_expression "local_44c + local_420[uVar4]" identifier + (subscript_expression "local_420[uVar4]" identifier [ identifier ]))) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3\ntwo_way_long_needle(uchar *haystack,size_t haystack_len,uchar *needle,size_t needle_len)\n\n{\n  size_t *psVar1;\n  byte *pbVar2;\n  int iVar3;\n  void *pvVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  uchar *puVar10;\n  size_t sVar11;\n  size_t sVar12;\n  int in_GS_OFFSET;\n  uint local_454;\n  uint local_44c;\n  int local_448;\n  uint local_43c;\n  size_t period;\n  size_t shift_table [256];\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5981b;\n  local_20[0] = *(size_t *)(in_GS_OFFSET + 0x14);\n  if (needle_len < 3) {\n    local_43c = needle_len - 1;\n    period = 1;\n  }\n  else {\n    local_43c = critical_factorization(needle,needle_len,&period);\n  }\n  sVar11 = period;\n  psVar1 = shift_table;\n  do {\n    *psVar1 = needle_len;\n    psVar1 = psVar1 + 1;\n  } while (local_20 != psVar1);\n  if (needle_len == 0) {\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      puVar10 = (uchar *)0x0;\nLAB_00059a86:\n      if (local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return (char *)puVar10;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = needle_len - 1;\n    pbVar2 = needle;\n    do {\n      while (uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        shift_table[uVar7] = (size_t)(needle + iVar3);\n        if (pbVar2 == needle + needle_len) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      shift_table[uVar7 + 0x20] = (size_t)(needle + iVar3);\n    } while (pbVar2 != needle + needle_len);\nLAB_000598d1:\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        sVar12 = local_448 + needle_len;\n        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);\n        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;\n        uVar7 = (uint)haystack[sVar12 - 1];\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        uVar7 = shift_table[uVar7];\n        haystack_len = sVar12;\n        if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }\n  local_44c = 0;\n  uVar7 = needle_len - local_43c;\n  if (needle_len - local_43c < local_43c) {\n    uVar7 = local_43c;\n  }\n  period = uVar7 + 1;\nLAB_00059930:\n  do {\n    sVar11 = local_44c + needle_len;\n    pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar11 - haystack_len);\n    if ((sVar11 == 0) || (pvVar4 != (void *)0x0)) goto LAB_00059a84;\n    uVar5 = (uint)haystack[sVar11 - 1];\n    if (uVar5 - 0x41 < 0x1a) {\n      uVar5 = uVar5 + 0x20;\n    }\n    haystack_len = sVar11;\n    if (shift_table[uVar5] == 0) {\n      puVar10 = haystack + local_44c;\n      for (uVar5 = local_43c; uVar6 = local_43c, uVar5 < local_454; uVar5 = uVar5 + 1) {\n        uVar6 = (uint)needle[uVar5];\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar5];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n        if (uVar8 != uVar6) {\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar6 = uVar6 - 1;\n        if (uVar6 == 0xffffffff) goto LAB_00059a86;\n        uVar5 = (uint)needle[uVar6];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar6];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n      } while (uVar8 == uVar5);\n      local_44c = local_44c + uVar7 + 1;\n    }\n    else {\n      local_44c = local_44c + shift_table[uVar5];\n    }\n  } while( true );\n}\n\n" comment (function_definition "char * __regparm3\ntwo_way_long_needle(uchar *haystack,size_t haystack_len,uchar *needle,size_t needle_len)\n\n{\n  size_t *psVar1;\n  byte *pbVar2;\n  int iVar3;\n  void *pvVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  uchar *puVar10;\n  size_t sVar11;\n  size_t sVar12;\n  int in_GS_OFFSET;\n  uint local_454;\n  uint local_44c;\n  int local_448;\n  uint local_43c;\n  size_t period;\n  size_t shift_table [256];\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5981b;\n  local_20[0] = *(size_t *)(in_GS_OFFSET + 0x14);\n  if (needle_len < 3) {\n    local_43c = needle_len - 1;\n    period = 1;\n  }\n  else {\n    local_43c = critical_factorization(needle,needle_len,&period);\n  }\n  sVar11 = period;\n  psVar1 = shift_table;\n  do {\n    *psVar1 = needle_len;\n    psVar1 = psVar1 + 1;\n  } while (local_20 != psVar1);\n  if (needle_len == 0) {\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      puVar10 = (uchar *)0x0;\nLAB_00059a86:\n      if (local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return (char *)puVar10;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = needle_len - 1;\n    pbVar2 = needle;\n    do {\n      while (uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        shift_table[uVar7] = (size_t)(needle + iVar3);\n        if (pbVar2 == needle + needle_len) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      shift_table[uVar7 + 0x20] = (size_t)(needle + iVar3);\n    } while (pbVar2 != needle + needle_len);\nLAB_000598d1:\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        sVar12 = local_448 + needle_len;\n        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);\n        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;\n        uVar7 = (uint)haystack[sVar12 - 1];\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        uVar7 = shift_table[uVar7];\n        haystack_len = sVar12;\n        if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }\n  local_44c = 0;\n  uVar7 = needle_len - local_43c;\n  if (needle_len - local_43c < local_43c) {\n    uVar7 = local_43c;\n  }\n  period = uVar7 + 1;\nLAB_00059930:\n  do {\n    sVar11 = local_44c + needle_len;\n    pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar11 - haystack_len);\n    if ((sVar11 == 0) || (pvVar4 != (void *)0x0)) goto LAB_00059a84;\n    uVar5 = (uint)haystack[sVar11 - 1];\n    if (uVar5 - 0x41 < 0x1a) {\n      uVar5 = uVar5 + 0x20;\n    }\n    haystack_len = sVar11;\n    if (shift_table[uVar5] == 0) {\n      puVar10 = haystack + local_44c;\n      for (uVar5 = local_43c; uVar6 = local_43c, uVar5 < local_454; uVar5 = uVar5 + 1) {\n        uVar6 = (uint)needle[uVar5];\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar5];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n        if (uVar8 != uVar6) {\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar6 = uVar6 - 1;\n        if (uVar6 == 0xffffffff) goto LAB_00059a86;\n        uVar5 = (uint)needle[uVar6];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar6];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n      } while (uVar8 == uVar5);\n      local_44c = local_44c + uVar7 + 1;\n    }\n    else {\n      local_44c = local_44c + shift_table[uVar5];\n    }\n  } while( true );\n}" primitive_type (pointer_declarator "* __regparm3\ntwo_way_long_needle(uchar *haystack,size_t haystack_len,uchar *needle,size_t needle_len)" * (ERROR "__regparm3" identifier) (function_declarator "two_way_long_needle(uchar *haystack,size_t haystack_len,uchar *needle,size_t needle_len)" identifier (parameter_list "(uchar *haystack,size_t haystack_len,uchar *needle,size_t needle_len)" ( (parameter_declaration "uchar *haystack" type_identifier (pointer_declarator "*haystack" * identifier)) , (parameter_declaration "size_t haystack_len" primitive_type identifier) , (parameter_declaration "uchar *needle" type_identifier (pointer_declarator "*needle" * identifier)) , (parameter_declaration "size_t needle_len" primitive_type identifier) )))) (compound_statement "{\n  size_t *psVar1;\n  byte *pbVar2;\n  int iVar3;\n  void *pvVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  uchar *puVar10;\n  size_t sVar11;\n  size_t sVar12;\n  int in_GS_OFFSET;\n  uint local_454;\n  uint local_44c;\n  int local_448;\n  uint local_43c;\n  size_t period;\n  size_t shift_table [256];\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5981b;\n  local_20[0] = *(size_t *)(in_GS_OFFSET + 0x14);\n  if (needle_len < 3) {\n    local_43c = needle_len - 1;\n    period = 1;\n  }\n  else {\n    local_43c = critical_factorization(needle,needle_len,&period);\n  }\n  sVar11 = period;\n  psVar1 = shift_table;\n  do {\n    *psVar1 = needle_len;\n    psVar1 = psVar1 + 1;\n  } while (local_20 != psVar1);\n  if (needle_len == 0) {\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      puVar10 = (uchar *)0x0;\nLAB_00059a86:\n      if (local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return (char *)puVar10;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = needle_len - 1;\n    pbVar2 = needle;\n    do {\n      while (uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        shift_table[uVar7] = (size_t)(needle + iVar3);\n        if (pbVar2 == needle + needle_len) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      shift_table[uVar7 + 0x20] = (size_t)(needle + iVar3);\n    } while (pbVar2 != needle + needle_len);\nLAB_000598d1:\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        sVar12 = local_448 + needle_len;\n        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);\n        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;\n        uVar7 = (uint)haystack[sVar12 - 1];\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        uVar7 = shift_table[uVar7];\n        haystack_len = sVar12;\n        if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }\n  local_44c = 0;\n  uVar7 = needle_len - local_43c;\n  if (needle_len - local_43c < local_43c) {\n    uVar7 = local_43c;\n  }\n  period = uVar7 + 1;\nLAB_00059930:\n  do {\n    sVar11 = local_44c + needle_len;\n    pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar11 - haystack_len);\n    if ((sVar11 == 0) || (pvVar4 != (void *)0x0)) goto LAB_00059a84;\n    uVar5 = (uint)haystack[sVar11 - 1];\n    if (uVar5 - 0x41 < 0x1a) {\n      uVar5 = uVar5 + 0x20;\n    }\n    haystack_len = sVar11;\n    if (shift_table[uVar5] == 0) {\n      puVar10 = haystack + local_44c;\n      for (uVar5 = local_43c; uVar6 = local_43c, uVar5 < local_454; uVar5 = uVar5 + 1) {\n        uVar6 = (uint)needle[uVar5];\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar5];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n        if (uVar8 != uVar6) {\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar6 = uVar6 - 1;\n        if (uVar6 == 0xffffffff) goto LAB_00059a86;\n        uVar5 = (uint)needle[uVar6];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar6];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n      } while (uVar8 == uVar5);\n      local_44c = local_44c + uVar7 + 1;\n    }\n    else {\n      local_44c = local_44c + shift_table[uVar5];\n    }\n  } while( true );\n}" { (declaration "size_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uchar *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "size_t sVar11;" primitive_type identifier ;) (declaration "size_t sVar12;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_454;" type_identifier identifier ;) (declaration "uint local_44c;" type_identifier identifier ;) (declaration "int local_448;" primitive_type identifier ;) (declaration "uint local_43c;" type_identifier identifier ;) (declaration "size_t period;" primitive_type identifier ;) (declaration "size_t shift_table [256];" primitive_type (array_declarator "shift_table [256]" identifier [ number_literal ]) ;) (declaration "size_t local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5981b;" (assignment_expression "uStack_14 = 0x5981b" identifier = number_literal) ;) (expression_statement "local_20[0] = *(size_t *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20[0] = *(size_t *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (pointer_expression "*(size_t *)(in_GS_OFFSET + 0x14)" * (cast_expression "(size_t *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (needle_len < 3) {\n    local_43c = needle_len - 1;\n    period = 1;\n  }\n  else {\n    local_43c = critical_factorization(needle,needle_len,&period);\n  }" if (parenthesized_expression "(needle_len < 3)" ( (binary_expression "needle_len < 3" identifier < number_literal) )) (compound_statement "{\n    local_43c = needle_len - 1;\n    period = 1;\n  }" { (expression_statement "local_43c = needle_len - 1;" (assignment_expression "local_43c = needle_len - 1" identifier = (binary_expression "needle_len - 1" identifier - number_literal)) ;) (expression_statement "period = 1;" (assignment_expression "period = 1" identifier = number_literal) ;) }) (else_clause "else {\n    local_43c = critical_factorization(needle,needle_len,&period);\n  }" else (compound_statement "{\n    local_43c = critical_factorization(needle,needle_len,&period);\n  }" { (expression_statement "local_43c = critical_factorization(needle,needle_len,&period);" (assignment_expression "local_43c = critical_factorization(needle,needle_len,&period)" identifier = (call_expression "critical_factorization(needle,needle_len,&period)" identifier (argument_list "(needle,needle_len,&period)" ( identifier , identifier , (pointer_expression "&period" & identifier) )))) ;) }))) (expression_statement "sVar11 = period;" (assignment_expression "sVar11 = period" identifier = identifier) ;) (expression_statement "psVar1 = shift_table;" (assignment_expression "psVar1 = shift_table" identifier = identifier) ;) (do_statement "do {\n    *psVar1 = needle_len;\n    psVar1 = psVar1 + 1;\n  } while (local_20 != psVar1);" do (compound_statement "{\n    *psVar1 = needle_len;\n    psVar1 = psVar1 + 1;\n  }" { (expression_statement "*psVar1 = needle_len;" (assignment_expression "*psVar1 = needle_len" (pointer_expression "*psVar1" * identifier) = identifier) ;) (expression_statement "psVar1 = psVar1 + 1;" (assignment_expression "psVar1 = psVar1 + 1" identifier = (binary_expression "psVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_20 != psVar1)" ( (binary_expression "local_20 != psVar1" identifier != identifier) )) ;) (if_statement "if (needle_len == 0) {\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      puVar10 = (uchar *)0x0;\nLAB_00059a86:\n      if (local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return (char *)puVar10;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = needle_len - 1;\n    pbVar2 = needle;\n    do {\n      while (uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        shift_table[uVar7] = (size_t)(needle + iVar3);\n        if (pbVar2 == needle + needle_len) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      shift_table[uVar7 + 0x20] = (size_t)(needle + iVar3);\n    } while (pbVar2 != needle + needle_len);\nLAB_000598d1:\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        sVar12 = local_448 + needle_len;\n        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);\n        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;\n        uVar7 = (uint)haystack[sVar12 - 1];\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        uVar7 = shift_table[uVar7];\n        haystack_len = sVar12;\n        if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" if (parenthesized_expression "(needle_len == 0)" ( (binary_expression "needle_len == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      puVar10 = (uchar *)0x0;\nLAB_00059a86:\n      if (local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return (char *)puVar10;\n    }\n    local_454 = 0xffffffff;\n  }" { (expression_statement "iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);" (assignment_expression "iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c)" identifier = (call_expression "c_strncasecmp((char *)needle,(char *)(needle + period),local_43c)" identifier (argument_list "((char *)needle,(char *)(needle + period),local_43c)" ( (cast_expression "(char *)needle" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)(needle + period)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(needle + period)" ( (binary_expression "needle + period" identifier + identifier) ))) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\nLAB_00059a84:\n      puVar10 = (uchar *)0x0;\nLAB_00059a86:\n      if (local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return (char *)puVar10;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00059a84:\n      puVar10 = (uchar *)0x0;\nLAB_00059a86:\n      if (local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      return (char *)puVar10;\n    }" { (labeled_statement "LAB_00059a84:\n      puVar10 = (uchar *)0x0;" statement_identifier : (expression_statement "puVar10 = (uchar *)0x0;" (assignment_expression "puVar10 = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (labeled_statement "LAB_00059a86:\n      if (local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }" statement_identifier : (if_statement "if (local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }" if (parenthesized_expression "(local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_20[0]" identifier [ number_literal ]) != (pointer_expression "*(size_t *)(in_GS_OFFSET + 0x14)" * (cast_expression "(size_t *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return (char *)puVar10;" return (cast_expression "(char *)puVar10" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "local_454 = 0xffffffff;" (assignment_expression "local_454 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    local_454 = needle_len - 1;\n    pbVar2 = needle;\n    do {\n      while (uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        shift_table[uVar7] = (size_t)(needle + iVar3);\n        if (pbVar2 == needle + needle_len) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      shift_table[uVar7 + 0x20] = (size_t)(needle + iVar3);\n    } while (pbVar2 != needle + needle_len);\nLAB_000598d1:\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        sVar12 = local_448 + needle_len;\n        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);\n        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;\n        uVar7 = (uint)haystack[sVar12 - 1];\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        uVar7 = shift_table[uVar7];\n        haystack_len = sVar12;\n        if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" else (compound_statement "{\n    local_454 = needle_len - 1;\n    pbVar2 = needle;\n    do {\n      while (uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        shift_table[uVar7] = (size_t)(needle + iVar3);\n        if (pbVar2 == needle + needle_len) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      shift_table[uVar7 + 0x20] = (size_t)(needle + iVar3);\n    } while (pbVar2 != needle + needle_len);\nLAB_000598d1:\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        sVar12 = local_448 + needle_len;\n        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);\n        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;\n        uVar7 = (uint)haystack[sVar12 - 1];\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        uVar7 = shift_table[uVar7];\n        haystack_len = sVar12;\n        if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" { (expression_statement "local_454 = needle_len - 1;" (assignment_expression "local_454 = needle_len - 1" identifier = (binary_expression "needle_len - 1" identifier - number_literal)) ;) (expression_statement "pbVar2 = needle;" (assignment_expression "pbVar2 = needle" identifier = identifier) ;) (do_statement "do {\n      while (uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        shift_table[uVar7] = (size_t)(needle + iVar3);\n        if (pbVar2 == needle + needle_len) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      shift_table[uVar7 + 0x20] = (size_t)(needle + iVar3);\n    } while (pbVar2 != needle + needle_len);" do (compound_statement "{\n      while (uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        shift_table[uVar7] = (size_t)(needle + iVar3);\n        if (pbVar2 == needle + needle_len) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      shift_table[uVar7 + 0x20] = (size_t)(needle + iVar3);\n    }" { (while_statement "while (uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        shift_table[uVar7] = (size_t)(needle + iVar3);\n        if (pbVar2 == needle + needle_len) goto LAB_000598d1;\n      }" while (parenthesized_expression "(uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41)" ( (comma_expression "uVar7 = (uint)*pbVar2, 0x19 < uVar7 - 0x41" (assignment_expression "uVar7 = (uint)*pbVar2" identifier = (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) , (binary_expression "0x19 < uVar7 - 0x41" number_literal < (binary_expression "uVar7 - 0x41" identifier - number_literal))) )) (compound_statement "{\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        shift_table[uVar7] = (size_t)(needle + iVar3);\n        if (pbVar2 == needle + needle_len) goto LAB_000598d1;\n      }" { (expression_statement "iVar3 = local_454 - (int)pbVar2;" (assignment_expression "iVar3 = local_454 - (int)pbVar2" identifier = (binary_expression "local_454 - (int)pbVar2" identifier - (cast_expression "(int)pbVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "shift_table[uVar7] = (size_t)(needle + iVar3);" (assignment_expression "shift_table[uVar7] = (size_t)(needle + iVar3)" (subscript_expression "shift_table[uVar7]" identifier [ identifier ]) = (cast_expression "(size_t)(needle + iVar3)" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "(needle + iVar3)" ( (binary_expression "needle + iVar3" identifier + identifier) )))) ;) (if_statement "if (pbVar2 == needle + needle_len) goto LAB_000598d1;" if (parenthesized_expression "(pbVar2 == needle + needle_len)" ( (binary_expression "pbVar2 == needle + needle_len" identifier == (binary_expression "needle + needle_len" identifier + identifier)) )) (goto_statement "goto LAB_000598d1;" goto statement_identifier ;)) })) (expression_statement "iVar3 = local_454 - (int)pbVar2;" (assignment_expression "iVar3 = local_454 - (int)pbVar2" identifier = (binary_expression "local_454 - (int)pbVar2" identifier - (cast_expression "(int)pbVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "shift_table[uVar7 + 0x20] = (size_t)(needle + iVar3);" (assignment_expression "shift_table[uVar7 + 0x20] = (size_t)(needle + iVar3)" (subscript_expression "shift_table[uVar7 + 0x20]" identifier [ (binary_expression "uVar7 + 0x20" identifier + number_literal) ]) = (cast_expression "(size_t)(needle + iVar3)" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "(needle + iVar3)" ( (binary_expression "needle + iVar3" identifier + identifier) )))) ;) }) while (parenthesized_expression "(pbVar2 != needle + needle_len)" ( (binary_expression "pbVar2 != needle + needle_len" identifier != (binary_expression "needle + needle_len" identifier + identifier)) )) ;) (labeled_statement "LAB_000598d1:\n    iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);" statement_identifier : (expression_statement "iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c);" (assignment_expression "iVar3 = c_strncasecmp((char *)needle,(char *)(needle + period),local_43c)" identifier = (call_expression "c_strncasecmp((char *)needle,(char *)(needle + period),local_43c)" identifier (argument_list "((char *)needle,(char *)(needle + period),local_43c)" ( (cast_expression "(char *)needle" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)(needle + period)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(needle + period)" ( (binary_expression "needle + period" identifier + identifier) ))) , identifier )))) ;)) (if_statement "if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        sVar12 = local_448 + needle_len;\n        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);\n        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;\n        uVar7 = (uint)haystack[sVar12 - 1];\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        uVar7 = shift_table[uVar7];\n        haystack_len = sVar12;\n        if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        sVar12 = local_448 + needle_len;\n        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);\n        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;\n        uVar7 = (uint)haystack[sVar12 - 1];\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        uVar7 = shift_table[uVar7];\n        haystack_len = sVar12;\n        if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }\n      } while( true );\n    }" { (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) (expression_statement "local_448 = 0;" (assignment_expression "local_448 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00059ad0:\n      do {\n        sVar12 = local_448 + needle_len;\n        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);\n        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;\n        uVar7 = (uint)haystack[sVar12 - 1];\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        uVar7 = shift_table[uVar7];\n        haystack_len = sVar12;\n        if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }\n      } while( true );" statement_identifier : (do_statement "do {\n        sVar12 = local_448 + needle_len;\n        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);\n        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;\n        uVar7 = (uint)haystack[sVar12 - 1];\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        uVar7 = shift_table[uVar7];\n        haystack_len = sVar12;\n        if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }\n      } while( true );" do (compound_statement "{\n        sVar12 = local_448 + needle_len;\n        pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);\n        if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;\n        uVar7 = (uint)haystack[sVar12 - 1];\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        uVar7 = shift_table[uVar7];\n        haystack_len = sVar12;\n        if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }\n      }" { (expression_statement "sVar12 = local_448 + needle_len;" (assignment_expression "sVar12 = local_448 + needle_len" identifier = (binary_expression "local_448 + needle_len" identifier + identifier)) ;) (expression_statement "pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len);" (assignment_expression "pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len)" identifier = (call_expression "rpl_memchr(haystack + haystack_len,0,sVar12 - haystack_len)" identifier (argument_list "(haystack + haystack_len,0,sVar12 - haystack_len)" ( (binary_expression "haystack + haystack_len" identifier + identifier) , number_literal , (binary_expression "sVar12 - haystack_len" identifier - identifier) )))) ;) (if_statement "if ((pvVar4 != (void *)0x0) || (sVar12 == 0)) goto LAB_00059a84;" if (parenthesized_expression "((pvVar4 != (void *)0x0) || (sVar12 == 0))" ( (binary_expression "(pvVar4 != (void *)0x0) || (sVar12 == 0)" (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(sVar12 == 0)" ( (binary_expression "sVar12 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_00059a84;" goto statement_identifier ;)) (expression_statement "uVar7 = (uint)haystack[sVar12 - 1];" (assignment_expression "uVar7 = (uint)haystack[sVar12 - 1]" identifier = (cast_expression "(uint)haystack[sVar12 - 1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "haystack[sVar12 - 1]" identifier [ (binary_expression "sVar12 - 1" identifier - number_literal) ]))) ;) (if_statement "if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }" if (parenthesized_expression "(uVar7 - 0x41 < 0x1a)" ( (binary_expression "uVar7 - 0x41 < 0x1a" (binary_expression "uVar7 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar7 = uVar7 + 0x20;\n        }" { (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar7 = shift_table[uVar7];" (assignment_expression "uVar7 = shift_table[uVar7]" identifier = (subscript_expression "shift_table[uVar7]" identifier [ identifier ])) ;) (expression_statement "haystack_len = sVar12;" (assignment_expression "haystack_len = sVar12" identifier = identifier) ;) (if_statement "if (uVar7 == 0) {\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }\n        else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar7 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }\n          if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }\n          uVar5 = local_43c;\n          uVar7 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }\n          if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + sVar11;\n          local_44c = needle_len - sVar11;\n        }" { (expression_statement "uVar7 = local_43c;" (assignment_expression "uVar7 = local_43c" identifier = identifier) ;) (if_statement "if (local_43c <= local_44c) {\n            uVar7 = local_44c;\n          }" if (parenthesized_expression "(local_43c <= local_44c)" ( (binary_expression "local_43c <= local_44c" identifier <= identifier) )) (compound_statement "{\n            uVar7 = local_44c;\n          }" { (expression_statement "uVar7 = local_44c;" (assignment_expression "uVar7 = local_44c" identifier = identifier) ;) })) (if_statement "if (uVar7 < local_454) {\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }" if (parenthesized_expression "(uVar7 < local_454)" ( (binary_expression "uVar7 < local_454" identifier < identifier) )) (compound_statement "{\n            do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);\n          }" { (do_statement "do {\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            } while (uVar7 != local_454);" do (compound_statement "{\n              uVar5 = (uint)needle[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar6 = (uint)haystack[uVar7 + local_448];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }\n              uVar7 = uVar7 + 1;\n            }" { (expression_statement "uVar5 = (uint)needle[uVar7];" (assignment_expression "uVar5 = (uint)needle[uVar7]" identifier = (cast_expression "(uint)needle[uVar7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "needle[uVar7]" identifier [ identifier ]))) ;) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }" if (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" ( (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar5 = uVar5 + 0x20;\n              }" { (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" identifier = (binary_expression "uVar5 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar6 = (uint)haystack[uVar7 + local_448];" (assignment_expression "uVar6 = (uint)haystack[uVar7 + local_448]" identifier = (cast_expression "(uint)haystack[uVar7 + local_448]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "haystack[uVar7 + local_448]" identifier [ (binary_expression "uVar7 + local_448" identifier + identifier) ]))) ;) (if_statement "if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }" if (parenthesized_expression "(uVar6 - 0x41 < 0x1a)" ( (binary_expression "uVar6 - 0x41 < 0x1a" (binary_expression "uVar6 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar6 = uVar6 + 0x20;\n              }" { (expression_statement "uVar6 = uVar6 + 0x20;" (assignment_expression "uVar6 = uVar6 + 0x20" identifier = (binary_expression "uVar6 + 0x20" identifier + number_literal)) ;) })) (if_statement "if (uVar6 != uVar5) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }" if (parenthesized_expression "(uVar6 != uVar5)" ( (binary_expression "uVar6 != uVar5" identifier != identifier) )) (compound_statement "{\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar7;\n                goto LAB_00059ad0;\n              }" { (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) (expression_statement "local_448 = local_448 + (1 - local_43c) + uVar7;" (assignment_expression "local_448 = local_448 + (1 - local_43c) + uVar7" identifier = (binary_expression "local_448 + (1 - local_43c) + uVar7" (binary_expression "local_448 + (1 - local_43c)" identifier + (parenthesized_expression "(1 - local_43c)" ( (binary_expression "1 - local_43c" number_literal - identifier) ))) + identifier)) ;) (goto_statement "goto LAB_00059ad0;" goto statement_identifier ;) })) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 != local_454)" ( (binary_expression "uVar7 != local_454" identifier != identifier) )) ;) })) (expression_statement "uVar5 = local_43c;" (assignment_expression "uVar5 = local_43c" identifier = identifier) ;) (expression_statement "uVar7 = local_43c;" (assignment_expression "uVar7 = local_43c" identifier = identifier) ;) (if_statement "if (local_44c < local_43c) {\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }" if (parenthesized_expression "(local_44c < local_43c)" ( (binary_expression "local_44c < local_43c" identifier < identifier) )) (compound_statement "{\n            do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));\n          }" { (do_statement "do {\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            } while ((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8));" do (compound_statement "{\n              uVar8 = uVar7 - 1;\n              uVar6 = (uint)needle[uVar8];\n              if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }\n              uVar9 = (uint)haystack[uVar8 + local_448];\n              if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }\n              uVar5 = uVar7;\n            }" { (expression_statement "uVar8 = uVar7 - 1;" (assignment_expression "uVar8 = uVar7 - 1" identifier = (binary_expression "uVar7 - 1" identifier - number_literal)) ;) (expression_statement "uVar6 = (uint)needle[uVar8];" (assignment_expression "uVar6 = (uint)needle[uVar8]" identifier = (cast_expression "(uint)needle[uVar8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "needle[uVar8]" identifier [ identifier ]))) ;) (if_statement "if (uVar6 - 0x41 < 0x1a) {\n                uVar6 = uVar6 + 0x20;\n              }" if (parenthesized_expression "(uVar6 - 0x41 < 0x1a)" ( (binary_expression "uVar6 - 0x41 < 0x1a" (binary_expression "uVar6 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar6 = uVar6 + 0x20;\n              }" { (expression_statement "uVar6 = uVar6 + 0x20;" (assignment_expression "uVar6 = uVar6 + 0x20" identifier = (binary_expression "uVar6 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar9 = (uint)haystack[uVar8 + local_448];" (assignment_expression "uVar9 = (uint)haystack[uVar8 + local_448]" identifier = (cast_expression "(uint)haystack[uVar8 + local_448]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "haystack[uVar8 + local_448]" identifier [ (binary_expression "uVar8 + local_448" identifier + identifier) ]))) ;) (if_statement "if (uVar9 - 0x41 < 0x1a) {\n                uVar9 = uVar9 + 0x20;\n              }" if (parenthesized_expression "(uVar9 - 0x41 < 0x1a)" ( (binary_expression "uVar9 - 0x41 < 0x1a" (binary_expression "uVar9 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar9 = uVar9 + 0x20;\n              }" { (expression_statement "uVar9 = uVar9 + 0x20;" (assignment_expression "uVar9 = uVar9 + 0x20" identifier = (binary_expression "uVar9 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar5 = uVar7;" (assignment_expression "uVar5 = uVar7" identifier = identifier) ;) }) while (parenthesized_expression "((uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8))" ( (binary_expression "(uVar9 == uVar6) && (uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8)" (parenthesized_expression "(uVar9 == uVar6)" ( (binary_expression "uVar9 == uVar6" identifier == identifier) )) && (parenthesized_expression "(uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8)" ( (comma_expression "uVar5 = local_44c, uVar7 = uVar8, local_44c != uVar8" (assignment_expression "uVar5 = local_44c" identifier = identifier) , (comma_expression "uVar7 = uVar8, local_44c != uVar8" (assignment_expression "uVar7 = uVar8" identifier = identifier) , (binary_expression "local_44c != uVar8" identifier != identifier))) ))) )) ;) })) (if_statement "if (uVar5 < local_44c + 1) {\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }" if (parenthesized_expression "(uVar5 < local_44c + 1)" ( (binary_expression "uVar5 < local_44c + 1" identifier < (binary_expression "local_44c + 1" identifier + number_literal)) )) (compound_statement "{\n            puVar10 = haystack + local_448;\n            goto LAB_00059a86;\n          }" { (expression_statement "puVar10 = haystack + local_448;" (assignment_expression "puVar10 = haystack + local_448" identifier = (binary_expression "haystack + local_448" identifier + identifier)) ;) (goto_statement "goto LAB_00059a86;" goto statement_identifier ;) })) (expression_statement "local_448 = local_448 + sVar11;" (assignment_expression "local_448 = local_448 + sVar11" identifier = (binary_expression "local_448 + sVar11" identifier + identifier)) ;) (expression_statement "local_44c = needle_len - sVar11;" (assignment_expression "local_44c = needle_len - sVar11" identifier = (binary_expression "needle_len - sVar11" identifier - identifier)) ;) }) (else_clause "else {\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }" else (compound_statement "{\n          if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }\n          local_448 = local_448 + uVar7;\n          local_44c = 0;\n        }" { (if_statement "if ((uVar7 < sVar11) && (local_44c != 0)) {\n            uVar7 = needle_len - sVar11;\n          }" if (parenthesized_expression "((uVar7 < sVar11) && (local_44c != 0))" ( (binary_expression "(uVar7 < sVar11) && (local_44c != 0)" (parenthesized_expression "(uVar7 < sVar11)" ( (binary_expression "uVar7 < sVar11" identifier < identifier) )) && (parenthesized_expression "(local_44c != 0)" ( (binary_expression "local_44c != 0" identifier != number_literal) ))) )) (compound_statement "{\n            uVar7 = needle_len - sVar11;\n          }" { (expression_statement "uVar7 = needle_len - sVar11;" (assignment_expression "uVar7 = needle_len - sVar11" identifier = (binary_expression "needle_len - sVar11" identifier - identifier)) ;) })) (expression_statement "local_448 = local_448 + uVar7;" (assignment_expression "local_448 = local_448 + uVar7" identifier = (binary_expression "local_448 + uVar7" identifier + identifier)) ;) (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;)) })) }))) (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) (expression_statement "uVar7 = needle_len - local_43c;" (assignment_expression "uVar7 = needle_len - local_43c" identifier = (binary_expression "needle_len - local_43c" identifier - identifier)) ;) (if_statement "if (needle_len - local_43c < local_43c) {\n    uVar7 = local_43c;\n  }" if (parenthesized_expression "(needle_len - local_43c < local_43c)" ( (binary_expression "needle_len - local_43c < local_43c" (binary_expression "needle_len - local_43c" identifier - identifier) < identifier) )) (compound_statement "{\n    uVar7 = local_43c;\n  }" { (expression_statement "uVar7 = local_43c;" (assignment_expression "uVar7 = local_43c" identifier = identifier) ;) })) (expression_statement "period = uVar7 + 1;" (assignment_expression "period = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_00059930:\n  do {\n    sVar11 = local_44c + needle_len;\n    pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar11 - haystack_len);\n    if ((sVar11 == 0) || (pvVar4 != (void *)0x0)) goto LAB_00059a84;\n    uVar5 = (uint)haystack[sVar11 - 1];\n    if (uVar5 - 0x41 < 0x1a) {\n      uVar5 = uVar5 + 0x20;\n    }\n    haystack_len = sVar11;\n    if (shift_table[uVar5] == 0) {\n      puVar10 = haystack + local_44c;\n      for (uVar5 = local_43c; uVar6 = local_43c, uVar5 < local_454; uVar5 = uVar5 + 1) {\n        uVar6 = (uint)needle[uVar5];\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar5];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n        if (uVar8 != uVar6) {\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar6 = uVar6 - 1;\n        if (uVar6 == 0xffffffff) goto LAB_00059a86;\n        uVar5 = (uint)needle[uVar6];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar6];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n      } while (uVar8 == uVar5);\n      local_44c = local_44c + uVar7 + 1;\n    }\n    else {\n      local_44c = local_44c + shift_table[uVar5];\n    }\n  } while( true );" statement_identifier : (do_statement "do {\n    sVar11 = local_44c + needle_len;\n    pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar11 - haystack_len);\n    if ((sVar11 == 0) || (pvVar4 != (void *)0x0)) goto LAB_00059a84;\n    uVar5 = (uint)haystack[sVar11 - 1];\n    if (uVar5 - 0x41 < 0x1a) {\n      uVar5 = uVar5 + 0x20;\n    }\n    haystack_len = sVar11;\n    if (shift_table[uVar5] == 0) {\n      puVar10 = haystack + local_44c;\n      for (uVar5 = local_43c; uVar6 = local_43c, uVar5 < local_454; uVar5 = uVar5 + 1) {\n        uVar6 = (uint)needle[uVar5];\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar5];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n        if (uVar8 != uVar6) {\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar6 = uVar6 - 1;\n        if (uVar6 == 0xffffffff) goto LAB_00059a86;\n        uVar5 = (uint)needle[uVar6];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar6];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n      } while (uVar8 == uVar5);\n      local_44c = local_44c + uVar7 + 1;\n    }\n    else {\n      local_44c = local_44c + shift_table[uVar5];\n    }\n  } while( true );" do (compound_statement "{\n    sVar11 = local_44c + needle_len;\n    pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar11 - haystack_len);\n    if ((sVar11 == 0) || (pvVar4 != (void *)0x0)) goto LAB_00059a84;\n    uVar5 = (uint)haystack[sVar11 - 1];\n    if (uVar5 - 0x41 < 0x1a) {\n      uVar5 = uVar5 + 0x20;\n    }\n    haystack_len = sVar11;\n    if (shift_table[uVar5] == 0) {\n      puVar10 = haystack + local_44c;\n      for (uVar5 = local_43c; uVar6 = local_43c, uVar5 < local_454; uVar5 = uVar5 + 1) {\n        uVar6 = (uint)needle[uVar5];\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar5];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n        if (uVar8 != uVar6) {\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar6 = uVar6 - 1;\n        if (uVar6 == 0xffffffff) goto LAB_00059a86;\n        uVar5 = (uint)needle[uVar6];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar6];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n      } while (uVar8 == uVar5);\n      local_44c = local_44c + uVar7 + 1;\n    }\n    else {\n      local_44c = local_44c + shift_table[uVar5];\n    }\n  }" { (expression_statement "sVar11 = local_44c + needle_len;" (assignment_expression "sVar11 = local_44c + needle_len" identifier = (binary_expression "local_44c + needle_len" identifier + identifier)) ;) (expression_statement "pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar11 - haystack_len);" (assignment_expression "pvVar4 = rpl_memchr(haystack + haystack_len,0,sVar11 - haystack_len)" identifier = (call_expression "rpl_memchr(haystack + haystack_len,0,sVar11 - haystack_len)" identifier (argument_list "(haystack + haystack_len,0,sVar11 - haystack_len)" ( (binary_expression "haystack + haystack_len" identifier + identifier) , number_literal , (binary_expression "sVar11 - haystack_len" identifier - identifier) )))) ;) (if_statement "if ((sVar11 == 0) || (pvVar4 != (void *)0x0)) goto LAB_00059a84;" if (parenthesized_expression "((sVar11 == 0) || (pvVar4 != (void *)0x0))" ( (binary_expression "(sVar11 == 0) || (pvVar4 != (void *)0x0)" (parenthesized_expression "(sVar11 == 0)" ( (binary_expression "sVar11 == 0" identifier == number_literal) )) || (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (goto_statement "goto LAB_00059a84;" goto statement_identifier ;)) (expression_statement "uVar5 = (uint)haystack[sVar11 - 1];" (assignment_expression "uVar5 = (uint)haystack[sVar11 - 1]" identifier = (cast_expression "(uint)haystack[sVar11 - 1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "haystack[sVar11 - 1]" identifier [ (binary_expression "sVar11 - 1" identifier - number_literal) ]))) ;) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n      uVar5 = uVar5 + 0x20;\n    }" if (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" ( (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n      uVar5 = uVar5 + 0x20;\n    }" { (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" identifier = (binary_expression "uVar5 + 0x20" identifier + number_literal)) ;) })) (expression_statement "haystack_len = sVar11;" (assignment_expression "haystack_len = sVar11" identifier = identifier) ;) (if_statement "if (shift_table[uVar5] == 0) {\n      puVar10 = haystack + local_44c;\n      for (uVar5 = local_43c; uVar6 = local_43c, uVar5 < local_454; uVar5 = uVar5 + 1) {\n        uVar6 = (uint)needle[uVar5];\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar5];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n        if (uVar8 != uVar6) {\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar6 = uVar6 - 1;\n        if (uVar6 == 0xffffffff) goto LAB_00059a86;\n        uVar5 = (uint)needle[uVar6];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar6];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n      } while (uVar8 == uVar5);\n      local_44c = local_44c + uVar7 + 1;\n    }\n    else {\n      local_44c = local_44c + shift_table[uVar5];\n    }" if (parenthesized_expression "(shift_table[uVar5] == 0)" ( (binary_expression "shift_table[uVar5] == 0" (subscript_expression "shift_table[uVar5]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n      puVar10 = haystack + local_44c;\n      for (uVar5 = local_43c; uVar6 = local_43c, uVar5 < local_454; uVar5 = uVar5 + 1) {\n        uVar6 = (uint)needle[uVar5];\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar5];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n        if (uVar8 != uVar6) {\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar6 = uVar6 - 1;\n        if (uVar6 == 0xffffffff) goto LAB_00059a86;\n        uVar5 = (uint)needle[uVar6];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar6];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n      } while (uVar8 == uVar5);\n      local_44c = local_44c + uVar7 + 1;\n    }" { (expression_statement "puVar10 = haystack + local_44c;" (assignment_expression "puVar10 = haystack + local_44c" identifier = (binary_expression "haystack + local_44c" identifier + identifier)) ;) (for_statement "for (uVar5 = local_43c; uVar6 = local_43c, uVar5 < local_454; uVar5 = uVar5 + 1) {\n        uVar6 = (uint)needle[uVar5];\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar5];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n        if (uVar8 != uVar6) {\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }\n      }" for ( (assignment_expression "uVar5 = local_43c" identifier = identifier) ; (comma_expression "uVar6 = local_43c, uVar5 < local_454" (assignment_expression "uVar6 = local_43c" identifier = identifier) , (binary_expression "uVar5 < local_454" identifier < identifier)) ; (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ) (compound_statement "{\n        uVar6 = (uint)needle[uVar5];\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar5];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n        if (uVar8 != uVar6) {\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }\n      }" { (expression_statement "uVar6 = (uint)needle[uVar5];" (assignment_expression "uVar6 = (uint)needle[uVar5]" identifier = (cast_expression "(uint)needle[uVar5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "needle[uVar5]" identifier [ identifier ]))) ;) (if_statement "if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }" if (parenthesized_expression "(uVar6 - 0x41 < 0x1a)" ( (binary_expression "uVar6 - 0x41 < 0x1a" (binary_expression "uVar6 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar6 = uVar6 + 0x20;\n        }" { (expression_statement "uVar6 = uVar6 + 0x20;" (assignment_expression "uVar6 = uVar6 + 0x20" identifier = (binary_expression "uVar6 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar8 = (uint)puVar10[uVar5];" (assignment_expression "uVar8 = (uint)puVar10[uVar5]" identifier = (cast_expression "(uint)puVar10[uVar5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar10[uVar5]" identifier [ identifier ]))) ;) (if_statement "if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }" if (parenthesized_expression "(uVar8 - 0x41 < 0x1a)" ( (binary_expression "uVar8 - 0x41 < 0x1a" (binary_expression "uVar8 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar8 = uVar8 + 0x20;\n        }" { (expression_statement "uVar8 = uVar8 + 0x20;" (assignment_expression "uVar8 = uVar8 + 0x20" identifier = (binary_expression "uVar8 + 0x20" identifier + number_literal)) ;) })) (if_statement "if (uVar8 != uVar6) {\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }" if (parenthesized_expression "(uVar8 != uVar6)" ( (binary_expression "uVar8 != uVar6" identifier != identifier) )) (compound_statement "{\n          local_44c = local_44c + (1 - local_43c) + uVar5;\n          goto LAB_00059930;\n        }" { (expression_statement "local_44c = local_44c + (1 - local_43c) + uVar5;" (assignment_expression "local_44c = local_44c + (1 - local_43c) + uVar5" identifier = (binary_expression "local_44c + (1 - local_43c) + uVar5" (binary_expression "local_44c + (1 - local_43c)" identifier + (parenthesized_expression "(1 - local_43c)" ( (binary_expression "1 - local_43c" number_literal - identifier) ))) + identifier)) ;) (goto_statement "goto LAB_00059930;" goto statement_identifier ;) })) })) (do_statement "do {\n        uVar6 = uVar6 - 1;\n        if (uVar6 == 0xffffffff) goto LAB_00059a86;\n        uVar5 = (uint)needle[uVar6];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar6];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n      } while (uVar8 == uVar5);" do (compound_statement "{\n        uVar6 = uVar6 - 1;\n        if (uVar6 == 0xffffffff) goto LAB_00059a86;\n        uVar5 = (uint)needle[uVar6];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar8 = (uint)puVar10[uVar6];\n        if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }\n      }" { (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (if_statement "if (uVar6 == 0xffffffff) goto LAB_00059a86;" if (parenthesized_expression "(uVar6 == 0xffffffff)" ( (binary_expression "uVar6 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_00059a86;" goto statement_identifier ;)) (expression_statement "uVar5 = (uint)needle[uVar6];" (assignment_expression "uVar5 = (uint)needle[uVar6]" identifier = (cast_expression "(uint)needle[uVar6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "needle[uVar6]" identifier [ identifier ]))) ;) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }" if (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" ( (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar5 = uVar5 + 0x20;\n        }" { (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" identifier = (binary_expression "uVar5 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar8 = (uint)puVar10[uVar6];" (assignment_expression "uVar8 = (uint)puVar10[uVar6]" identifier = (cast_expression "(uint)puVar10[uVar6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar10[uVar6]" identifier [ identifier ]))) ;) (if_statement "if (uVar8 - 0x41 < 0x1a) {\n          uVar8 = uVar8 + 0x20;\n        }" if (parenthesized_expression "(uVar8 - 0x41 < 0x1a)" ( (binary_expression "uVar8 - 0x41 < 0x1a" (binary_expression "uVar8 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar8 = uVar8 + 0x20;\n        }" { (expression_statement "uVar8 = uVar8 + 0x20;" (assignment_expression "uVar8 = uVar8 + 0x20" identifier = (binary_expression "uVar8 + 0x20" identifier + number_literal)) ;) })) }) while (parenthesized_expression "(uVar8 == uVar5)" ( (binary_expression "uVar8 == uVar5" identifier == identifier) )) ;) (expression_statement "local_44c = local_44c + uVar7 + 1;" (assignment_expression "local_44c = local_44c + uVar7 + 1" identifier = (binary_expression "local_44c + uVar7 + 1" (binary_expression "local_44c + uVar7" identifier + identifier) + number_literal)) ;) }) (else_clause "else {\n      local_44c = local_44c + shift_table[uVar5];\n    }" else (compound_statement "{\n      local_44c = local_44c + shift_table[uVar5];\n    }" { (expression_statement "local_44c = local_44c + shift_table[uVar5];" (assignment_expression "local_44c = local_44c + shift_table[uVar5]" identifier = (binary_expression "local_44c + shift_table[uVar5]" identifier + (subscript_expression "shift_table[uVar5]" identifier [ identifier ]))) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit "int __regparm3 FUN_00059810(int param_1,int param_2,byte *param_3,uint param_4)\n\n{\n  uint *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_454;\n  uint local_44c;\n  int local_448;\n  uint local_43c;\n  uint local_438;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5981b;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_4 < 3) {\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }\n  else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }\n  puVar1 = local_420;\n  do {\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  } while (local_20 != puVar1);\n  if (param_4 == 0) {\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }\n  local_44c = 0;\n  uVar6 = param_4 - local_43c;\n  if (param_4 - local_43c < local_43c) {\n    uVar6 = local_43c;\n  }\nLAB_00059930:\n  do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );\n}\n\n" (function_definition "int __regparm3 FUN_00059810(int param_1,int param_2,byte *param_3,uint param_4)\n\n{\n  uint *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_454;\n  uint local_44c;\n  int local_448;\n  uint local_43c;\n  uint local_438;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5981b;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_4 < 3) {\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }\n  else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }\n  puVar1 = local_420;\n  do {\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  } while (local_20 != puVar1);\n  if (param_4 == 0) {\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }\n  local_44c = 0;\n  uVar6 = param_4 - local_43c;\n  if (param_4 - local_43c < local_43c) {\n    uVar6 = local_43c;\n  }\nLAB_00059930:\n  do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00059810(int param_1,int param_2,byte *param_3,uint param_4)" identifier (parameter_list "(int param_1,int param_2,byte *param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_454;\n  uint local_44c;\n  int local_448;\n  uint local_43c;\n  uint local_438;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5981b;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_4 < 3) {\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }\n  else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }\n  puVar1 = local_420;\n  do {\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  } while (local_20 != puVar1);\n  if (param_4 == 0) {\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }\n  local_44c = 0;\n  uVar6 = param_4 - local_43c;\n  if (param_4 - local_43c < local_43c) {\n    uVar6 = local_43c;\n  }\nLAB_00059930:\n  do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_454;" type_identifier identifier ;) (declaration "uint local_44c;" type_identifier identifier ;) (declaration "int local_448;" primitive_type identifier ;) (declaration "uint local_43c;" type_identifier identifier ;) (declaration "uint local_438;" type_identifier identifier ;) (declaration "uint local_424;" type_identifier identifier ;) (declaration "uint local_420 [256];" type_identifier (array_declarator "local_420 [256]" identifier [ number_literal ]) ;) (declaration "uint local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5981b;" (assignment_expression "uStack_14 = 0x5981b" identifier = number_literal) ;) (expression_statement "local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20[0] = *(uint *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (pointer_expression "*(uint *)(in_GS_OFFSET + 0x14)" * (cast_expression "(uint *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_4 < 3) {\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }\n  else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }" if (parenthesized_expression "(param_4 < 3)" ( (binary_expression "param_4 < 3" identifier < number_literal) )) (compound_statement "{\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }" { (expression_statement "local_43c = param_4 - 1;" (assignment_expression "local_43c = param_4 - 1" identifier = (binary_expression "param_4 - 1" identifier - number_literal)) ;) (expression_statement "local_438 = 1;" (assignment_expression "local_438 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }" else (compound_statement "{\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }" { (expression_statement "local_43c = FUN_00059640();" (assignment_expression "local_43c = FUN_00059640()" identifier = (call_expression "FUN_00059640()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_438 = local_424;" (assignment_expression "local_438 = local_424" identifier = identifier) ;) }))) (expression_statement "puVar1 = local_420;" (assignment_expression "puVar1 = local_420" identifier = identifier) ;) (do_statement "do {\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  } while (local_20 != puVar1);" do (compound_statement "{\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  }" { (expression_statement "*puVar1 = param_4;" (assignment_expression "*puVar1 = param_4" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_20 != puVar1)" ( (binary_expression "local_20 != puVar1" identifier != identifier) )) ;) (if_statement "if (param_4 == 0) {\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }" { (expression_statement "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);" (assignment_expression "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c)" identifier = (call_expression "FUN_000595b0(param_3,param_3 + local_438,local_43c)" identifier (argument_list "(param_3,param_3 + local_438,local_43c)" ( identifier , (binary_expression "param_3 + local_438" identifier + identifier) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }" { (labeled_statement "LAB_00059a84:\n      local_448 = 0;" statement_identifier : (expression_statement "local_448 = 0;" (assignment_expression "local_448 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }" statement_identifier : (if_statement "if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }" if (parenthesized_expression "(local_20[0] != *(uint *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_20[0]" identifier [ number_literal ]) != (pointer_expression "*(uint *)(in_GS_OFFSET + 0x14)" * (cast_expression "(uint *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n        FUN_0007ad20();\n      }" { (expression_statement "FUN_0007ad20();" (call_expression "FUN_0007ad20()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return local_448;" return identifier ;) })) (expression_statement "local_454 = 0xffffffff;" (assignment_expression "local_454 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" else (compound_statement "{\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" { (expression_statement "local_454 = param_4 - 1;" (assignment_expression "local_454 = param_4 - 1" identifier = (binary_expression "param_4 - 1" identifier - number_literal)) ;) (expression_statement "pbVar2 = param_3;" (assignment_expression "pbVar2 = param_3" identifier = identifier) ;) (do_statement "do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);" do (compound_statement "{\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    }" { (while_statement "while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }" while (parenthesized_expression "(uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41)" ( (comma_expression "uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41" (assignment_expression "uVar6 = (uint)*pbVar2" identifier = (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) , (binary_expression "0x19 < uVar6 - 0x41" number_literal < (binary_expression "uVar6 - 0x41" identifier - number_literal))) )) (compound_statement "{\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }" { (expression_statement "iVar3 = local_454 - (int)pbVar2;" (assignment_expression "iVar3 = local_454 - (int)pbVar2" identifier = (binary_expression "local_454 - (int)pbVar2" identifier - (cast_expression "(int)pbVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "local_420[uVar6] = (uint)(param_3 + iVar3);" (assignment_expression "local_420[uVar6] = (uint)(param_3 + iVar3)" (subscript_expression "local_420[uVar6]" identifier [ identifier ]) = (call_expression "(uint)(param_3 + iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + iVar3)" ( (binary_expression "param_3 + iVar3" identifier + identifier) )))) ;) (if_statement "if (pbVar2 == param_3 + param_4) goto LAB_000598d1;" if (parenthesized_expression "(pbVar2 == param_3 + param_4)" ( (binary_expression "pbVar2 == param_3 + param_4" identifier == (binary_expression "param_3 + param_4" identifier + identifier)) )) (goto_statement "goto LAB_000598d1;" goto statement_identifier ;)) })) (expression_statement "iVar3 = local_454 - (int)pbVar2;" (assignment_expression "iVar3 = local_454 - (int)pbVar2" identifier = (binary_expression "local_454 - (int)pbVar2" identifier - (cast_expression "(int)pbVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);" (assignment_expression "local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3)" (subscript_expression "local_420[uVar6 + 0x20]" identifier [ (binary_expression "uVar6 + 0x20" identifier + number_literal) ]) = (call_expression "(uint)(param_3 + iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + iVar3)" ( (binary_expression "param_3 + iVar3" identifier + identifier) )))) ;) }) while (parenthesized_expression "(pbVar2 != param_3 + param_4)" ( (binary_expression "pbVar2 != param_3 + param_4" identifier != (binary_expression "param_3 + param_4" identifier + identifier)) )) ;) (labeled_statement "LAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);" statement_identifier : (expression_statement "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);" (assignment_expression "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c)" identifier = (call_expression "FUN_000595b0(param_3,param_3 + local_438,local_43c)" identifier (argument_list "(param_3,param_3 + local_438,local_43c)" ( identifier , (binary_expression "param_3 + local_438" identifier + identifier) , identifier )))) ;)) (if_statement "if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }" { (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) (expression_statement "local_448 = 0;" (assignment_expression "local_448 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );" statement_identifier : (do_statement "do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );" do (compound_statement "{\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      }" { (expression_statement "iVar9 = local_448 + param_4;" (assignment_expression "iVar9 = local_448 + param_4" identifier = (binary_expression "local_448 + param_4" identifier + identifier)) ;) (expression_statement "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);" (assignment_expression "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" identifier = (call_expression "FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" identifier (argument_list "(param_2 + param_1,0,iVar9 - param_2)" ( (binary_expression "param_2 + param_1" identifier + identifier) , number_literal , (binary_expression "iVar9 - param_2" identifier - identifier) )))) ;) (if_statement "if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;" if (parenthesized_expression "((iVar3 != 0) || (iVar9 == 0))" ( (binary_expression "(iVar3 != 0) || (iVar9 == 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_00059a84;" goto statement_identifier ;)) (expression_statement "uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);" (assignment_expression "uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9)" identifier = (binary_expression "(uint)*(byte *)(param_1 + -1 + iVar9)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + -1 + iVar9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + iVar9)" ( (binary_expression "param_1 + -1 + iVar9" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (if_statement "if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }" if (parenthesized_expression "(uVar6 - 0x41 < 0x1a)" ( (binary_expression "uVar6 - 0x41 < 0x1a" (binary_expression "uVar6 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar6 = uVar6 + 0x20;\n        }" { (expression_statement "uVar6 = uVar6 + 0x20;" (assignment_expression "uVar6 = uVar6 + 0x20" identifier = (binary_expression "uVar6 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar6 = local_420[uVar6];" (assignment_expression "uVar6 = local_420[uVar6]" identifier = (subscript_expression "local_420[uVar6]" identifier [ identifier ])) ;) (expression_statement "param_2 = iVar9;" (assignment_expression "param_2 = iVar9" identifier = identifier) ;) (if_statement "if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }" { (expression_statement "uVar6 = local_43c;" (assignment_expression "uVar6 = local_43c" identifier = identifier) ;) (if_statement "if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }" if (parenthesized_expression "(local_43c <= local_44c)" ( (binary_expression "local_43c <= local_44c" identifier <= identifier) )) (compound_statement "{\n            uVar6 = local_44c;\n          }" { (expression_statement "uVar6 = local_44c;" (assignment_expression "uVar6 = local_44c" identifier = identifier) ;) })) (if_statement "if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }" if (parenthesized_expression "(uVar6 < local_454)" ( (binary_expression "uVar6 < local_454" identifier < identifier) )) (compound_statement "{\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }" { (do_statement "do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);" do (compound_statement "{\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            }" { (expression_statement "uVar4 = (uint)param_3[uVar6];" (assignment_expression "uVar4 = (uint)param_3[uVar6]" identifier = (cast_expression "(uint)param_3[uVar6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_3[uVar6]" identifier [ identifier ]))) ;) (if_statement "if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }" if (parenthesized_expression "(uVar4 - 0x41 < 0x1a)" ( (binary_expression "uVar4 - 0x41 < 0x1a" (binary_expression "uVar4 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar4 = uVar4 + 0x20;\n              }" { (expression_statement "uVar4 = uVar4 + 0x20;" (assignment_expression "uVar4 = uVar4 + 0x20" identifier = (binary_expression "uVar4 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);" (assignment_expression "uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6)" identifier = (binary_expression "(uint)*(byte *)(local_448 + param_1 + uVar6)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(local_448 + param_1 + uVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_448 + param_1 + uVar6)" ( (binary_expression "local_448 + param_1 + uVar6" (binary_expression "local_448 + param_1" identifier + identifier) + identifier) ))))) ;) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }" if (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" ( (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar5 = uVar5 + 0x20;\n              }" { (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" identifier = (binary_expression "uVar5 + 0x20" identifier + number_literal)) ;) })) (if_statement "if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }" if (parenthesized_expression "(uVar5 != uVar4)" ( (binary_expression "uVar5 != uVar4" identifier != identifier) )) (compound_statement "{\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }" { (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) (expression_statement "local_448 = local_448 + (1 - local_43c) + uVar6;" (assignment_expression "local_448 = local_448 + (1 - local_43c) + uVar6" identifier = (binary_expression "local_448 + (1 - local_43c) + uVar6" (binary_expression "local_448 + (1 - local_43c)" identifier + (parenthesized_expression "(1 - local_43c)" ( (binary_expression "1 - local_43c" number_literal - identifier) ))) + identifier)) ;) (goto_statement "goto LAB_00059ad0;" goto statement_identifier ;) })) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 != local_454)" ( (binary_expression "uVar6 != local_454" identifier != identifier) )) ;) })) (expression_statement "uVar4 = local_43c;" (assignment_expression "uVar4 = local_43c" identifier = identifier) ;) (expression_statement "uVar6 = local_43c;" (assignment_expression "uVar6 = local_43c" identifier = identifier) ;) (if_statement "if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }" if (parenthesized_expression "(local_44c < local_43c)" ( (binary_expression "local_44c < local_43c" identifier < identifier) )) (compound_statement "{\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }" { (do_statement "do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));" do (compound_statement "{\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            }" { (expression_statement "uVar7 = uVar6 - 1;" (assignment_expression "uVar7 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "uVar5 = (uint)param_3[uVar7];" (assignment_expression "uVar5 = (uint)param_3[uVar7]" identifier = (cast_expression "(uint)param_3[uVar7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_3[uVar7]" identifier [ identifier ]))) ;) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }" if (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" ( (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar5 = uVar5 + 0x20;\n              }" { (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" identifier = (binary_expression "uVar5 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);" (assignment_expression "uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7)" identifier = (binary_expression "(uint)*(byte *)(param_1 + local_448 + uVar7)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + local_448 + uVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + local_448 + uVar7)" ( (binary_expression "param_1 + local_448 + uVar7" (binary_expression "param_1 + local_448" identifier + identifier) + identifier) ))))) ;) (if_statement "if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }" if (parenthesized_expression "(uVar8 - 0x41 < 0x1a)" ( (binary_expression "uVar8 - 0x41 < 0x1a" (binary_expression "uVar8 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n                uVar8 = uVar8 + 0x20;\n              }" { (expression_statement "uVar8 = uVar8 + 0x20;" (assignment_expression "uVar8 = uVar8 + 0x20" identifier = (binary_expression "uVar8 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar4 = uVar6;" (assignment_expression "uVar4 = uVar6" identifier = identifier) ;) }) while (parenthesized_expression "((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7))" ( (binary_expression "(uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7)" (parenthesized_expression "(uVar8 == uVar5)" ( (binary_expression "uVar8 == uVar5" identifier == identifier) )) && (parenthesized_expression "(uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7)" ( (comma_expression "uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7" (assignment_expression "uVar4 = local_44c" identifier = identifier) , (comma_expression "uVar6 = uVar7, local_44c != uVar7" (assignment_expression "uVar6 = uVar7" identifier = identifier) , (binary_expression "local_44c != uVar7" identifier != identifier))) ))) )) ;) })) (if_statement "if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }" if (parenthesized_expression "(uVar4 < local_44c + 1)" ( (binary_expression "uVar4 < local_44c + 1" identifier < (binary_expression "local_44c + 1" identifier + number_literal)) )) (compound_statement "{\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }" { (expression_statement "local_448 = param_1 + local_448;" (assignment_expression "local_448 = param_1 + local_448" identifier = (binary_expression "param_1 + local_448" identifier + identifier)) ;) (goto_statement "goto LAB_00059a86;" goto statement_identifier ;) })) (expression_statement "local_448 = local_448 + local_438;" (assignment_expression "local_448 = local_448 + local_438" identifier = (binary_expression "local_448 + local_438" identifier + identifier)) ;) (expression_statement "local_44c = param_4 - local_438;" (assignment_expression "local_44c = param_4 - local_438" identifier = (binary_expression "param_4 - local_438" identifier - identifier)) ;) }) (else_clause "else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }" else (compound_statement "{\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }" { (if_statement "if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }" if (parenthesized_expression "((uVar6 < local_438) && (local_44c != 0))" ( (binary_expression "(uVar6 < local_438) && (local_44c != 0)" (parenthesized_expression "(uVar6 < local_438)" ( (binary_expression "uVar6 < local_438" identifier < identifier) )) && (parenthesized_expression "(local_44c != 0)" ( (binary_expression "local_44c != 0" identifier != number_literal) ))) )) (compound_statement "{\n            uVar6 = param_4 - local_438;\n          }" { (expression_statement "uVar6 = param_4 - local_438;" (assignment_expression "uVar6 = param_4 - local_438" identifier = (binary_expression "param_4 - local_438" identifier - identifier)) ;) })) (expression_statement "local_448 = local_448 + uVar6;" (assignment_expression "local_448 = local_448 + uVar6" identifier = (binary_expression "local_448 + uVar6" identifier + identifier)) ;) (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;)) })) }))) (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" identifier = number_literal) ;) (expression_statement "uVar6 = param_4 - local_43c;" (assignment_expression "uVar6 = param_4 - local_43c" identifier = (binary_expression "param_4 - local_43c" identifier - identifier)) ;) (if_statement "if (param_4 - local_43c < local_43c) {\n    uVar6 = local_43c;\n  }" if (parenthesized_expression "(param_4 - local_43c < local_43c)" ( (binary_expression "param_4 - local_43c < local_43c" (binary_expression "param_4 - local_43c" identifier - identifier) < identifier) )) (compound_statement "{\n    uVar6 = local_43c;\n  }" { (expression_statement "uVar6 = local_43c;" (assignment_expression "uVar6 = local_43c" identifier = identifier) ;) })) (labeled_statement "LAB_00059930:\n  do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );" statement_identifier : (do_statement "do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );" do (compound_statement "{\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  }" { (expression_statement "iVar9 = local_44c + param_4;" (assignment_expression "iVar9 = local_44c + param_4" identifier = (binary_expression "local_44c + param_4" identifier + identifier)) ;) (expression_statement "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);" (assignment_expression "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" identifier = (call_expression "FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" identifier (argument_list "(param_2 + param_1,0,iVar9 - param_2)" ( (binary_expression "param_2 + param_1" identifier + identifier) , number_literal , (binary_expression "iVar9 - param_2" identifier - identifier) )))) ;) (if_statement "if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;" if (parenthesized_expression "((iVar9 == 0) || (iVar3 != 0))" ( (binary_expression "(iVar9 == 0) || (iVar3 != 0)" (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) ))) )) (goto_statement "goto LAB_00059a84;" goto statement_identifier ;)) (expression_statement "uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);" (assignment_expression "uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9)" identifier = (binary_expression "(uint)*(byte *)(param_1 + -1 + iVar9)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + -1 + iVar9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + iVar9)" ( (binary_expression "param_1 + -1 + iVar9" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (if_statement "if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }" if (parenthesized_expression "(uVar4 - 0x41 < 0x1a)" ( (binary_expression "uVar4 - 0x41 < 0x1a" (binary_expression "uVar4 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n      uVar4 = uVar4 + 0x20;\n    }" { (expression_statement "uVar4 = uVar4 + 0x20;" (assignment_expression "uVar4 = uVar4 + 0x20" identifier = (binary_expression "uVar4 + 0x20" identifier + number_literal)) ;) })) (expression_statement "param_2 = iVar9;" (assignment_expression "param_2 = iVar9" identifier = identifier) ;) (if_statement "if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }" if (parenthesized_expression "(local_420[uVar4] == 0)" ( (binary_expression "local_420[uVar4] == 0" (subscript_expression "local_420[uVar4]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }" { (expression_statement "local_448 = param_1 + local_44c;" (assignment_expression "local_448 = param_1 + local_44c" identifier = (binary_expression "param_1 + local_44c" identifier + identifier)) ;) (for_statement "for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }" for ( (assignment_expression "uVar4 = local_43c" identifier = identifier) ; (comma_expression "uVar5 = local_43c, uVar4 < local_454" (assignment_expression "uVar5 = local_43c" identifier = identifier) , (binary_expression "uVar4 < local_454" identifier < identifier)) ; (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ) (compound_statement "{\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }" { (expression_statement "uVar5 = (uint)param_3[uVar4];" (assignment_expression "uVar5 = (uint)param_3[uVar4]" identifier = (cast_expression "(uint)param_3[uVar4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_3[uVar4]" identifier [ identifier ]))) ;) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }" if (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" ( (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar5 = uVar5 + 0x20;\n        }" { (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" identifier = (binary_expression "uVar5 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar7 = (uint)*(byte *)(local_448 + uVar4);" (assignment_expression "uVar7 = (uint)*(byte *)(local_448 + uVar4)" identifier = (binary_expression "(uint)*(byte *)(local_448 + uVar4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(local_448 + uVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_448 + uVar4)" ( (binary_expression "local_448 + uVar4" identifier + identifier) ))))) ;) (if_statement "if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }" if (parenthesized_expression "(uVar7 - 0x41 < 0x1a)" ( (binary_expression "uVar7 - 0x41 < 0x1a" (binary_expression "uVar7 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar7 = uVar7 + 0x20;\n        }" { (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) })) (if_statement "if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }" if (parenthesized_expression "(uVar7 != uVar5)" ( (binary_expression "uVar7 != uVar5" identifier != identifier) )) (compound_statement "{\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }" { (expression_statement "local_44c = local_44c + (1 - local_43c) + uVar4;" (assignment_expression "local_44c = local_44c + (1 - local_43c) + uVar4" identifier = (binary_expression "local_44c + (1 - local_43c) + uVar4" (binary_expression "local_44c + (1 - local_43c)" identifier + (parenthesized_expression "(1 - local_43c)" ( (binary_expression "1 - local_43c" number_literal - identifier) ))) + identifier)) ;) (goto_statement "goto LAB_00059930;" goto statement_identifier ;) })) })) (do_statement "do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);" do (compound_statement "{\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      }" { (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (if_statement "if (uVar5 == 0xffffffff) goto LAB_00059a86;" if (parenthesized_expression "(uVar5 == 0xffffffff)" ( (binary_expression "uVar5 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_00059a86;" goto statement_identifier ;)) (expression_statement "uVar4 = (uint)param_3[uVar5];" (assignment_expression "uVar4 = (uint)param_3[uVar5]" identifier = (cast_expression "(uint)param_3[uVar5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_3[uVar5]" identifier [ identifier ]))) ;) (if_statement "if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }" if (parenthesized_expression "(uVar4 - 0x41 < 0x1a)" ( (binary_expression "uVar4 - 0x41 < 0x1a" (binary_expression "uVar4 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar4 = uVar4 + 0x20;\n        }" { (expression_statement "uVar4 = uVar4 + 0x20;" (assignment_expression "uVar4 = uVar4 + 0x20" identifier = (binary_expression "uVar4 + 0x20" identifier + number_literal)) ;) })) (expression_statement "uVar7 = (uint)*(byte *)(local_448 + uVar5);" (assignment_expression "uVar7 = (uint)*(byte *)(local_448 + uVar5)" identifier = (binary_expression "(uint)*(byte *)(local_448 + uVar5)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(local_448 + uVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_448 + uVar5)" ( (binary_expression "local_448 + uVar5" identifier + identifier) ))))) ;) (if_statement "if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }" if (parenthesized_expression "(uVar7 - 0x41 < 0x1a)" ( (binary_expression "uVar7 - 0x41 < 0x1a" (binary_expression "uVar7 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n          uVar7 = uVar7 + 0x20;\n        }" { (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) })) }) while (parenthesized_expression "(uVar7 == uVar4)" ( (binary_expression "uVar7 == uVar4" identifier == identifier) )) ;) (expression_statement "local_44c = local_44c + uVar6 + 1;" (assignment_expression "local_44c = local_44c + uVar6 + 1" identifier = (binary_expression "local_44c + uVar6 + 1" (binary_expression "local_44c + uVar6" identifier + identifier) + number_literal)) ;) }) (else_clause "else {\n      local_44c = local_44c + local_420[uVar4];\n    }" else (compound_statement "{\n      local_44c = local_44c + local_420[uVar4];\n    }" { (expression_statement "local_44c = local_44c + local_420[uVar4];" (assignment_expression "local_44c = local_44c + local_420[uVar4]" identifier = (binary_expression "local_44c + local_420[uVar4]" identifier + (subscript_expression "local_420[uVar4]" identifier [ identifier ]))) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) , (binary_expression LIT < (binary_expression IDENT - LIT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + IDENT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) , IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , LIT , (binary_expression IDENT - IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (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 = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ IDENT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - IDENT) ))) + IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ IDENT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != IDENT))) ))) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) while (parenthesized_expression ( BOOL )) ;)) })) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , LIT , (binary_expression IDENT - IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (for_statement for ( (assignment_expression IDENT = IDENT) ; (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT < IDENT)) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ IDENT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - IDENT) ))) + IDENT)) ;) (goto_statement goto statement_identifier ;) })) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ IDENT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT == IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (subscript_expression IDENT [ IDENT ]))) ;) }))) }) while (parenthesized_expression ( BOOL )) ;)) })))
(function_definition "int __regparm3 FUN_00059810(int param_1,int param_2,byte *param_3,uint param_4)\n\n{\n  uint *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_454;\n  uint local_44c;\n  int local_448;\n  uint local_43c;\n  uint local_438;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5981b;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_4 < 3) {\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }\n  else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }\n  puVar1 = local_420;\n  do {\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  } while (local_20 != puVar1);\n  if (param_4 == 0) {\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }\n  local_44c = 0;\n  uVar6 = param_4 - local_43c;\n  if (param_4 - local_43c < local_43c) {\n    uVar6 = local_43c;\n  }\nLAB_00059930:\n  do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00059810(int param_1,int param_2,byte *param_3,uint param_4)" (identifier "FUN_00059810") (parameter_list "(int param_1,int param_2,byte *param_3,uint param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "byte *param_3" (type_identifier "byte") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_454;\n  uint local_44c;\n  int local_448;\n  uint local_43c;\n  uint local_438;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5981b;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_4 < 3) {\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }\n  else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }\n  puVar1 = local_420;\n  do {\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  } while (local_20 != puVar1);\n  if (param_4 == 0) {\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }\n  local_44c = 0;\n  uVar6 = param_4 - local_43c;\n  if (param_4 - local_43c < local_43c) {\n    uVar6 = local_43c;\n  }\nLAB_00059930:\n  do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_454;" (type_identifier "uint") (identifier "local_454") (; ";")) (declaration "uint local_44c;" (type_identifier "uint") (identifier "local_44c") (; ";")) (declaration "int local_448;" (primitive_type "int") (identifier "local_448") (; ";")) (declaration "uint local_43c;" (type_identifier "uint") (identifier "local_43c") (; ";")) (declaration "uint local_438;" (type_identifier "uint") (identifier "local_438") (; ";")) (declaration "uint local_424;" (type_identifier "uint") (identifier "local_424") (; ";")) (declaration "uint local_420 [256];" (type_identifier "uint") (array_declarator "local_420 [256]" (identifier "local_420") ([ "[") (number_literal "256") (] "]")) (; ";")) (declaration "uint local_20 [3];" (type_identifier "uint") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x5981b;" (assignment_expression "uStack_14 = 0x5981b" (identifier "uStack_14") (= "=") (number_literal "0x5981b")) (; ";")) (expression_statement "local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20[0] = *(uint *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "*(uint *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(uint *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_4 < 3) {\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }\n  else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }" (if "if") (parenthesized_expression "(param_4 < 3)" (( "(") (binary_expression "param_4 < 3" (identifier "param_4") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n    local_43c = param_4 - 1;\n    local_438 = 1;\n  }" ({ "{") (expression_statement "local_43c = param_4 - 1;" (assignment_expression "local_43c = param_4 - 1" (identifier "local_43c") (= "=") (binary_expression "param_4 - 1" (identifier "param_4") (- "-") (number_literal "1"))) (; ";")) (expression_statement "local_438 = 1;" (assignment_expression "local_438 = 1" (identifier "local_438") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }" (else "else") (compound_statement "{\n    local_43c = FUN_00059640();\n    local_438 = local_424;\n  }" ({ "{") (expression_statement "local_43c = FUN_00059640();" (assignment_expression "local_43c = FUN_00059640()" (identifier "local_43c") (= "=") (call_expression "FUN_00059640()" (identifier "FUN_00059640") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_438 = local_424;" (assignment_expression "local_438 = local_424" (identifier "local_438") (= "=") (identifier "local_424")) (; ";")) (} "}")))) (expression_statement "puVar1 = local_420;" (assignment_expression "puVar1 = local_420" (identifier "puVar1") (= "=") (identifier "local_420")) (; ";")) (do_statement "do {\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  } while (local_20 != puVar1);" (do "do") (compound_statement "{\n    *puVar1 = param_4;\n    puVar1 = puVar1 + 1;\n  }" ({ "{") (expression_statement "*puVar1 = param_4;" (assignment_expression "*puVar1 = param_4" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_20 != puVar1)" (( "(") (binary_expression "local_20 != puVar1" (identifier "local_20") (!= "!=") (identifier "puVar1")) () ")")) (; ";")) (if_statement "if (param_4 == 0) {\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }\n  else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }\n    local_454 = 0xffffffff;\n  }" ({ "{") (expression_statement "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);" (assignment_expression "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c)" (identifier "iVar3") (= "=") (call_expression "FUN_000595b0(param_3,param_3 + local_438,local_43c)" (identifier "FUN_000595b0") (argument_list "(param_3,param_3 + local_438,local_43c)" (( "(") (identifier "param_3") (, ",") (binary_expression "param_3 + local_438" (identifier "param_3") (+ "+") (identifier "local_438")) (, ",") (identifier "local_43c") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00059a84:\n      local_448 = 0;\nLAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }\n      return local_448;\n    }" ({ "{") (labeled_statement "LAB_00059a84:\n      local_448 = 0;" (statement_identifier "LAB_00059a84") (: ":") (expression_statement "local_448 = 0;" (assignment_expression "local_448 = 0" (identifier "local_448") (= "=") (number_literal "0")) (; ";"))) (labeled_statement "LAB_00059a86:\n      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }" (statement_identifier "LAB_00059a86") (: ":") (if_statement "if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_0007ad20();\n      }" (if "if") (parenthesized_expression "(local_20[0] != *(uint *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (!= "!=") (pointer_expression "*(uint *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(uint *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n        FUN_0007ad20();\n      }" ({ "{") (expression_statement "FUN_0007ad20();" (call_expression "FUN_0007ad20()" (identifier "FUN_0007ad20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return local_448;" (return "return") (identifier "local_448") (; ";")) (} "}"))) (expression_statement "local_454 = 0xffffffff;" (assignment_expression "local_454 = 0xffffffff" (identifier "local_454") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" (else "else") (compound_statement "{\n    local_454 = param_4 - 1;\n    pbVar2 = param_3;\n    do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);\nLAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);\n    if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }\n  }" ({ "{") (expression_statement "local_454 = param_4 - 1;" (assignment_expression "local_454 = param_4 - 1" (identifier "local_454") (= "=") (binary_expression "param_4 - 1" (identifier "param_4") (- "-") (number_literal "1"))) (; ";")) (expression_statement "pbVar2 = param_3;" (assignment_expression "pbVar2 = param_3" (identifier "pbVar2") (= "=") (identifier "param_3")) (; ";")) (do_statement "do {\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    } while (pbVar2 != param_3 + param_4);" (do "do") (compound_statement "{\n      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }\n      iVar3 = local_454 - (int)pbVar2;\n      pbVar2 = pbVar2 + 1;\n      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);\n    }" ({ "{") (while_statement "while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }" (while "while") (parenthesized_expression "(uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41)" (( "(") (comma_expression "uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41" (assignment_expression "uVar6 = (uint)*pbVar2" (identifier "uVar6") (= "=") (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2"))) (, ",") (binary_expression "0x19 < uVar6 - 0x41" (number_literal "0x19") (< "<") (binary_expression "uVar6 - 0x41" (identifier "uVar6") (- "-") (number_literal "0x41")))) () ")")) (compound_statement "{\n        iVar3 = local_454 - (int)pbVar2;\n        pbVar2 = pbVar2 + 1;\n        local_420[uVar6] = (uint)(param_3 + iVar3);\n        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;\n      }" ({ "{") (expression_statement "iVar3 = local_454 - (int)pbVar2;" (assignment_expression "iVar3 = local_454 - (int)pbVar2" (identifier "iVar3") (= "=") (binary_expression "local_454 - (int)pbVar2" (identifier "local_454") (- "-") (cast_expression "(int)pbVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar2")))) (; ";")) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_420[uVar6] = (uint)(param_3 + iVar3);" (assignment_expression "local_420[uVar6] = (uint)(param_3 + iVar3)" (subscript_expression "local_420[uVar6]" (identifier "local_420") ([ "[") (identifier "uVar6") (] "]")) (= "=") (call_expression "(uint)(param_3 + iVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 + iVar3)" (( "(") (binary_expression "param_3 + iVar3" (identifier "param_3") (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (if_statement "if (pbVar2 == param_3 + param_4) goto LAB_000598d1;" (if "if") (parenthesized_expression "(pbVar2 == param_3 + param_4)" (( "(") (binary_expression "pbVar2 == param_3 + param_4" (identifier "pbVar2") (== "==") (binary_expression "param_3 + param_4" (identifier "param_3") (+ "+") (identifier "param_4"))) () ")")) (goto_statement "goto LAB_000598d1;" (goto "goto") (statement_identifier "LAB_000598d1") (; ";"))) (} "}"))) (expression_statement "iVar3 = local_454 - (int)pbVar2;" (assignment_expression "iVar3 = local_454 - (int)pbVar2" (identifier "iVar3") (= "=") (binary_expression "local_454 - (int)pbVar2" (identifier "local_454") (- "-") (cast_expression "(int)pbVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar2")))) (; ";")) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);" (assignment_expression "local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3)" (subscript_expression "local_420[uVar6 + 0x20]" (identifier "local_420") ([ "[") (binary_expression "uVar6 + 0x20" (identifier "uVar6") (+ "+") (number_literal "0x20")) (] "]")) (= "=") (call_expression "(uint)(param_3 + iVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 + iVar3)" (( "(") (binary_expression "param_3 + iVar3" (identifier "param_3") (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar2 != param_3 + param_4)" (( "(") (binary_expression "pbVar2 != param_3 + param_4" (identifier "pbVar2") (!= "!=") (binary_expression "param_3 + param_4" (identifier "param_3") (+ "+") (identifier "param_4"))) () ")")) (; ";")) (labeled_statement "LAB_000598d1:\n    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);" (statement_identifier "LAB_000598d1") (: ":") (expression_statement "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);" (assignment_expression "iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c)" (identifier "iVar3") (= "=") (call_expression "FUN_000595b0(param_3,param_3 + local_438,local_43c)" (identifier "FUN_000595b0") (argument_list "(param_3,param_3 + local_438,local_43c)" (( "(") (identifier "param_3") (, ",") (binary_expression "param_3 + local_438" (identifier "param_3") (+ "+") (identifier "local_438")) (, ",") (identifier "local_43c") () ")")))) (; ";"))) (if_statement "if (iVar3 == 0) {\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_44c = 0;\n      local_448 = 0;\nLAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );\n    }" ({ "{") (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" (identifier "local_44c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_448 = 0;" (assignment_expression "local_448 = 0" (identifier "local_448") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00059ad0:\n      do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );" (statement_identifier "LAB_00059ad0") (: ":") (do_statement "do {\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      } while( true );" (do "do") (compound_statement "{\n        iVar9 = local_448 + param_4;\n        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;\n        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);\n        if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }\n        uVar6 = local_420[uVar6];\n        param_2 = iVar9;\n        if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }\n      }" ({ "{") (expression_statement "iVar9 = local_448 + param_4;" (assignment_expression "iVar9 = local_448 + param_4" (identifier "iVar9") (= "=") (binary_expression "local_448 + param_4" (identifier "local_448") (+ "+") (identifier "param_4"))) (; ";")) (expression_statement "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);" (assignment_expression "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" (identifier "FUN_000670c0") (argument_list "(param_2 + param_1,0,iVar9 - param_2)" (( "(") (binary_expression "param_2 + param_1" (identifier "param_2") (+ "+") (identifier "param_1")) (, ",") (number_literal "0") (, ",") (binary_expression "iVar9 - param_2" (identifier "iVar9") (- "-") (identifier "param_2")) () ")")))) (; ";")) (if_statement "if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;" (if "if") (parenthesized_expression "((iVar3 != 0) || (iVar9 == 0))" (( "(") (binary_expression "(iVar3 != 0) || (iVar9 == 0)" (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_00059a84;" (goto "goto") (statement_identifier "LAB_00059a84") (; ";"))) (expression_statement "uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);" (assignment_expression "uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9)" (identifier "uVar6") (= "=") (binary_expression "(uint)*(byte *)(param_1 + -1 + iVar9)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_1 + -1 + iVar9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -1 + iVar9)" (( "(") (binary_expression "param_1 + -1 + iVar9" (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1")) (+ "+") (identifier "iVar9")) () ")"))))) (; ";")) (if_statement "if (uVar6 - 0x41 < 0x1a) {\n          uVar6 = uVar6 + 0x20;\n        }" (if "if") (parenthesized_expression "(uVar6 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar6 - 0x41 < 0x1a" (binary_expression "uVar6 - 0x41" (identifier "uVar6") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n          uVar6 = uVar6 + 0x20;\n        }" ({ "{") (expression_statement "uVar6 = uVar6 + 0x20;" (assignment_expression "uVar6 = uVar6 + 0x20" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 0x20" (identifier "uVar6") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))) (expression_statement "uVar6 = local_420[uVar6];" (assignment_expression "uVar6 = local_420[uVar6]" (identifier "uVar6") (= "=") (subscript_expression "local_420[uVar6]" (identifier "local_420") ([ "[") (identifier "uVar6") (] "]"))) (; ";")) (expression_statement "param_2 = iVar9;" (assignment_expression "param_2 = iVar9" (identifier "param_2") (= "=") (identifier "iVar9")) (; ";")) (if_statement "if (uVar6 == 0) {\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }\n        else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar6 = local_43c;\n          if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }\n          if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }\n          uVar4 = local_43c;\n          uVar6 = local_43c;\n          if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }\n          if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }\n          local_448 = local_448 + local_438;\n          local_44c = param_4 - local_438;\n        }" ({ "{") (expression_statement "uVar6 = local_43c;" (assignment_expression "uVar6 = local_43c" (identifier "uVar6") (= "=") (identifier "local_43c")) (; ";")) (if_statement "if (local_43c <= local_44c) {\n            uVar6 = local_44c;\n          }" (if "if") (parenthesized_expression "(local_43c <= local_44c)" (( "(") (binary_expression "local_43c <= local_44c" (identifier "local_43c") (<= "<=") (identifier "local_44c")) () ")")) (compound_statement "{\n            uVar6 = local_44c;\n          }" ({ "{") (expression_statement "uVar6 = local_44c;" (assignment_expression "uVar6 = local_44c" (identifier "uVar6") (= "=") (identifier "local_44c")) (; ";")) (} "}"))) (if_statement "if (uVar6 < local_454) {\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }" (if "if") (parenthesized_expression "(uVar6 < local_454)" (( "(") (binary_expression "uVar6 < local_454" (identifier "uVar6") (< "<") (identifier "local_454")) () ")")) (compound_statement "{\n            do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);\n          }" ({ "{") (do_statement "do {\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            } while (uVar6 != local_454);" (do "do") (compound_statement "{\n              uVar4 = (uint)param_3[uVar6];\n              if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }\n              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }\n              uVar6 = uVar6 + 1;\n            }" ({ "{") (expression_statement "uVar4 = (uint)param_3[uVar6];" (assignment_expression "uVar4 = (uint)param_3[uVar6]" (identifier "uVar4") (= "=") (cast_expression "(uint)param_3[uVar6]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_3[uVar6]" (identifier "param_3") ([ "[") (identifier "uVar6") (] "]")))) (; ";")) (if_statement "if (uVar4 - 0x41 < 0x1a) {\n                uVar4 = uVar4 + 0x20;\n              }" (if "if") (parenthesized_expression "(uVar4 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar4 - 0x41 < 0x1a" (binary_expression "uVar4 - 0x41" (identifier "uVar4") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n                uVar4 = uVar4 + 0x20;\n              }" ({ "{") (expression_statement "uVar4 = uVar4 + 0x20;" (assignment_expression "uVar4 = uVar4 + 0x20" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 0x20" (identifier "uVar4") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))) (expression_statement "uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);" (assignment_expression "uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6)" (identifier "uVar5") (= "=") (binary_expression "(uint)*(byte *)(local_448 + param_1 + uVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(local_448 + param_1 + uVar6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_448 + param_1 + uVar6)" (( "(") (binary_expression "local_448 + param_1 + uVar6" (binary_expression "local_448 + param_1" (identifier "local_448") (+ "+") (identifier "param_1")) (+ "+") (identifier "uVar6")) () ")"))))) (; ";")) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }" (if "if") (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" (identifier "uVar5") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n                uVar5 = uVar5 + 0x20;\n              }" ({ "{") (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 0x20" (identifier "uVar5") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))) (if_statement "if (uVar5 != uVar4) {\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }" (if "if") (parenthesized_expression "(uVar5 != uVar4)" (( "(") (binary_expression "uVar5 != uVar4" (identifier "uVar5") (!= "!=") (identifier "uVar4")) () ")")) (compound_statement "{\n                local_44c = 0;\n                local_448 = local_448 + (1 - local_43c) + uVar6;\n                goto LAB_00059ad0;\n              }" ({ "{") (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" (identifier "local_44c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_448 = local_448 + (1 - local_43c) + uVar6;" (assignment_expression "local_448 = local_448 + (1 - local_43c) + uVar6" (identifier "local_448") (= "=") (binary_expression "local_448 + (1 - local_43c) + uVar6" (binary_expression "local_448 + (1 - local_43c)" (identifier "local_448") (+ "+") (parenthesized_expression "(1 - local_43c)" (( "(") (binary_expression "1 - local_43c" (number_literal "1") (- "-") (identifier "local_43c")) () ")"))) (+ "+") (identifier "uVar6"))) (; ";")) (goto_statement "goto LAB_00059ad0;" (goto "goto") (statement_identifier "LAB_00059ad0") (; ";")) (} "}"))) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 != local_454)" (( "(") (binary_expression "uVar6 != local_454" (identifier "uVar6") (!= "!=") (identifier "local_454")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar4 = local_43c;" (assignment_expression "uVar4 = local_43c" (identifier "uVar4") (= "=") (identifier "local_43c")) (; ";")) (expression_statement "uVar6 = local_43c;" (assignment_expression "uVar6 = local_43c" (identifier "uVar6") (= "=") (identifier "local_43c")) (; ";")) (if_statement "if (local_44c < local_43c) {\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }" (if "if") (parenthesized_expression "(local_44c < local_43c)" (( "(") (binary_expression "local_44c < local_43c" (identifier "local_44c") (< "<") (identifier "local_43c")) () ")")) (compound_statement "{\n            do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));\n          }" ({ "{") (do_statement "do {\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));" (do "do") (compound_statement "{\n              uVar7 = uVar6 - 1;\n              uVar5 = (uint)param_3[uVar7];\n              if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }\n              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);\n              if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }\n              uVar4 = uVar6;\n            }" ({ "{") (expression_statement "uVar7 = uVar6 - 1;" (assignment_expression "uVar7 = uVar6 - 1" (identifier "uVar7") (= "=") (binary_expression "uVar6 - 1" (identifier "uVar6") (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar5 = (uint)param_3[uVar7];" (assignment_expression "uVar5 = (uint)param_3[uVar7]" (identifier "uVar5") (= "=") (cast_expression "(uint)param_3[uVar7]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_3[uVar7]" (identifier "param_3") ([ "[") (identifier "uVar7") (] "]")))) (; ";")) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n                uVar5 = uVar5 + 0x20;\n              }" (if "if") (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" (identifier "uVar5") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n                uVar5 = uVar5 + 0x20;\n              }" ({ "{") (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 0x20" (identifier "uVar5") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))) (expression_statement "uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);" (assignment_expression "uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7)" (identifier "uVar8") (= "=") (binary_expression "(uint)*(byte *)(param_1 + local_448 + uVar7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_1 + local_448 + uVar7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + local_448 + uVar7)" (( "(") (binary_expression "param_1 + local_448 + uVar7" (binary_expression "param_1 + local_448" (identifier "param_1") (+ "+") (identifier "local_448")) (+ "+") (identifier "uVar7")) () ")"))))) (; ";")) (if_statement "if (uVar8 - 0x41 < 0x1a) {\n                uVar8 = uVar8 + 0x20;\n              }" (if "if") (parenthesized_expression "(uVar8 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar8 - 0x41 < 0x1a" (binary_expression "uVar8 - 0x41" (identifier "uVar8") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n                uVar8 = uVar8 + 0x20;\n              }" ({ "{") (expression_statement "uVar8 = uVar8 + 0x20;" (assignment_expression "uVar8 = uVar8 + 0x20" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 0x20" (identifier "uVar8") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))) (expression_statement "uVar4 = uVar6;" (assignment_expression "uVar4 = uVar6" (identifier "uVar4") (= "=") (identifier "uVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7))" (( "(") (binary_expression "(uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7)" (parenthesized_expression "(uVar8 == uVar5)" (( "(") (binary_expression "uVar8 == uVar5" (identifier "uVar8") (== "==") (identifier "uVar5")) () ")")) (&& "&&") (parenthesized_expression "(uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7)" (( "(") (comma_expression "uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7" (assignment_expression "uVar4 = local_44c" (identifier "uVar4") (= "=") (identifier "local_44c")) (, ",") (comma_expression "uVar6 = uVar7, local_44c != uVar7" (assignment_expression "uVar6 = uVar7" (identifier "uVar6") (= "=") (identifier "uVar7")) (, ",") (binary_expression "local_44c != uVar7" (identifier "local_44c") (!= "!=") (identifier "uVar7")))) () ")"))) () ")")) (; ";")) (} "}"))) (if_statement "if (uVar4 < local_44c + 1) {\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }" (if "if") (parenthesized_expression "(uVar4 < local_44c + 1)" (( "(") (binary_expression "uVar4 < local_44c + 1" (identifier "uVar4") (< "<") (binary_expression "local_44c + 1" (identifier "local_44c") (+ "+") (number_literal "1"))) () ")")) (compound_statement "{\n            local_448 = param_1 + local_448;\n            goto LAB_00059a86;\n          }" ({ "{") (expression_statement "local_448 = param_1 + local_448;" (assignment_expression "local_448 = param_1 + local_448" (identifier "local_448") (= "=") (binary_expression "param_1 + local_448" (identifier "param_1") (+ "+") (identifier "local_448"))) (; ";")) (goto_statement "goto LAB_00059a86;" (goto "goto") (statement_identifier "LAB_00059a86") (; ";")) (} "}"))) (expression_statement "local_448 = local_448 + local_438;" (assignment_expression "local_448 = local_448 + local_438" (identifier "local_448") (= "=") (binary_expression "local_448 + local_438" (identifier "local_448") (+ "+") (identifier "local_438"))) (; ";")) (expression_statement "local_44c = param_4 - local_438;" (assignment_expression "local_44c = param_4 - local_438" (identifier "local_44c") (= "=") (binary_expression "param_4 - local_438" (identifier "param_4") (- "-") (identifier "local_438"))) (; ";")) (} "}")) (else_clause "else {\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }" (else "else") (compound_statement "{\n          if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }\n          local_448 = local_448 + uVar6;\n          local_44c = 0;\n        }" ({ "{") (if_statement "if ((uVar6 < local_438) && (local_44c != 0)) {\n            uVar6 = param_4 - local_438;\n          }" (if "if") (parenthesized_expression "((uVar6 < local_438) && (local_44c != 0))" (( "(") (binary_expression "(uVar6 < local_438) && (local_44c != 0)" (parenthesized_expression "(uVar6 < local_438)" (( "(") (binary_expression "uVar6 < local_438" (identifier "uVar6") (< "<") (identifier "local_438")) () ")")) (&& "&&") (parenthesized_expression "(local_44c != 0)" (( "(") (binary_expression "local_44c != 0" (identifier "local_44c") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n            uVar6 = param_4 - local_438;\n          }" ({ "{") (expression_statement "uVar6 = param_4 - local_438;" (assignment_expression "uVar6 = param_4 - local_438" (identifier "uVar6") (= "=") (binary_expression "param_4 - local_438" (identifier "param_4") (- "-") (identifier "local_438"))) (; ";")) (} "}"))) (expression_statement "local_448 = local_448 + uVar6;" (assignment_expression "local_448 = local_448 + uVar6" (identifier "local_448") (= "=") (binary_expression "local_448 + uVar6" (identifier "local_448") (+ "+") (identifier "uVar6"))) (; ";")) (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" (identifier "local_44c") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";"))) (} "}"))) (} "}")))) (expression_statement "local_44c = 0;" (assignment_expression "local_44c = 0" (identifier "local_44c") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = param_4 - local_43c;" (assignment_expression "uVar6 = param_4 - local_43c" (identifier "uVar6") (= "=") (binary_expression "param_4 - local_43c" (identifier "param_4") (- "-") (identifier "local_43c"))) (; ";")) (if_statement "if (param_4 - local_43c < local_43c) {\n    uVar6 = local_43c;\n  }" (if "if") (parenthesized_expression "(param_4 - local_43c < local_43c)" (( "(") (binary_expression "param_4 - local_43c < local_43c" (binary_expression "param_4 - local_43c" (identifier "param_4") (- "-") (identifier "local_43c")) (< "<") (identifier "local_43c")) () ")")) (compound_statement "{\n    uVar6 = local_43c;\n  }" ({ "{") (expression_statement "uVar6 = local_43c;" (assignment_expression "uVar6 = local_43c" (identifier "uVar6") (= "=") (identifier "local_43c")) (; ";")) (} "}"))) (labeled_statement "LAB_00059930:\n  do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );" (statement_identifier "LAB_00059930") (: ":") (do_statement "do {\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  } while( true );" (do "do") (compound_statement "{\n    iVar9 = local_44c + param_4;\n    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);\n    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;\n    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);\n    if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }\n    param_2 = iVar9;\n    if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }\n  }" ({ "{") (expression_statement "iVar9 = local_44c + param_4;" (assignment_expression "iVar9 = local_44c + param_4" (identifier "iVar9") (= "=") (binary_expression "local_44c + param_4" (identifier "local_44c") (+ "+") (identifier "param_4"))) (; ";")) (expression_statement "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);" (assignment_expression "iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_000670c0(param_2 + param_1,0,iVar9 - param_2)" (identifier "FUN_000670c0") (argument_list "(param_2 + param_1,0,iVar9 - param_2)" (( "(") (binary_expression "param_2 + param_1" (identifier "param_2") (+ "+") (identifier "param_1")) (, ",") (number_literal "0") (, ",") (binary_expression "iVar9 - param_2" (identifier "iVar9") (- "-") (identifier "param_2")) () ")")))) (; ";")) (if_statement "if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;" (if "if") (parenthesized_expression "((iVar9 == 0) || (iVar3 != 0))" (( "(") (binary_expression "(iVar9 == 0) || (iVar3 != 0)" (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_00059a84;" (goto "goto") (statement_identifier "LAB_00059a84") (; ";"))) (expression_statement "uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);" (assignment_expression "uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9)" (identifier "uVar4") (= "=") (binary_expression "(uint)*(byte *)(param_1 + -1 + iVar9)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_1 + -1 + iVar9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -1 + iVar9)" (( "(") (binary_expression "param_1 + -1 + iVar9" (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1")) (+ "+") (identifier "iVar9")) () ")"))))) (; ";")) (if_statement "if (uVar4 - 0x41 < 0x1a) {\n      uVar4 = uVar4 + 0x20;\n    }" (if "if") (parenthesized_expression "(uVar4 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar4 - 0x41 < 0x1a" (binary_expression "uVar4 - 0x41" (identifier "uVar4") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n      uVar4 = uVar4 + 0x20;\n    }" ({ "{") (expression_statement "uVar4 = uVar4 + 0x20;" (assignment_expression "uVar4 = uVar4 + 0x20" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 0x20" (identifier "uVar4") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))) (expression_statement "param_2 = iVar9;" (assignment_expression "param_2 = iVar9" (identifier "param_2") (= "=") (identifier "iVar9")) (; ";")) (if_statement "if (local_420[uVar4] == 0) {\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }\n    else {\n      local_44c = local_44c + local_420[uVar4];\n    }" (if "if") (parenthesized_expression "(local_420[uVar4] == 0)" (( "(") (binary_expression "local_420[uVar4] == 0" (subscript_expression "local_420[uVar4]" (identifier "local_420") ([ "[") (identifier "uVar4") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_448 = param_1 + local_44c;\n      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }\n      do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);\n      local_44c = local_44c + uVar6 + 1;\n    }" ({ "{") (expression_statement "local_448 = param_1 + local_44c;" (assignment_expression "local_448 = param_1 + local_44c" (identifier "local_448") (= "=") (binary_expression "param_1 + local_44c" (identifier "param_1") (+ "+") (identifier "local_44c"))) (; ";")) (for_statement "for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }" (for "for") (( "(") (assignment_expression "uVar4 = local_43c" (identifier "uVar4") (= "=") (identifier "local_43c")) (; ";") (comma_expression "uVar5 = local_43c, uVar4 < local_454" (assignment_expression "uVar5 = local_43c" (identifier "uVar5") (= "=") (identifier "local_43c")) (, ",") (binary_expression "uVar4 < local_454" (identifier "uVar4") (< "<") (identifier "local_454"))) (; ";") (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) () ")") (compound_statement "{\n        uVar5 = (uint)param_3[uVar4];\n        if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar4);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n        if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }\n      }" ({ "{") (expression_statement "uVar5 = (uint)param_3[uVar4];" (assignment_expression "uVar5 = (uint)param_3[uVar4]" (identifier "uVar5") (= "=") (cast_expression "(uint)param_3[uVar4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_3[uVar4]" (identifier "param_3") ([ "[") (identifier "uVar4") (] "]")))) (; ";")) (if_statement "if (uVar5 - 0x41 < 0x1a) {\n          uVar5 = uVar5 + 0x20;\n        }" (if "if") (parenthesized_expression "(uVar5 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar5 - 0x41 < 0x1a" (binary_expression "uVar5 - 0x41" (identifier "uVar5") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n          uVar5 = uVar5 + 0x20;\n        }" ({ "{") (expression_statement "uVar5 = uVar5 + 0x20;" (assignment_expression "uVar5 = uVar5 + 0x20" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 0x20" (identifier "uVar5") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))) (expression_statement "uVar7 = (uint)*(byte *)(local_448 + uVar4);" (assignment_expression "uVar7 = (uint)*(byte *)(local_448 + uVar4)" (identifier "uVar7") (= "=") (binary_expression "(uint)*(byte *)(local_448 + uVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(local_448 + uVar4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_448 + uVar4)" (( "(") (binary_expression "local_448 + uVar4" (identifier "local_448") (+ "+") (identifier "uVar4")) () ")"))))) (; ";")) (if_statement "if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }" (if "if") (parenthesized_expression "(uVar7 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar7 - 0x41 < 0x1a" (binary_expression "uVar7 - 0x41" (identifier "uVar7") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n          uVar7 = uVar7 + 0x20;\n        }" ({ "{") (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 0x20" (identifier "uVar7") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))) (if_statement "if (uVar7 != uVar5) {\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }" (if "if") (parenthesized_expression "(uVar7 != uVar5)" (( "(") (binary_expression "uVar7 != uVar5" (identifier "uVar7") (!= "!=") (identifier "uVar5")) () ")")) (compound_statement "{\n          local_44c = local_44c + (1 - local_43c) + uVar4;\n          goto LAB_00059930;\n        }" ({ "{") (expression_statement "local_44c = local_44c + (1 - local_43c) + uVar4;" (assignment_expression "local_44c = local_44c + (1 - local_43c) + uVar4" (identifier "local_44c") (= "=") (binary_expression "local_44c + (1 - local_43c) + uVar4" (binary_expression "local_44c + (1 - local_43c)" (identifier "local_44c") (+ "+") (parenthesized_expression "(1 - local_43c)" (( "(") (binary_expression "1 - local_43c" (number_literal "1") (- "-") (identifier "local_43c")) () ")"))) (+ "+") (identifier "uVar4"))) (; ";")) (goto_statement "goto LAB_00059930;" (goto "goto") (statement_identifier "LAB_00059930") (; ";")) (} "}"))) (} "}"))) (do_statement "do {\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      } while (uVar7 == uVar4);" (do "do") (compound_statement "{\n        uVar5 = uVar5 - 1;\n        if (uVar5 == 0xffffffff) goto LAB_00059a86;\n        uVar4 = (uint)param_3[uVar5];\n        if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }\n        uVar7 = (uint)*(byte *)(local_448 + uVar5);\n        if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }\n      }" ({ "{") (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) (; ";")) (if_statement "if (uVar5 == 0xffffffff) goto LAB_00059a86;" (if "if") (parenthesized_expression "(uVar5 == 0xffffffff)" (( "(") (binary_expression "uVar5 == 0xffffffff" (identifier "uVar5") (== "==") (number_literal "0xffffffff")) () ")")) (goto_statement "goto LAB_00059a86;" (goto "goto") (statement_identifier "LAB_00059a86") (; ";"))) (expression_statement "uVar4 = (uint)param_3[uVar5];" (assignment_expression "uVar4 = (uint)param_3[uVar5]" (identifier "uVar4") (= "=") (cast_expression "(uint)param_3[uVar5]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_3[uVar5]" (identifier "param_3") ([ "[") (identifier "uVar5") (] "]")))) (; ";")) (if_statement "if (uVar4 - 0x41 < 0x1a) {\n          uVar4 = uVar4 + 0x20;\n        }" (if "if") (parenthesized_expression "(uVar4 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar4 - 0x41 < 0x1a" (binary_expression "uVar4 - 0x41" (identifier "uVar4") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n          uVar4 = uVar4 + 0x20;\n        }" ({ "{") (expression_statement "uVar4 = uVar4 + 0x20;" (assignment_expression "uVar4 = uVar4 + 0x20" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 0x20" (identifier "uVar4") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))) (expression_statement "uVar7 = (uint)*(byte *)(local_448 + uVar5);" (assignment_expression "uVar7 = (uint)*(byte *)(local_448 + uVar5)" (identifier "uVar7") (= "=") (binary_expression "(uint)*(byte *)(local_448 + uVar5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(local_448 + uVar5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_448 + uVar5)" (( "(") (binary_expression "local_448 + uVar5" (identifier "local_448") (+ "+") (identifier "uVar5")) () ")"))))) (; ";")) (if_statement "if (uVar7 - 0x41 < 0x1a) {\n          uVar7 = uVar7 + 0x20;\n        }" (if "if") (parenthesized_expression "(uVar7 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar7 - 0x41 < 0x1a" (binary_expression "uVar7 - 0x41" (identifier "uVar7") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n          uVar7 = uVar7 + 0x20;\n        }" ({ "{") (expression_statement "uVar7 = uVar7 + 0x20;" (assignment_expression "uVar7 = uVar7 + 0x20" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 0x20" (identifier "uVar7") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(uVar7 == uVar4)" (( "(") (binary_expression "uVar7 == uVar4" (identifier "uVar7") (== "==") (identifier "uVar4")) () ")")) (; ";")) (expression_statement "local_44c = local_44c + uVar6 + 1;" (assignment_expression "local_44c = local_44c + uVar6 + 1" (identifier "local_44c") (= "=") (binary_expression "local_44c + uVar6 + 1" (binary_expression "local_44c + uVar6" (identifier "local_44c") (+ "+") (identifier "uVar6")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n      local_44c = local_44c + local_420[uVar4];\n    }" (else "else") (compound_statement "{\n      local_44c = local_44c + local_420[uVar4];\n    }" ({ "{") (expression_statement "local_44c = local_44c + local_420[uVar4];" (assignment_expression "local_44c = local_44c + local_420[uVar4]" (identifier "local_44c") (= "=") (binary_expression "local_44c + local_420[uVar4]" (identifier "local_44c") (+ "+") (subscript_expression "local_420[uVar4]" (identifier "local_420") ([ "[") (identifier "uVar4") (] "]")))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";"))) (} "}")))

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

char * __regparm3
function_1(type_1 *var_16,size_t var_17,type_1 *var_7,size_t var_2)

{
  size_t *var_4;
  type_2 *var_11;
  int var_9;
  void *var_19;
  type_3 var_22;
  type_3 var_23;
  type_3 var_12;
  type_3 var_24;
  type_3 var_25;
  type_1 *puVar10;
  size_t var_26;
  size_t var_18;
  int var_1;
  type_3 var_13;
  type_3 var_21;
  int var_14;
  type_3 var_20;
  size_t var_8;
  size_t shift_table [256];
  size_t var_5 [3];
  type_4 uStack_14;
  
  uStack_14 = 0x5981b;
  var_5[0] = *(size_t *)(var_1 + 0x14);
  if (var_2 < 3) {
    var_20 = var_2 - 1;
    var_8 = 1;
  }
  else {
    var_20 = var_3(var_7,var_2,&var_8);
  }
  var_26 = var_8;
  var_4 = shift_table;
  do {
    *var_4 = var_2;
    var_4 = var_4 + 1;
  } while (var_5 != var_4);
  if (var_2 == 0) {
    var_9 = var_6((char *)var_7,(char *)(var_7 + var_8),var_20);
    if (var_9 == 0) {
LAB_00059a84:
      puVar10 = (type_1 *)0x0;
LAB_00059a86:
      if (var_5[0] != *(size_t *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
        var_10();
      }
      return (char *)puVar10;
    }
    var_13 = 0xffffffff;
  }
  else {
    var_13 = var_2 - 1;
    var_11 = var_7;
    do {
      while (var_12 = (type_3)*var_11, 0x19 < var_12 - 0x41) {
        var_9 = var_13 - (int)var_11;
        var_11 = var_11 + 1;
        shift_table[var_12] = (size_t)(var_7 + var_9);
        if (var_11 == var_7 + var_2) goto LAB_000598d1;
      }
      var_9 = var_13 - (int)var_11;
      var_11 = var_11 + 1;
      shift_table[var_12 + 0x20] = (size_t)(var_7 + var_9);
    } while (var_11 != var_7 + var_2);
LAB_000598d1:
    var_9 = var_6((char *)var_7,(char *)(var_7 + var_8),var_20);
    if (var_9 == 0) {
      var_21 = 0;
      var_14 = 0;
LAB_00059ad0:
      do {
        var_18 = var_14 + var_2;
        var_19 = var_15(var_16 + var_17,0,var_18 - var_17);
        if ((var_19 != (void *)0x0) || (var_18 == 0)) goto LAB_00059a84;
        var_12 = (type_3)var_16[var_18 - 1];
        if (var_12 - 0x41 < 0x1a) {
          var_12 = var_12 + 0x20;
        }
        var_12 = shift_table[var_12];
        var_17 = var_18;
        if (var_12 == 0) {
          var_12 = var_20;
          if (var_20 <= var_21) {
            var_12 = var_21;
          }
          if (var_12 < var_13) {
            do {
              var_22 = (type_3)var_7[var_12];
              if (var_22 - 0x41 < 0x1a) {
                var_22 = var_22 + 0x20;
              }
              var_23 = (type_3)var_16[var_12 + var_14];
              if (var_23 - 0x41 < 0x1a) {
                var_23 = var_23 + 0x20;
              }
              if (var_23 != var_22) {
                var_21 = 0;
                var_14 = var_14 + (1 - var_20) + var_12;
                goto LAB_00059ad0;
              }
              var_12 = var_12 + 1;
            } while (var_12 != var_13);
          }
          var_22 = var_20;
          var_12 = var_20;
          if (var_21 < var_20) {
            do {
              var_24 = var_12 - 1;
              var_23 = (type_3)var_7[var_24];
              if (var_23 - 0x41 < 0x1a) {
                var_23 = var_23 + 0x20;
              }
              var_25 = (type_3)var_16[var_24 + var_14];
              if (var_25 - 0x41 < 0x1a) {
                var_25 = var_25 + 0x20;
              }
              var_22 = var_12;
            } while ((var_25 == var_23) && (var_22 = var_21, var_12 = var_24, var_21 != var_24));
          }
          if (var_22 < var_21 + 1) {
            puVar10 = var_16 + var_14;
            goto LAB_00059a86;
          }
          var_14 = var_14 + var_26;
          var_21 = var_2 - var_26;
        }
        else {
          if ((var_12 < var_26) && (var_21 != 0)) {
            var_12 = var_2 - var_26;
          }
          var_14 = var_14 + var_12;
          var_21 = 0;
        }
      } while( true );
    }
  }
  var_21 = 0;
  var_12 = var_2 - var_20;
  if (var_2 - var_20 < var_20) {
    var_12 = var_20;
  }
  var_8 = var_12 + 1;
LAB_00059930:
  do {
    var_26 = var_21 + var_2;
    var_19 = var_15(var_16 + var_17,0,var_26 - var_17);
    if ((var_26 == 0) || (var_19 != (void *)0x0)) goto LAB_00059a84;
    var_22 = (type_3)var_16[var_26 - 1];
    if (var_22 - 0x41 < 0x1a) {
      var_22 = var_22 + 0x20;
    }
    var_17 = var_26;
    if (shift_table[var_22] == 0) {
      puVar10 = var_16 + var_21;
      for (var_22 = var_20; var_23 = var_20, var_22 < var_13; var_22 = var_22 + 1) {
        var_23 = (type_3)var_7[var_22];
        if (var_23 - 0x41 < 0x1a) {
          var_23 = var_23 + 0x20;
        }
        var_24 = (type_3)puVar10[var_22];
        if (var_24 - 0x41 < 0x1a) {
          var_24 = var_24 + 0x20;
        }
        if (var_24 != var_23) {
          var_21 = var_21 + (1 - var_20) + var_22;
          goto LAB_00059930;
        }
      }
      do {
        var_23 = var_23 - 1;
        if (var_23 == 0xffffffff) goto LAB_00059a86;
        var_22 = (type_3)var_7[var_23];
        if (var_22 - 0x41 < 0x1a) {
          var_22 = var_22 + 0x20;
        }
        var_24 = (type_3)puVar10[var_23];
        if (var_24 - 0x41 < 0x1a) {
          var_24 = var_24 + 0x20;
        }
      } while (var_24 == var_22);
      var_21 = var_21 + var_12 + 1;
    }
    else {
      var_21 = var_21 + shift_table[var_22];
    }
  } while( true );
}


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

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

int __regparm3 MASKED(int param_1,int param_2,byte *param_3,uint param_4)

{
  uint *puVar1;
  byte *pbVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  int iVar9;
  int in_GS_OFFSET;
  uint local_454;
  uint local_44c;
  int local_448;
  uint local_43c;
  uint local_438;
  uint local_424;
  uint local_420 [256];
  uint local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x5981b;
  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);
  if (param_4 < 3) {
    local_43c = param_4 - 1;
    local_438 = 1;
  }
  else {
    local_43c = FUN_00059640();
    local_438 = local_424;
  }
  puVar1 = local_420;
  do {
    *puVar1 = param_4;
    puVar1 = puVar1 + 1;
  } while (local_20 != puVar1);
  if (param_4 == 0) {
    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);
    if (iVar3 == 0) {
LAB_00059a84:
      local_448 = 0;
LAB_00059a86:
      if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
        FUN_0007ad20();
      }
      return local_448;
    }
    local_454 = 0xffffffff;
  }
  else {
    local_454 = param_4 - 1;
    pbVar2 = param_3;
    do {
      while (uVar6 = (uint)*pbVar2, 0x19 < uVar6 - 0x41) {
        iVar3 = local_454 - (int)pbVar2;
        pbVar2 = pbVar2 + 1;
        local_420[uVar6] = (uint)(param_3 + iVar3);
        if (pbVar2 == param_3 + param_4) goto LAB_000598d1;
      }
      iVar3 = local_454 - (int)pbVar2;
      pbVar2 = pbVar2 + 1;
      local_420[uVar6 + 0x20] = (uint)(param_3 + iVar3);
    } while (pbVar2 != param_3 + param_4);
LAB_000598d1:
    iVar3 = FUN_000595b0(param_3,param_3 + local_438,local_43c);
    if (iVar3 == 0) {
      local_44c = 0;
      local_448 = 0;
LAB_00059ad0:
      do {
        iVar9 = local_448 + param_4;
        iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);
        if ((iVar3 != 0) || (iVar9 == 0)) goto LAB_00059a84;
        uVar6 = (uint)*(byte *)(param_1 + -1 + iVar9);
        if (uVar6 - 0x41 < 0x1a) {
          uVar6 = uVar6 + 0x20;
        }
        uVar6 = local_420[uVar6];
        param_2 = iVar9;
        if (uVar6 == 0) {
          uVar6 = local_43c;
          if (local_43c <= local_44c) {
            uVar6 = local_44c;
          }
          if (uVar6 < local_454) {
            do {
              uVar4 = (uint)param_3[uVar6];
              if (uVar4 - 0x41 < 0x1a) {
                uVar4 = uVar4 + 0x20;
              }
              uVar5 = (uint)*(byte *)(local_448 + param_1 + uVar6);
              if (uVar5 - 0x41 < 0x1a) {
                uVar5 = uVar5 + 0x20;
              }
              if (uVar5 != uVar4) {
                local_44c = 0;
                local_448 = local_448 + (1 - local_43c) + uVar6;
                goto LAB_00059ad0;
              }
              uVar6 = uVar6 + 1;
            } while (uVar6 != local_454);
          }
          uVar4 = local_43c;
          uVar6 = local_43c;
          if (local_44c < local_43c) {
            do {
              uVar7 = uVar6 - 1;
              uVar5 = (uint)param_3[uVar7];
              if (uVar5 - 0x41 < 0x1a) {
                uVar5 = uVar5 + 0x20;
              }
              uVar8 = (uint)*(byte *)(param_1 + local_448 + uVar7);
              if (uVar8 - 0x41 < 0x1a) {
                uVar8 = uVar8 + 0x20;
              }
              uVar4 = uVar6;
            } while ((uVar8 == uVar5) && (uVar4 = local_44c, uVar6 = uVar7, local_44c != uVar7));
          }
          if (uVar4 < local_44c + 1) {
            local_448 = param_1 + local_448;
            goto LAB_00059a86;
          }
          local_448 = local_448 + local_438;
          local_44c = param_4 - local_438;
        }
        else {
          if ((uVar6 < local_438) && (local_44c != 0)) {
            uVar6 = param_4 - local_438;
          }
          local_448 = local_448 + uVar6;
          local_44c = 0;
        }
      } while( true );
    }
  }
  local_44c = 0;
  uVar6 = param_4 - local_43c;
  if (param_4 - local_43c < local_43c) {
    uVar6 = local_43c;
  }
LAB_00059930:
  do {
    iVar9 = local_44c + param_4;
    iVar3 = FUN_000670c0(param_2 + param_1,0,iVar9 - param_2);
    if ((iVar9 == 0) || (iVar3 != 0)) goto LAB_00059a84;
    uVar4 = (uint)*(byte *)(param_1 + -1 + iVar9);
    if (uVar4 - 0x41 < 0x1a) {
      uVar4 = uVar4 + 0x20;
    }
    param_2 = iVar9;
    if (local_420[uVar4] == 0) {
      local_448 = param_1 + local_44c;
      for (uVar4 = local_43c; uVar5 = local_43c, uVar4 < local_454; uVar4 = uVar4 + 1) {
        uVar5 = (uint)param_3[uVar4];
        if (uVar5 - 0x41 < 0x1a) {
          uVar5 = uVar5 + 0x20;
        }
        uVar7 = (uint)*(byte *)(local_448 + uVar4);
        if (uVar7 - 0x41 < 0x1a) {
          uVar7 = uVar7 + 0x20;
        }
        if (uVar7 != uVar5) {
          local_44c = local_44c + (1 - local_43c) + uVar4;
          goto LAB_00059930;
        }
      }
      do {
        uVar5 = uVar5 - 1;
        if (uVar5 == 0xffffffff) goto LAB_00059a86;
        uVar4 = (uint)param_3[uVar5];
        if (uVar4 - 0x41 < 0x1a) {
          uVar4 = uVar4 + 0x20;
        }
        uVar7 = (uint)*(byte *)(local_448 + uVar5);
        if (uVar7 - 0x41 < 0x1a) {
          uVar7 = uVar7 + 0x20;
        }
      } while (uVar7 == uVar4);
      local_44c = local_44c + uVar6 + 1;
    }
    else {
      local_44c = local_44c + local_420[uVar4];
    }
  } while( true );
}

