
/* WARNING: Type propagation algorithm not settling */

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

{
  uchar *puVar1;
  byte bVar2;
  size_t sVar3;
  int iVar4;
  size_t *psVar5;
  byte *pbVar6;
  int iVar7;
  void *pvVar8;
  uchar *puVar9;
  uchar *puVar10;
  uint uVar11;
  byte *needle_00;
  size_t sVar12;
  uchar *puVar13;
  uchar *puVar14;
  uchar *puVar15;
  int in_GS_OFFSET;
  undefined8 uVar16;
  uchar *local_450;
  uchar *local_444;
  uchar *local_440;
  size_t period;
  size_t shift_table [256];
  size_t local_20 [4];
  
  uVar16 = __x86_get_pc_thunk_di();
  puVar10 = (uchar *)((ulonglong)uVar16 >> 0x20);
  iVar4 = (int)uVar16;
  local_20[0] = *(size_t *)(in_GS_OFFSET + 0x14);
  if (haystack < (uchar *)0x3) {
    local_440 = haystack + -1;
    period = 1;
  }
  else {
    local_440 = (uchar *)critical_factorization(needle_00,(size_t)haystack,&period);
  }
  sVar3 = period;
  psVar5 = shift_table;
  do {
    *psVar5 = (size_t)haystack;
    psVar5 = psVar5 + 1;
  } while (local_20 != psVar5);
  if (haystack == (uchar *)0x0) {
    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);
    if (iVar7 == 0) goto LAB_00037757;
    local_444 = (uchar *)0xffffffff;
  }
  else {
    local_444 = haystack + -1;
    pbVar6 = needle_00;
    do {
      bVar2 = *pbVar6;
      sVar12 = (int)(needle_00 + (int)local_444) - (int)pbVar6;
      pbVar6 = pbVar6 + 1;
      shift_table[bVar2] = sVar12;
    } while (haystack + (int)needle_00 != pbVar6);
    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);
    if (iVar7 == 0) {
      puVar13 = (uchar *)0x0;
      local_450 = (uchar *)0x0;
LAB_000377b0:
      do {
        puVar14 = haystack + (int)local_450;
        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);
        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;
        uVar11 = shift_table[puVar14[iVar4 + -1]];
        puVar10 = puVar14;
        if (uVar11 == 0) {
          puVar14 = local_440;
          if (local_440 <= puVar13) {
            puVar14 = puVar13;
          }
          if (puVar14 < local_444) {
            do {
              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {
                puVar13 = (uchar *)0x0;
                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;
                goto LAB_000377b0;
              }
              puVar14 = puVar14 + 1;
            } while (puVar14 != local_444);
          }
          puVar14 = local_440;
          if ((puVar13 < local_440) &&
             (puVar1 = local_440 + -1,
             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {
            do {
              puVar14 = puVar1;
              if (puVar13 == puVar14) break;
              puVar1 = puVar14 + -1;
            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);
          }
          if (puVar14 < puVar13 + 1) {
            puVar13 = local_450 + iVar4;
            goto LAB_00037759;
          }
          local_450 = local_450 + sVar3;
          puVar13 = haystack + -sVar3;
        }
        else {
          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {
            uVar11 = (int)haystack - sVar3;
          }
          local_450 = local_450 + uVar11;
          puVar13 = (uchar *)0x0;
        }
      } while( true );
    }
  }
  puVar14 = haystack + -(int)local_440;
  if (haystack + -(int)local_440 < local_440) {
    puVar14 = local_440;
  }
  puVar1 = local_440 + -1;
  puVar15 = (uchar *)0x0;
  period = (size_t)(puVar14 + 1);
  while( true ) {
    puVar13 = haystack + (int)puVar15;
    pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar13 - (int)puVar10);
    if ((puVar13 == (uchar *)0x0) || (pvVar8 != (void *)0x0)) break;
    puVar10 = puVar13;
    if (shift_table[puVar13[iVar4 + -1]] == 0) {
      puVar13 = puVar15 + iVar4;
      if (local_440 < local_444) {
        local_450 = local_440;
        if (puVar13[(int)local_440] == needle_00[(int)local_440]) {
          do {
            local_450 = local_450 + 1;
            if (local_444 <= local_450) goto LAB_000376fd;
          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);
        }
        puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450;
      }
      else {
LAB_000376fd:
        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;
        puVar9 = puVar1;
        if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {
          do {
            puVar9 = puVar9 + -1;
            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;
          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);
        }
        puVar15 = puVar15 + (int)(puVar14 + 1);
      }
    }
    else {
      puVar15 = puVar15 + shift_table[puVar13[iVar4 + -1]];
    }
  }
LAB_00037757:
  puVar13 = (uchar *)0x0;
LAB_00037759:
  if (local_20[0] != *(size_t *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return (char *)puVar13;
}



int FUN_00037550(uint param_1)

{
  int iVar1;
  byte bVar2;
  uint uVar3;
  int iVar4;
  uint *puVar5;
  byte *pbVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  byte *__s1;
  uint uVar10;
  uint uVar11;
  int iVar12;
  int in_GS_OFFSET;
  undefined8 uVar13;
  uint local_450;
  uint local_444;
  uint local_440;
  uint local_43c;
  uint local_424;
  uint local_420 [256];
  uint local_20 [4];
  
  uVar13 = FUN_00027eac();
  iVar8 = (int)((ulonglong)uVar13 >> 0x20);
  iVar4 = (int)uVar13;
  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);
  if (param_1 < 3) {
    local_440 = param_1 - 1;
    local_43c = 1;
  }
  else {
    local_440 = FUN_000373f0();
    local_43c = local_424;
  }
  puVar5 = local_420;
  do {
    *puVar5 = param_1;
    puVar5 = puVar5 + 1;
  } while (local_20 != puVar5);
  if (param_1 == 0) {
    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);
    if (iVar7 == 0) goto LAB_00037757;
    local_444 = 0xffffffff;
  }
  else {
    local_444 = param_1 - 1;
    pbVar6 = __s1;
    do {
      bVar2 = *pbVar6;
      iVar7 = local_444 - (int)pbVar6;
      pbVar6 = pbVar6 + 1;
      local_420[bVar2] = (uint)(__s1 + iVar7);
    } while (__s1 + param_1 != pbVar6);
    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);
    if (iVar7 == 0) {
      uVar11 = 0;
      local_450 = 0;
LAB_000377b0:
      do {
        iVar7 = local_450 + param_1;
        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);
        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;
        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];
        iVar8 = iVar7;
        if (uVar10 == 0) {
          uVar10 = local_440;
          if (local_440 <= uVar11) {
            uVar10 = uVar11;
          }
          if (uVar10 < local_444) {
            do {
              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {
                uVar11 = 0;
                local_450 = local_450 + (1 - local_440) + uVar10;
                goto LAB_000377b0;
              }
              uVar10 = uVar10 + 1;
            } while (uVar10 != local_444);
          }
          uVar10 = local_440;
          if ((uVar11 < local_440) &&
             (uVar3 = local_440 - 1,
             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {
            do {
              uVar10 = uVar3;
              if (uVar11 == uVar10) break;
              uVar3 = uVar10 - 1;
            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));
          }
          if (uVar10 < uVar11 + 1) {
            iVar7 = iVar4 + local_450;
            goto LAB_00037759;
          }
          local_450 = local_450 + local_43c;
          uVar11 = param_1 - local_43c;
        }
        else {
          if ((uVar10 < local_43c) && (uVar11 != 0)) {
            uVar10 = param_1 - local_43c;
          }
          local_450 = local_450 + uVar10;
          uVar11 = 0;
        }
      } while( true );
    }
  }
  uVar11 = param_1 - local_440;
  if (param_1 - local_440 < local_440) {
    uVar11 = local_440;
  }
  iVar1 = local_440 - 1;
  iVar12 = 0;
  while( true ) {
    iVar7 = param_1 + iVar12;
    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);
    if ((iVar7 == 0) || (iVar8 != 0)) break;
    iVar8 = iVar7;
    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {
      iVar7 = iVar4 + iVar12;
      if (local_440 < local_444) {
        local_450 = local_440;
        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {
          do {
            local_450 = local_450 + 1;
            if (local_444 <= local_450) goto LAB_000376fd;
          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));
        }
        iVar12 = iVar12 + (1 - local_440) + local_450;
      }
      else {
LAB_000376fd:
        if (iVar1 == -1) goto LAB_00037759;
        iVar9 = iVar1;
        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {
          do {
            iVar9 = iVar9 + -1;
            if (iVar9 == -1) goto LAB_00037759;
          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));
        }
        iVar12 = iVar12 + uVar11 + 1;
      }
    }
    else {
      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];
    }
  }
LAB_00037757:
  iVar7 = 0;
LAB_00037759:
  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00038830();
  }
  return iVar7;
}


PUSH EBP
PUSH EDI
CALL 0x00027eac
ADD EDI,0x10895
PUSH ESI
PUSH EBX
SUB ESP,0x44c
MOV dword ptr [ESP + 0x10],EAX
MOV ESI,dword ptr [ESP + 0x460]
MOV dword ptr [ESP + 0x14],EDI
MOV EDI,EDX
MOV dword ptr [ESP + 0x24],ECX
MOV EDX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x43c],EDX
XOR EDX,EDX
CMP ESI,0x2
JBE 0x000378d9
MOV EAX,ECX
MOV EDX,ESI
LEA ECX,[ESP + 0x38]
CALL 0x000373f0
MOV dword ptr [ESP + 0x1c],EAX
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x20],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 0x000375c0
MOV EAX,dword ptr [ESP + 0x24]
MOV EBX,dword ptr [ESP + 0x20]
ADD EBX,EAX
MOV dword ptr [ESP + 0xc],EBX
TEST ESI,ESI
JZ 0x000378f5
LEA EDX,[ESI + -0x1]
MOV EBX,EAX
LEA EBP,[ESI + EAX*0x1]
MOV dword ptr [ESP + 0x18],EDX
ADD EBX,EDX
LEA ESI,[ESI]
MOVZX EDX,byte ptr [EAX]
MOV ECX,EBX
SUB ECX,EAX
ADD EAX,0x1
MOV dword ptr [ESP + EDX*0x4 + 0x3c],ECX
CMP EBP,EAX
JNZ 0x000375f0
SUB ESP,0x4
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x30]
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x00012170
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00037783
MOV EBX,dword ptr [ESP + 0x1c]
MOV EAX,ESI
MOV dword ptr [ESP + 0x460],ESI
MOV ECX,dword ptr [ESP + 0x10]
MOV EBP,dword ptr [ESP + 0x24]
SUB EAX,EBX
CMP EAX,EBX
CMOVC EAX,EBX
XOR EDX,EDX
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 + 0x20],EAX
MOV EAX,EDI
MOV EDI,EDX
LEA ESI,[ESI]
MOV ESI,dword ptr [ESP + 0x460]
SUB ESP,0x4
ADD ESI,EDI
MOV EBX,ESI
SUB EBX,EAX
ADD EAX,ECX
PUSH EBX
PUSH 0x0
MOV dword ptr [ESP + 0x18],ECX
PUSH EAX
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x00036f10
ADD ESP,0x10
TEST ESI,ESI
JZ 0x00037757
TEST EAX,EAX
MOV ECX,dword ptr [ESP + 0xc]
JNZ 0x00037757
MOVZX EAX,byte ptr [ECX + ESI*0x1 + -0x1]
MOV EAX,dword ptr [ESP + EAX*0x4 + 0x3c]
TEST EAX,EAX
JZ 0x000376b8
ADD EDI,EAX
MOV EAX,ESI
JMP 0x00037668
MOV EBX,dword ptr [ESP + 0x18]
CMP dword ptr [ESP + 0x1c],EBX
LEA EBX,[ECX + EDI*0x1]
JNC 0x000376fd
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP + 0xc],EAX
MOVZX EDX,byte ptr [EBP + EAX*0x1]
CMP byte ptr [EBX + EAX*0x1],DL
JNZ 0x00037748
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x10],ECX
JMP 0x000376f2
MOVZX ECX,byte ptr [EBX + EAX*0x1]
CMP byte ptr [EBP + EAX*0x1],CL
JNZ 0x00037740
ADD EAX,0x1
CMP EAX,EDX
JC 0x000376e8
MOV ECX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0x28]
CMP EAX,-0x1
JZ 0x00037732
MOV dword ptr [ESP + 0xc],EAX
MOVZX EDX,byte ptr [EBP + EAX*0x1]
CMP byte ptr [EBX + EAX*0x1],DL
JZ 0x0003772a
JMP 0x00037778
MOVZX EDX,byte ptr [EBX + EAX*0x1]
CMP byte ptr [EBP + EAX*0x1],DL
JNZ 0x00037778
SUB EAX,0x1
CMP EAX,-0x1
JNZ 0x00037720
MOV EAX,EBX
JMP 0x00037759
MOV dword ptr [ESP + 0xc],EAX
MOV ECX,dword ptr [ESP + 0x10]
ADD EDI,dword ptr [ESP + 0x20]
MOV EAX,ESI
ADD EDI,dword ptr [ESP + 0xc]
JMP 0x00037668
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x43c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x0003793c
ADD ESP,0x44c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD EDI,dword ptr [ESP + 0x2c]
MOV EAX,ESI
JMP 0x00037668
MOV EAX,0x1
SUB EAX,dword ptr [ESP + 0x1c]
MOV EBP,dword ptr [ESP + 0x24]
XOR EDX,EDX
MOV dword ptr [ESP + 0xc],0x0
MOV dword ptr [ESP + 0x460],ESI
MOV dword ptr [ESP + 0x28],EAX
MOV EAX,EDI
MOV EDI,dword ptr [ESP + 0x18]
LEA ESI,[ESI]
NOP
MOV ESI,dword ptr [ESP + 0xc]
ADD ESI,dword ptr [ESP + 0x460]
MOV dword ptr [ESP + 0x18],EDX
SUB ESP,0x4
MOV ECX,ESI
SUB ECX,EAX
PUSH ECX
PUSH 0x0
ADD EAX,dword ptr [ESP + 0x1c]
PUSH EAX
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x00036f10
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00037757
TEST ESI,ESI
MOV EDX,dword ptr [ESP + 0x18]
JZ 0x00037757
MOV EAX,dword ptr [ESP + 0x10]
MOVZX EAX,byte ptr [EAX + ESI*0x1 + -0x1]
MOV EAX,dword ptr [ESP + EAX*0x4 + 0x3c]
TEST EAX,EAX
JZ 0x00037828
MOV EBX,dword ptr [ESP + 0x20]
CMP EAX,EBX
JNC 0x0003781a
TEST EDX,EDX
MOV EDX,dword ptr [ESP + 0x460]
SETNZ CL
SUB EDX,EBX
TEST CL,CL
CMOVNZ EAX,EDX
ADD dword ptr [ESP + 0xc],EAX
XOR EDX,EDX
MOV EAX,ESI
JMP 0x000377b0
MOV EAX,dword ptr [ESP + 0x1c]
CMP EDX,EAX
MOV ECX,EAX
CMOVNC ECX,EDX
CMP ECX,EDI
JNC 0x00037870
MOV EAX,dword ptr [ESP + 0x10]
ADD EAX,dword ptr [ESP + 0xc]
JMP 0x0003784f
ADD ECX,0x1
CMP ECX,EDI
JZ 0x00037870
MOVZX EBX,byte ptr [EAX + ECX*0x1]
CMP byte ptr [EBP + ECX*0x1],BL
JZ 0x00037848
MOV EAX,dword ptr [ESP + 0xc]
ADD EAX,dword ptr [ESP + 0x28]
XOR EDX,EDX
ADD EAX,ECX
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,ESI
JMP 0x000377b0
MOV EBX,dword ptr [ESP + 0x1c]
LEA ECX,[EBX + -0x1]
CMP EDX,EBX
JNC 0x0003792b
MOV EAX,dword ptr [ESP + 0x10]
ADD EAX,dword ptr [ESP + 0xc]
MOVZX EBX,byte ptr [EBP + EBX*0x1 + -0x1]
CMP byte ptr [EAX + ECX*0x1],BL
JNZ 0x00037925
MOV dword ptr [ESP + 0x18],EDX
JMP 0x000378ad
MOVZX EDX,byte ptr [ECX + EAX*0x1 + -0x1]
CMP byte ptr [EBP + ECX*0x1 + -0x1],DL
JNZ 0x000378b6
MOV ECX,EBX
LEA EBX,[ECX + -0x1]
CMP dword ptr [ESP + 0x18],ECX
JNZ 0x000378a0
MOV EDX,dword ptr [ESP + 0x18]
ADD EDX,0x1
CMP EDX,ECX
JA 0x0003792f
MOV EBX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x460]
MOV EAX,ESI
ADD dword ptr [ESP + 0xc],EBX
SUB EDX,EBX
JMP 0x000377b0
LEA EAX,[ESI + -0x1]
MOV dword ptr [ESP + 0x38],0x1
MOV dword ptr [ESP + 0x1c],EAX
MOV dword ptr [ESP + 0x20],0x1
JMP 0x000375ac
SUB ESP,0x4
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x30]
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x00012170
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00037757
MOV dword ptr [ESP + 0x18],0xffffffff
JMP 0x00037625
MOV ECX,dword ptr [ESP + 0x1c]
JMP 0x000378ba
MOV ECX,EBX
JMP 0x000378ba
MOV EAX,dword ptr [ESP + 0x10]
ADD EAX,dword ptr [ESP + 0xc]
JMP 0x00037759
CALL 0x00038830
(translation_unit "int FUN_00037550(uint param_1)\n\n{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  int iVar4;\n  uint *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  byte *__s1;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  undefined8 uVar13;\n  uint local_450;\n  uint local_444;\n  uint local_440;\n  uint local_43c;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [4];\n  \n  uVar13 = FUN_00027eac();\n  iVar8 = (int)((ulonglong)uVar13 >> 0x20);\n  iVar4 = (int)uVar13;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 3) {\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }\n  else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }\n  puVar5 = local_420;\n  do {\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  } while (local_20 != puVar5);\n  if (param_1 == 0) {\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }\n  else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }\n  uVar11 = param_1 - local_440;\n  if (param_1 - local_440 < local_440) {\n    uVar11 = local_440;\n  }\n  iVar1 = local_440 - 1;\n  iVar12 = 0;\n  while( true ) {\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }\nLAB_00037757:\n  iVar7 = 0;\nLAB_00037759:\n  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00038830();\n  }\n  return iVar7;\n}\n\n" (function_definition "int FUN_00037550(uint param_1)\n\n{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  int iVar4;\n  uint *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  byte *__s1;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  undefined8 uVar13;\n  uint local_450;\n  uint local_444;\n  uint local_440;\n  uint local_43c;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [4];\n  \n  uVar13 = FUN_00027eac();\n  iVar8 = (int)((ulonglong)uVar13 >> 0x20);\n  iVar4 = (int)uVar13;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 3) {\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }\n  else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }\n  puVar5 = local_420;\n  do {\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  } while (local_20 != puVar5);\n  if (param_1 == 0) {\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }\n  else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }\n  uVar11 = param_1 - local_440;\n  if (param_1 - local_440 < local_440) {\n    uVar11 = local_440;\n  }\n  iVar1 = local_440 - 1;\n  iVar12 = 0;\n  while( true ) {\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }\nLAB_00037757:\n  iVar7 = 0;\nLAB_00037759:\n  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00038830();\n  }\n  return iVar7;\n}" primitive_type (function_declarator "FUN_00037550(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  int iVar4;\n  uint *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  byte *__s1;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  undefined8 uVar13;\n  uint local_450;\n  uint local_444;\n  uint local_440;\n  uint local_43c;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [4];\n  \n  uVar13 = FUN_00027eac();\n  iVar8 = (int)((ulonglong)uVar13 >> 0x20);\n  iVar4 = (int)uVar13;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 3) {\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }\n  else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }\n  puVar5 = local_420;\n  do {\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  } while (local_20 != puVar5);\n  if (param_1 == 0) {\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }\n  else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }\n  uVar11 = param_1 - local_440;\n  if (param_1 - local_440 < local_440) {\n    uVar11 = local_440;\n  }\n  iVar1 = local_440 - 1;\n  iVar12 = 0;\n  while( true ) {\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }\nLAB_00037757:\n  iVar7 = 0;\nLAB_00037759:\n  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00038830();\n  }\n  return iVar7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "byte *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar13;" type_identifier identifier ;) (declaration "uint local_450;" type_identifier identifier ;) (declaration "uint local_444;" type_identifier identifier ;) (declaration "uint local_440;" type_identifier identifier ;) (declaration "uint local_43c;" 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 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "uVar13 = FUN_00027eac();" (assignment_expression "uVar13 = FUN_00027eac()" identifier = (call_expression "FUN_00027eac()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar8 = (int)((ulonglong)uVar13 >> 0x20);" (assignment_expression "iVar8 = (int)((ulonglong)uVar13 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar13 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar13 >> 0x20)" ( (binary_expression "(ulonglong)uVar13 >> 0x20" (cast_expression "(ulonglong)uVar13" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar4 = (int)uVar13;" (assignment_expression "iVar4 = (int)uVar13" identifier = (cast_expression "(int)uVar13" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (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_1 < 3) {\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }\n  else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }" if (parenthesized_expression "(param_1 < 3)" ( (binary_expression "param_1 < 3" identifier < number_literal) )) (compound_statement "{\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }" { (expression_statement "local_440 = param_1 - 1;" (assignment_expression "local_440 = param_1 - 1" identifier = (binary_expression "param_1 - 1" identifier - number_literal)) ;) (expression_statement "local_43c = 1;" (assignment_expression "local_43c = 1" identifier = number_literal) ;) }) (else_clause "else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }" else (compound_statement "{\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }" { (expression_statement "local_440 = FUN_000373f0();" (assignment_expression "local_440 = FUN_000373f0()" identifier = (call_expression "FUN_000373f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_43c = local_424;" (assignment_expression "local_43c = local_424" identifier = identifier) ;) }))) (expression_statement "puVar5 = local_420;" (assignment_expression "puVar5 = local_420" identifier = identifier) ;) (do_statement "do {\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  } while (local_20 != puVar5);" do (compound_statement "{\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  }" { (expression_statement "*puVar5 = param_1;" (assignment_expression "*puVar5 = param_1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_20 != puVar5)" ( (binary_expression "local_20 != puVar5" identifier != identifier) )) ;) (if_statement "if (param_1 == 0) {\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }\n  else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }" { (expression_statement "iVar7 = memcmp(__s1,__s1 + local_43c,local_440);" (assignment_expression "iVar7 = memcmp(__s1,__s1 + local_43c,local_440)" identifier = (call_expression "memcmp(__s1,__s1 + local_43c,local_440)" identifier (argument_list "(__s1,__s1 + local_43c,local_440)" ( identifier , (binary_expression "__s1 + local_43c" identifier + identifier) , identifier )))) ;) (if_statement "if (iVar7 == 0) goto LAB_00037757;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00037757;" goto statement_identifier ;)) (expression_statement "local_444 = 0xffffffff;" (assignment_expression "local_444 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }" else (compound_statement "{\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }" { (expression_statement "local_444 = param_1 - 1;" (assignment_expression "local_444 = param_1 - 1" identifier = (binary_expression "param_1 - 1" identifier - number_literal)) ;) (expression_statement "pbVar6 = __s1;" (assignment_expression "pbVar6 = __s1" identifier = identifier) ;) (do_statement "do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);" do (compound_statement "{\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    }" { (expression_statement "bVar2 = *pbVar6;" (assignment_expression "bVar2 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) (expression_statement "iVar7 = local_444 - (int)pbVar6;" (assignment_expression "iVar7 = local_444 - (int)pbVar6" identifier = (binary_expression "local_444 - (int)pbVar6" identifier - (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "local_420[bVar2] = (uint)(__s1 + iVar7);" (assignment_expression "local_420[bVar2] = (uint)(__s1 + iVar7)" (subscript_expression "local_420[bVar2]" identifier [ identifier ]) = (call_expression "(uint)(__s1 + iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(__s1 + iVar7)" ( (binary_expression "__s1 + iVar7" identifier + identifier) )))) ;) }) while (parenthesized_expression "(__s1 + param_1 != pbVar6)" ( (binary_expression "__s1 + param_1 != pbVar6" (binary_expression "__s1 + param_1" identifier + identifier) != identifier) )) ;) (expression_statement "iVar7 = memcmp(__s1,__s1 + local_43c,local_440);" (assignment_expression "iVar7 = memcmp(__s1,__s1 + local_43c,local_440)" identifier = (call_expression "memcmp(__s1,__s1 + local_43c,local_440)" identifier (argument_list "(__s1,__s1 + local_43c,local_440)" ( identifier , (binary_expression "__s1 + local_43c" identifier + identifier) , identifier )))) ;) (if_statement "if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "local_450 = 0;" (assignment_expression "local_450 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );" statement_identifier : (do_statement "do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );" do (compound_statement "{\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      }" { (expression_statement "iVar7 = local_450 + param_1;" (assignment_expression "iVar7 = local_450 + param_1" identifier = (binary_expression "local_450 + param_1" identifier + identifier)) ;) (expression_statement "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);" (assignment_expression "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" identifier = (call_expression "FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" identifier (argument_list "(iVar8 + iVar4,0,iVar7 - iVar8)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) , number_literal , (binary_expression "iVar7 - iVar8" identifier - identifier) )))) ;) (if_statement "if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;" if (parenthesized_expression "((iVar8 != 0) || (iVar7 == 0))" ( (binary_expression "(iVar8 != 0) || (iVar7 == 0)" (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_00037757;" goto statement_identifier ;)) (expression_statement "uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];" (assignment_expression "uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier = (subscript_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier [ (pointer_expression "*(byte *)(iVar4 + -1 + iVar7)" * (cast_expression "(byte *)(iVar4 + -1 + iVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -1 + iVar7)" ( (binary_expression "iVar4 + -1 + iVar7" (binary_expression "iVar4 + -1" identifier + number_literal) + identifier) )))) ])) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) (if_statement "if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }" if (parenthesized_expression "(uVar10 == 0)" ( (binary_expression "uVar10 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }" { (expression_statement "uVar10 = local_440;" (assignment_expression "uVar10 = local_440" identifier = identifier) ;) (if_statement "if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }" if (parenthesized_expression "(local_440 <= uVar11)" ( (binary_expression "local_440 <= uVar11" identifier <= identifier) )) (compound_statement "{\n            uVar10 = uVar11;\n          }" { (expression_statement "uVar10 = uVar11;" (assignment_expression "uVar10 = uVar11" identifier = identifier) ;) })) (if_statement "if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }" if (parenthesized_expression "(uVar10 < local_444)" ( (binary_expression "uVar10 < local_444" identifier < identifier) )) (compound_statement "{\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }" { (do_statement "do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);" do (compound_statement "{\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            }" { (if_statement "if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }" if (parenthesized_expression "(__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10))" ( (binary_expression "__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)" (subscript_expression "__s1[uVar10]" identifier [ identifier ]) != (pointer_expression "*(byte *)(iVar4 + local_450 + uVar10)" * (cast_expression "(byte *)(iVar4 + local_450 + uVar10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + local_450 + uVar10)" ( (binary_expression "iVar4 + local_450 + uVar10" (binary_expression "iVar4 + local_450" identifier + identifier) + identifier) ))))) )) (compound_statement "{\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "local_450 = local_450 + (1 - local_440) + uVar10;" (assignment_expression "local_450 = local_450 + (1 - local_440) + uVar10" identifier = (binary_expression "local_450 + (1 - local_440) + uVar10" (binary_expression "local_450 + (1 - local_440)" identifier + (parenthesized_expression "(1 - local_440)" ( (binary_expression "1 - local_440" number_literal - identifier) ))) + identifier)) ;) (goto_statement "goto LAB_000377b0;" goto statement_identifier ;) })) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar10 != local_444)" ( (binary_expression "uVar10 != local_444" identifier != identifier) )) ;) })) (expression_statement "uVar10 = local_440;" (assignment_expression "uVar10 = local_440" identifier = identifier) ;) (if_statement "if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }" if (parenthesized_expression "((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1]))" ( (binary_expression "(uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])" (parenthesized_expression "(uVar11 < local_440)" ( (binary_expression "uVar11 < local_440" identifier < identifier) )) && (parenthesized_expression "(uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])" ( (comma_expression "uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1]" (assignment_expression "uVar3 = local_440 - 1" identifier = (binary_expression "local_440 - 1" identifier - number_literal)) , (binary_expression "*(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1]" (pointer_expression "*(byte *)(iVar4 + local_450 + (local_440 - 1))" * (cast_expression "(byte *)(iVar4 + local_450 + (local_440 - 1))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + local_450 + (local_440 - 1))" ( (binary_expression "iVar4 + local_450 + (local_440 - 1)" (binary_expression "iVar4 + local_450" identifier + identifier) + (parenthesized_expression "(local_440 - 1)" ( (binary_expression "local_440 - 1" identifier - number_literal) ))) )))) == (subscript_expression "__s1[local_440 - 1]" identifier [ (binary_expression "local_440 - 1" identifier - number_literal) ]))) ))) )) (compound_statement "{\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }" { (do_statement "do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));" do (compound_statement "{\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            }" { (expression_statement "uVar10 = uVar3;" (assignment_expression "uVar10 = uVar3" identifier = identifier) ;) (if_statement "if (uVar11 == uVar10) break;" if (parenthesized_expression "(uVar11 == uVar10)" ( (binary_expression "uVar11 == uVar10" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = uVar10 - 1;" (assignment_expression "uVar3 = uVar10 - 1" identifier = (binary_expression "uVar10 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450))" ( (binary_expression "__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450)" (subscript_expression "__s1[uVar10 - 1]" identifier [ (binary_expression "uVar10 - 1" identifier - number_literal) ]) == (pointer_expression "*(byte *)((uVar10 - 1) + iVar4 + local_450)" * (cast_expression "(byte *)((uVar10 - 1) + iVar4 + local_450)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uVar10 - 1) + iVar4 + local_450)" ( (binary_expression "(uVar10 - 1) + iVar4 + local_450" (binary_expression "(uVar10 - 1) + iVar4" (parenthesized_expression "(uVar10 - 1)" ( (binary_expression "uVar10 - 1" identifier - number_literal) )) + identifier) + identifier) ))))) )) ;) })) (if_statement "if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }" if (parenthesized_expression "(uVar10 < uVar11 + 1)" ( (binary_expression "uVar10 < uVar11 + 1" identifier < (binary_expression "uVar11 + 1" identifier + number_literal)) )) (compound_statement "{\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }" { (expression_statement "iVar7 = iVar4 + local_450;" (assignment_expression "iVar7 = iVar4 + local_450" identifier = (binary_expression "iVar4 + local_450" identifier + identifier)) ;) (goto_statement "goto LAB_00037759;" goto statement_identifier ;) })) (expression_statement "local_450 = local_450 + local_43c;" (assignment_expression "local_450 = local_450 + local_43c" identifier = (binary_expression "local_450 + local_43c" identifier + identifier)) ;) (expression_statement "uVar11 = param_1 - local_43c;" (assignment_expression "uVar11 = param_1 - local_43c" identifier = (binary_expression "param_1 - local_43c" identifier - identifier)) ;) }) (else_clause "else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }" else (compound_statement "{\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }" { (if_statement "if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }" if (parenthesized_expression "((uVar10 < local_43c) && (uVar11 != 0))" ( (binary_expression "(uVar10 < local_43c) && (uVar11 != 0)" (parenthesized_expression "(uVar10 < local_43c)" ( (binary_expression "uVar10 < local_43c" identifier < identifier) )) && (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) ))) )) (compound_statement "{\n            uVar10 = param_1 - local_43c;\n          }" { (expression_statement "uVar10 = param_1 - local_43c;" (assignment_expression "uVar10 = param_1 - local_43c" identifier = (binary_expression "param_1 - local_43c" identifier - identifier)) ;) })) (expression_statement "local_450 = local_450 + uVar10;" (assignment_expression "local_450 = local_450 + uVar10" identifier = (binary_expression "local_450 + uVar10" identifier + identifier)) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;)) })) }))) (expression_statement "uVar11 = param_1 - local_440;" (assignment_expression "uVar11 = param_1 - local_440" identifier = (binary_expression "param_1 - local_440" identifier - identifier)) ;) (if_statement "if (param_1 - local_440 < local_440) {\n    uVar11 = local_440;\n  }" if (parenthesized_expression "(param_1 - local_440 < local_440)" ( (binary_expression "param_1 - local_440 < local_440" (binary_expression "param_1 - local_440" identifier - identifier) < identifier) )) (compound_statement "{\n    uVar11 = local_440;\n  }" { (expression_statement "uVar11 = local_440;" (assignment_expression "uVar11 = local_440" identifier = identifier) ;) })) (expression_statement "iVar1 = local_440 - 1;" (assignment_expression "iVar1 = local_440 - 1" identifier = (binary_expression "local_440 - 1" identifier - number_literal)) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }" { (expression_statement "iVar7 = param_1 + iVar12;" (assignment_expression "iVar7 = param_1 + iVar12" identifier = (binary_expression "param_1 + iVar12" identifier + identifier)) ;) (expression_statement "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);" (assignment_expression "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" identifier = (call_expression "FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" identifier (argument_list "(iVar8 + iVar4,0,iVar7 - iVar8)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) , number_literal , (binary_expression "iVar7 - iVar8" identifier - identifier) )))) ;) (if_statement "if ((iVar7 == 0) || (iVar8 != 0)) break;" if (parenthesized_expression "((iVar7 == 0) || (iVar8 != 0))" ( (binary_expression "(iVar7 == 0) || (iVar8 != 0)" (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) (if_statement "if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }" if (parenthesized_expression "(local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0)" ( (binary_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0" (subscript_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier [ (pointer_expression "*(byte *)(iVar4 + -1 + iVar7)" * (cast_expression "(byte *)(iVar4 + -1 + iVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -1 + iVar7)" ( (binary_expression "iVar4 + -1 + iVar7" (binary_expression "iVar4 + -1" identifier + number_literal) + identifier) )))) ]) == number_literal) )) (compound_statement "{\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }" { (expression_statement "iVar7 = iVar4 + iVar12;" (assignment_expression "iVar7 = iVar4 + iVar12" identifier = (binary_expression "iVar4 + iVar12" identifier + identifier)) ;) (if_statement "if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }" if (parenthesized_expression "(local_440 < local_444)" ( (binary_expression "local_440 < local_444" identifier < identifier) )) (compound_statement "{\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }" { (expression_statement "local_450 = local_440;" (assignment_expression "local_450 = local_440" identifier = identifier) ;) (if_statement "if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }" if (parenthesized_expression "(*(byte *)(iVar7 + local_440) == __s1[local_440])" ( (binary_expression "*(byte *)(iVar7 + local_440) == __s1[local_440]" (pointer_expression "*(byte *)(iVar7 + local_440)" * (cast_expression "(byte *)(iVar7 + local_440)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + local_440)" ( (binary_expression "iVar7 + local_440" identifier + identifier) )))) == (subscript_expression "__s1[local_440]" identifier [ identifier ])) )) (compound_statement "{\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }" { (do_statement "do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));" do (compound_statement "{\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          }" { (expression_statement "local_450 = local_450 + 1;" (assignment_expression "local_450 = local_450 + 1" identifier = (binary_expression "local_450 + 1" identifier + number_literal)) ;) (if_statement "if (local_444 <= local_450) goto LAB_000376fd;" if (parenthesized_expression "(local_444 <= local_450)" ( (binary_expression "local_444 <= local_450" identifier <= identifier) )) (goto_statement "goto LAB_000376fd;" goto statement_identifier ;)) }) while (parenthesized_expression "(__s1[local_450] == *(byte *)(iVar7 + local_450))" ( (binary_expression "__s1[local_450] == *(byte *)(iVar7 + local_450)" (subscript_expression "__s1[local_450]" identifier [ identifier ]) == (pointer_expression "*(byte *)(iVar7 + local_450)" * (cast_expression "(byte *)(iVar7 + local_450)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + local_450)" ( (binary_expression "iVar7 + local_450" identifier + identifier) ))))) )) ;) })) (expression_statement "iVar12 = iVar12 + (1 - local_440) + local_450;" (assignment_expression "iVar12 = iVar12 + (1 - local_440) + local_450" identifier = (binary_expression "iVar12 + (1 - local_440) + local_450" (binary_expression "iVar12 + (1 - local_440)" identifier + (parenthesized_expression "(1 - local_440)" ( (binary_expression "1 - local_440" number_literal - identifier) ))) + identifier)) ;) }) (else_clause "else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }" else (compound_statement "{\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }" { (labeled_statement "LAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;" statement_identifier : (if_statement "if (iVar1 == -1) goto LAB_00037759;" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00037759;" goto statement_identifier ;))) (expression_statement "iVar9 = iVar1;" (assignment_expression "iVar9 = iVar1" identifier = identifier) ;) (if_statement "if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }" if (parenthesized_expression "(*(byte *)(iVar7 + iVar1) == __s1[iVar1])" ( (binary_expression "*(byte *)(iVar7 + iVar1) == __s1[iVar1]" (pointer_expression "*(byte *)(iVar7 + iVar1)" * (cast_expression "(byte *)(iVar7 + iVar1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + iVar1)" ( (binary_expression "iVar7 + iVar1" identifier + identifier) )))) == (subscript_expression "__s1[iVar1]" identifier [ identifier ])) )) (compound_statement "{\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }" { (do_statement "do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));" do (compound_statement "{\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          }" { (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ;) (if_statement "if (iVar9 == -1) goto LAB_00037759;" if (parenthesized_expression "(iVar9 == -1)" ( (binary_expression "iVar9 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00037759;" goto statement_identifier ;)) }) while (parenthesized_expression "(__s1[iVar9] == *(byte *)(iVar7 + iVar9))" ( (binary_expression "__s1[iVar9] == *(byte *)(iVar7 + iVar9)" (subscript_expression "__s1[iVar9]" identifier [ identifier ]) == (pointer_expression "*(byte *)(iVar7 + iVar9)" * (cast_expression "(byte *)(iVar7 + iVar9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + iVar9)" ( (binary_expression "iVar7 + iVar9" identifier + identifier) ))))) )) ;) })) (expression_statement "iVar12 = iVar12 + uVar11 + 1;" (assignment_expression "iVar12 = iVar12 + uVar11 + 1" identifier = (binary_expression "iVar12 + uVar11 + 1" (binary_expression "iVar12 + uVar11" identifier + identifier) + number_literal)) ;) }))) }) (else_clause "else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }" else (compound_statement "{\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }" { (expression_statement "iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];" (assignment_expression "iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier = (binary_expression "iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier + (subscript_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier [ (pointer_expression "*(byte *)(iVar4 + -1 + iVar7)" * (cast_expression "(byte *)(iVar4 + -1 + iVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -1 + iVar7)" ( (binary_expression "iVar4 + -1 + iVar7" (binary_expression "iVar4 + -1" identifier + number_literal) + identifier) )))) ]))) ;) }))) })) (labeled_statement "LAB_00037757:\n  iVar7 = 0;" statement_identifier : (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_00037759:\n  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00038830();\n  }" statement_identifier : (if_statement "if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00038830();\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_00038830();\n  }" { comment (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n\nchar * two_way_long_needle(uchar *haystack,size_t haystack_len,uchar *needle,size_t needle_len)\n\n{\n  uchar *puVar1;\n  byte bVar2;\n  size_t sVar3;\n  int iVar4;\n  size_t *psVar5;\n  byte *pbVar6;\n  int iVar7;\n  void *pvVar8;\n  uchar *puVar9;\n  uchar *puVar10;\n  uint uVar11;\n  byte *needle_00;\n  size_t sVar12;\n  uchar *puVar13;\n  uchar *puVar14;\n  uchar *puVar15;\n  int in_GS_OFFSET;\n  undefined8 uVar16;\n  uchar *local_450;\n  uchar *local_444;\n  uchar *local_440;\n  size_t period;\n  size_t shift_table [256];\n  size_t local_20 [4];\n  \n  uVar16 = __x86_get_pc_thunk_di();\n  puVar10 = (uchar *)((ulonglong)uVar16 >> 0x20);\n  iVar4 = (int)uVar16;\n  local_20[0] = *(size_t *)(in_GS_OFFSET + 0x14);\n  if (haystack < (uchar *)0x3) {\n    local_440 = haystack + -1;\n    period = 1;\n  }\n  else {\n    local_440 = (uchar *)critical_factorization(needle_00,(size_t)haystack,&period);\n  }\n  sVar3 = period;\n  psVar5 = shift_table;\n  do {\n    *psVar5 = (size_t)haystack;\n    psVar5 = psVar5 + 1;\n  } while (local_20 != psVar5);\n  if (haystack == (uchar *)0x0) {\n    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = (uchar *)0xffffffff;\n  }\n  else {\n    local_444 = haystack + -1;\n    pbVar6 = needle_00;\n    do {\n      bVar2 = *pbVar6;\n      sVar12 = (int)(needle_00 + (int)local_444) - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      shift_table[bVar2] = sVar12;\n    } while (haystack + (int)needle_00 != pbVar6);\n    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);\n    if (iVar7 == 0) {\n      puVar13 = (uchar *)0x0;\n      local_450 = (uchar *)0x0;\nLAB_000377b0:\n      do {\n        puVar14 = haystack + (int)local_450;\n        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);\n        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;\n        uVar11 = shift_table[puVar14[iVar4 + -1]];\n        puVar10 = puVar14;\n        if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }\n      } while( true );\n    }\n  }\n  puVar14 = haystack + -(int)local_440;\n  if (haystack + -(int)local_440 < local_440) {\n    puVar14 = local_440;\n  }\n  puVar1 = local_440 + -1;\n  puVar15 = (uchar *)0x0;\n  period = (size_t)(puVar14 + 1);\n  while( true ) {\n    puVar13 = haystack + (int)puVar15;\n    pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar13 - (int)puVar10);\n    if ((puVar13 == (uchar *)0x0) || (pvVar8 != (void *)0x0)) break;\n    puVar10 = puVar13;\n    if (shift_table[puVar13[iVar4 + -1]] == 0) {\n      puVar13 = puVar15 + iVar4;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (puVar13[(int)local_440] == needle_00[(int)local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);\n        }\n        puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450;\n      }\n      else {\nLAB_000376fd:\n        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;\n        puVar9 = puVar1;\n        if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }\n        puVar15 = puVar15 + (int)(puVar14 + 1);\n      }\n    }\n    else {\n      puVar15 = puVar15 + shift_table[puVar13[iVar4 + -1]];\n    }\n  }\nLAB_00037757:\n  puVar13 = (uchar *)0x0;\nLAB_00037759:\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 *)puVar13;\n}\n\n" comment (function_definition "char * two_way_long_needle(uchar *haystack,size_t haystack_len,uchar *needle,size_t needle_len)\n\n{\n  uchar *puVar1;\n  byte bVar2;\n  size_t sVar3;\n  int iVar4;\n  size_t *psVar5;\n  byte *pbVar6;\n  int iVar7;\n  void *pvVar8;\n  uchar *puVar9;\n  uchar *puVar10;\n  uint uVar11;\n  byte *needle_00;\n  size_t sVar12;\n  uchar *puVar13;\n  uchar *puVar14;\n  uchar *puVar15;\n  int in_GS_OFFSET;\n  undefined8 uVar16;\n  uchar *local_450;\n  uchar *local_444;\n  uchar *local_440;\n  size_t period;\n  size_t shift_table [256];\n  size_t local_20 [4];\n  \n  uVar16 = __x86_get_pc_thunk_di();\n  puVar10 = (uchar *)((ulonglong)uVar16 >> 0x20);\n  iVar4 = (int)uVar16;\n  local_20[0] = *(size_t *)(in_GS_OFFSET + 0x14);\n  if (haystack < (uchar *)0x3) {\n    local_440 = haystack + -1;\n    period = 1;\n  }\n  else {\n    local_440 = (uchar *)critical_factorization(needle_00,(size_t)haystack,&period);\n  }\n  sVar3 = period;\n  psVar5 = shift_table;\n  do {\n    *psVar5 = (size_t)haystack;\n    psVar5 = psVar5 + 1;\n  } while (local_20 != psVar5);\n  if (haystack == (uchar *)0x0) {\n    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = (uchar *)0xffffffff;\n  }\n  else {\n    local_444 = haystack + -1;\n    pbVar6 = needle_00;\n    do {\n      bVar2 = *pbVar6;\n      sVar12 = (int)(needle_00 + (int)local_444) - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      shift_table[bVar2] = sVar12;\n    } while (haystack + (int)needle_00 != pbVar6);\n    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);\n    if (iVar7 == 0) {\n      puVar13 = (uchar *)0x0;\n      local_450 = (uchar *)0x0;\nLAB_000377b0:\n      do {\n        puVar14 = haystack + (int)local_450;\n        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);\n        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;\n        uVar11 = shift_table[puVar14[iVar4 + -1]];\n        puVar10 = puVar14;\n        if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }\n      } while( true );\n    }\n  }\n  puVar14 = haystack + -(int)local_440;\n  if (haystack + -(int)local_440 < local_440) {\n    puVar14 = local_440;\n  }\n  puVar1 = local_440 + -1;\n  puVar15 = (uchar *)0x0;\n  period = (size_t)(puVar14 + 1);\n  while( true ) {\n    puVar13 = haystack + (int)puVar15;\n    pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar13 - (int)puVar10);\n    if ((puVar13 == (uchar *)0x0) || (pvVar8 != (void *)0x0)) break;\n    puVar10 = puVar13;\n    if (shift_table[puVar13[iVar4 + -1]] == 0) {\n      puVar13 = puVar15 + iVar4;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (puVar13[(int)local_440] == needle_00[(int)local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);\n        }\n        puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450;\n      }\n      else {\nLAB_000376fd:\n        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;\n        puVar9 = puVar1;\n        if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }\n        puVar15 = puVar15 + (int)(puVar14 + 1);\n      }\n    }\n    else {\n      puVar15 = puVar15 + shift_table[puVar13[iVar4 + -1]];\n    }\n  }\nLAB_00037757:\n  puVar13 = (uchar *)0x0;\nLAB_00037759:\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 *)puVar13;\n}" primitive_type (pointer_declarator "* two_way_long_needle(uchar *haystack,size_t haystack_len,uchar *needle,size_t needle_len)" * (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  uchar *puVar1;\n  byte bVar2;\n  size_t sVar3;\n  int iVar4;\n  size_t *psVar5;\n  byte *pbVar6;\n  int iVar7;\n  void *pvVar8;\n  uchar *puVar9;\n  uchar *puVar10;\n  uint uVar11;\n  byte *needle_00;\n  size_t sVar12;\n  uchar *puVar13;\n  uchar *puVar14;\n  uchar *puVar15;\n  int in_GS_OFFSET;\n  undefined8 uVar16;\n  uchar *local_450;\n  uchar *local_444;\n  uchar *local_440;\n  size_t period;\n  size_t shift_table [256];\n  size_t local_20 [4];\n  \n  uVar16 = __x86_get_pc_thunk_di();\n  puVar10 = (uchar *)((ulonglong)uVar16 >> 0x20);\n  iVar4 = (int)uVar16;\n  local_20[0] = *(size_t *)(in_GS_OFFSET + 0x14);\n  if (haystack < (uchar *)0x3) {\n    local_440 = haystack + -1;\n    period = 1;\n  }\n  else {\n    local_440 = (uchar *)critical_factorization(needle_00,(size_t)haystack,&period);\n  }\n  sVar3 = period;\n  psVar5 = shift_table;\n  do {\n    *psVar5 = (size_t)haystack;\n    psVar5 = psVar5 + 1;\n  } while (local_20 != psVar5);\n  if (haystack == (uchar *)0x0) {\n    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = (uchar *)0xffffffff;\n  }\n  else {\n    local_444 = haystack + -1;\n    pbVar6 = needle_00;\n    do {\n      bVar2 = *pbVar6;\n      sVar12 = (int)(needle_00 + (int)local_444) - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      shift_table[bVar2] = sVar12;\n    } while (haystack + (int)needle_00 != pbVar6);\n    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);\n    if (iVar7 == 0) {\n      puVar13 = (uchar *)0x0;\n      local_450 = (uchar *)0x0;\nLAB_000377b0:\n      do {\n        puVar14 = haystack + (int)local_450;\n        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);\n        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;\n        uVar11 = shift_table[puVar14[iVar4 + -1]];\n        puVar10 = puVar14;\n        if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }\n      } while( true );\n    }\n  }\n  puVar14 = haystack + -(int)local_440;\n  if (haystack + -(int)local_440 < local_440) {\n    puVar14 = local_440;\n  }\n  puVar1 = local_440 + -1;\n  puVar15 = (uchar *)0x0;\n  period = (size_t)(puVar14 + 1);\n  while( true ) {\n    puVar13 = haystack + (int)puVar15;\n    pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar13 - (int)puVar10);\n    if ((puVar13 == (uchar *)0x0) || (pvVar8 != (void *)0x0)) break;\n    puVar10 = puVar13;\n    if (shift_table[puVar13[iVar4 + -1]] == 0) {\n      puVar13 = puVar15 + iVar4;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (puVar13[(int)local_440] == needle_00[(int)local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);\n        }\n        puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450;\n      }\n      else {\nLAB_000376fd:\n        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;\n        puVar9 = puVar1;\n        if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }\n        puVar15 = puVar15 + (int)(puVar14 + 1);\n      }\n    }\n    else {\n      puVar15 = puVar15 + shift_table[puVar13[iVar4 + -1]];\n    }\n  }\nLAB_00037757:\n  puVar13 = (uchar *)0x0;\nLAB_00037759:\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 *)puVar13;\n}" { (declaration "uchar *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "size_t *psVar5;" primitive_type (pointer_declarator "*psVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "void *pvVar8;" primitive_type (pointer_declarator "*pvVar8" * identifier) ;) (declaration "uchar *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uchar *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "byte *needle_00;" type_identifier (pointer_declarator "*needle_00" * identifier) ;) (declaration "size_t sVar12;" primitive_type identifier ;) (declaration "uchar *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "uchar *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "uchar *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar16;" type_identifier identifier ;) (declaration "uchar *local_450;" type_identifier (pointer_declarator "*local_450" * identifier) ;) (declaration "uchar *local_444;" type_identifier (pointer_declarator "*local_444" * identifier) ;) (declaration "uchar *local_440;" type_identifier (pointer_declarator "*local_440" * 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 [4];" primitive_type (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "uVar16 = __x86_get_pc_thunk_di();" (assignment_expression "uVar16 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar10 = (uchar *)((ulonglong)uVar16 >> 0x20);" (assignment_expression "puVar10 = (uchar *)((ulonglong)uVar16 >> 0x20)" identifier = (cast_expression "(uchar *)((ulonglong)uVar16 >> 0x20)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar16 >> 0x20)" ( (binary_expression "(ulonglong)uVar16 >> 0x20" (cast_expression "(ulonglong)uVar16" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar4 = (int)uVar16;" (assignment_expression "iVar4 = (int)uVar16" identifier = (cast_expression "(int)uVar16" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (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 (haystack < (uchar *)0x3) {\n    local_440 = haystack + -1;\n    period = 1;\n  }\n  else {\n    local_440 = (uchar *)critical_factorization(needle_00,(size_t)haystack,&period);\n  }" if (parenthesized_expression "(haystack < (uchar *)0x3)" ( (binary_expression "haystack < (uchar *)0x3" identifier < (cast_expression "(uchar *)0x3" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_440 = haystack + -1;\n    period = 1;\n  }" { (expression_statement "local_440 = haystack + -1;" (assignment_expression "local_440 = haystack + -1" identifier = (binary_expression "haystack + -1" identifier + number_literal)) ;) (expression_statement "period = 1;" (assignment_expression "period = 1" identifier = number_literal) ;) }) (else_clause "else {\n    local_440 = (uchar *)critical_factorization(needle_00,(size_t)haystack,&period);\n  }" else (compound_statement "{\n    local_440 = (uchar *)critical_factorization(needle_00,(size_t)haystack,&period);\n  }" { (expression_statement "local_440 = (uchar *)critical_factorization(needle_00,(size_t)haystack,&period);" (assignment_expression "local_440 = (uchar *)critical_factorization(needle_00,(size_t)haystack,&period)" identifier = (cast_expression "(uchar *)critical_factorization(needle_00,(size_t)haystack,&period)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "critical_factorization(needle_00,(size_t)haystack,&period)" identifier (argument_list "(needle_00,(size_t)haystack,&period)" ( identifier , (cast_expression "(size_t)haystack" ( (type_descriptor "size_t" primitive_type) ) identifier) , (pointer_expression "&period" & identifier) ))))) ;) }))) (expression_statement "sVar3 = period;" (assignment_expression "sVar3 = period" identifier = identifier) ;) (expression_statement "psVar5 = shift_table;" (assignment_expression "psVar5 = shift_table" identifier = identifier) ;) (do_statement "do {\n    *psVar5 = (size_t)haystack;\n    psVar5 = psVar5 + 1;\n  } while (local_20 != psVar5);" do (compound_statement "{\n    *psVar5 = (size_t)haystack;\n    psVar5 = psVar5 + 1;\n  }" { (expression_statement "*psVar5 = (size_t)haystack;" (assignment_expression "*psVar5 = (size_t)haystack" (pointer_expression "*psVar5" * identifier) = (cast_expression "(size_t)haystack" ( (type_descriptor "size_t" primitive_type) ) identifier)) ;) (expression_statement "psVar5 = psVar5 + 1;" (assignment_expression "psVar5 = psVar5 + 1" identifier = (binary_expression "psVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_20 != psVar5)" ( (binary_expression "local_20 != psVar5" identifier != identifier) )) ;) (if_statement "if (haystack == (uchar *)0x0) {\n    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = (uchar *)0xffffffff;\n  }\n  else {\n    local_444 = haystack + -1;\n    pbVar6 = needle_00;\n    do {\n      bVar2 = *pbVar6;\n      sVar12 = (int)(needle_00 + (int)local_444) - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      shift_table[bVar2] = sVar12;\n    } while (haystack + (int)needle_00 != pbVar6);\n    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);\n    if (iVar7 == 0) {\n      puVar13 = (uchar *)0x0;\n      local_450 = (uchar *)0x0;\nLAB_000377b0:\n      do {\n        puVar14 = haystack + (int)local_450;\n        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);\n        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;\n        uVar11 = shift_table[puVar14[iVar4 + -1]];\n        puVar10 = puVar14;\n        if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }\n      } while( true );\n    }\n  }" if (parenthesized_expression "(haystack == (uchar *)0x0)" ( (binary_expression "haystack == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = (uchar *)0xffffffff;\n  }" { (expression_statement "iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);" (assignment_expression "iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440)" identifier = (call_expression "memcmp(needle_00,needle_00 + period,(size_t)local_440)" identifier (argument_list "(needle_00,needle_00 + period,(size_t)local_440)" ( identifier , (binary_expression "needle_00 + period" identifier + identifier) , (cast_expression "(size_t)local_440" ( (type_descriptor "size_t" primitive_type) ) identifier) )))) ;) (if_statement "if (iVar7 == 0) goto LAB_00037757;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00037757;" goto statement_identifier ;)) (expression_statement "local_444 = (uchar *)0xffffffff;" (assignment_expression "local_444 = (uchar *)0xffffffff" identifier = (cast_expression "(uchar *)0xffffffff" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    local_444 = haystack + -1;\n    pbVar6 = needle_00;\n    do {\n      bVar2 = *pbVar6;\n      sVar12 = (int)(needle_00 + (int)local_444) - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      shift_table[bVar2] = sVar12;\n    } while (haystack + (int)needle_00 != pbVar6);\n    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);\n    if (iVar7 == 0) {\n      puVar13 = (uchar *)0x0;\n      local_450 = (uchar *)0x0;\nLAB_000377b0:\n      do {\n        puVar14 = haystack + (int)local_450;\n        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);\n        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;\n        uVar11 = shift_table[puVar14[iVar4 + -1]];\n        puVar10 = puVar14;\n        if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }\n      } while( true );\n    }\n  }" else (compound_statement "{\n    local_444 = haystack + -1;\n    pbVar6 = needle_00;\n    do {\n      bVar2 = *pbVar6;\n      sVar12 = (int)(needle_00 + (int)local_444) - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      shift_table[bVar2] = sVar12;\n    } while (haystack + (int)needle_00 != pbVar6);\n    iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);\n    if (iVar7 == 0) {\n      puVar13 = (uchar *)0x0;\n      local_450 = (uchar *)0x0;\nLAB_000377b0:\n      do {\n        puVar14 = haystack + (int)local_450;\n        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);\n        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;\n        uVar11 = shift_table[puVar14[iVar4 + -1]];\n        puVar10 = puVar14;\n        if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }\n      } while( true );\n    }\n  }" { (expression_statement "local_444 = haystack + -1;" (assignment_expression "local_444 = haystack + -1" identifier = (binary_expression "haystack + -1" identifier + number_literal)) ;) (expression_statement "pbVar6 = needle_00;" (assignment_expression "pbVar6 = needle_00" identifier = identifier) ;) (do_statement "do {\n      bVar2 = *pbVar6;\n      sVar12 = (int)(needle_00 + (int)local_444) - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      shift_table[bVar2] = sVar12;\n    } while (haystack + (int)needle_00 != pbVar6);" do (compound_statement "{\n      bVar2 = *pbVar6;\n      sVar12 = (int)(needle_00 + (int)local_444) - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      shift_table[bVar2] = sVar12;\n    }" { (expression_statement "bVar2 = *pbVar6;" (assignment_expression "bVar2 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) (expression_statement "sVar12 = (int)(needle_00 + (int)local_444) - (int)pbVar6;" (assignment_expression "sVar12 = (int)(needle_00 + (int)local_444) - (int)pbVar6" identifier = (binary_expression "(int)(needle_00 + (int)local_444) - (int)pbVar6" (cast_expression "(int)(needle_00 + (int)local_444)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(needle_00 + (int)local_444)" ( (binary_expression "needle_00 + (int)local_444" identifier + (cast_expression "(int)local_444" ( (type_descriptor "int" primitive_type) ) identifier)) ))) - (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "shift_table[bVar2] = sVar12;" (assignment_expression "shift_table[bVar2] = sVar12" (subscript_expression "shift_table[bVar2]" identifier [ identifier ]) = identifier) ;) }) while (parenthesized_expression "(haystack + (int)needle_00 != pbVar6)" ( (binary_expression "haystack + (int)needle_00 != pbVar6" (binary_expression "haystack + (int)needle_00" identifier + (cast_expression "(int)needle_00" ( (type_descriptor "int" primitive_type) ) identifier)) != identifier) )) ;) (expression_statement "iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440);" (assignment_expression "iVar7 = memcmp(needle_00,needle_00 + period,(size_t)local_440)" identifier = (call_expression "memcmp(needle_00,needle_00 + period,(size_t)local_440)" identifier (argument_list "(needle_00,needle_00 + period,(size_t)local_440)" ( identifier , (binary_expression "needle_00 + period" identifier + identifier) , (cast_expression "(size_t)local_440" ( (type_descriptor "size_t" primitive_type) ) identifier) )))) ;) (if_statement "if (iVar7 == 0) {\n      puVar13 = (uchar *)0x0;\n      local_450 = (uchar *)0x0;\nLAB_000377b0:\n      do {\n        puVar14 = haystack + (int)local_450;\n        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);\n        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;\n        uVar11 = shift_table[puVar14[iVar4 + -1]];\n        puVar10 = puVar14;\n        if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar13 = (uchar *)0x0;\n      local_450 = (uchar *)0x0;\nLAB_000377b0:\n      do {\n        puVar14 = haystack + (int)local_450;\n        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);\n        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;\n        uVar11 = shift_table[puVar14[iVar4 + -1]];\n        puVar10 = puVar14;\n        if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }\n      } while( true );\n    }" { (expression_statement "puVar13 = (uchar *)0x0;" (assignment_expression "puVar13 = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_450 = (uchar *)0x0;" (assignment_expression "local_450 = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_000377b0:\n      do {\n        puVar14 = haystack + (int)local_450;\n        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);\n        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;\n        uVar11 = shift_table[puVar14[iVar4 + -1]];\n        puVar10 = puVar14;\n        if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }\n      } while( true );" statement_identifier : (do_statement "do {\n        puVar14 = haystack + (int)local_450;\n        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);\n        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;\n        uVar11 = shift_table[puVar14[iVar4 + -1]];\n        puVar10 = puVar14;\n        if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }\n      } while( true );" do (compound_statement "{\n        puVar14 = haystack + (int)local_450;\n        pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);\n        if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;\n        uVar11 = shift_table[puVar14[iVar4 + -1]];\n        puVar10 = puVar14;\n        if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }\n      }" { (expression_statement "puVar14 = haystack + (int)local_450;" (assignment_expression "puVar14 = haystack + (int)local_450" identifier = (binary_expression "haystack + (int)local_450" identifier + (cast_expression "(int)local_450" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10);" (assignment_expression "pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10)" identifier = (call_expression "rpl_memchr(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10)" identifier (argument_list "(puVar10 + iVar4,0,(int)puVar14 - (int)puVar10)" ( (binary_expression "puVar10 + iVar4" identifier + identifier) , number_literal , (binary_expression "(int)puVar14 - (int)puVar10" (cast_expression "(int)puVar14" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if ((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)) goto LAB_00037757;" if (parenthesized_expression "((pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0))" ( (binary_expression "(pvVar8 != (void *)0x0) || (puVar14 == (uchar *)0x0)" (parenthesized_expression "(pvVar8 != (void *)0x0)" ( (binary_expression "pvVar8 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(puVar14 == (uchar *)0x0)" ( (binary_expression "puVar14 == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (goto_statement "goto LAB_00037757;" goto statement_identifier ;)) (expression_statement "uVar11 = shift_table[puVar14[iVar4 + -1]];" (assignment_expression "uVar11 = shift_table[puVar14[iVar4 + -1]]" identifier = (subscript_expression "shift_table[puVar14[iVar4 + -1]]" identifier [ (subscript_expression "puVar14[iVar4 + -1]" identifier [ (binary_expression "iVar4 + -1" identifier + number_literal) ]) ])) ;) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" identifier = identifier) ;) (if_statement "if (uVar11 == 0) {\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }\n        else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (compound_statement "{\n          puVar14 = local_440;\n          if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }\n          if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }\n          puVar14 = local_440;\n          if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }\n          if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + sVar3;\n          puVar13 = haystack + -sVar3;\n        }" { (expression_statement "puVar14 = local_440;" (assignment_expression "puVar14 = local_440" identifier = identifier) ;) (if_statement "if (local_440 <= puVar13) {\n            puVar14 = puVar13;\n          }" if (parenthesized_expression "(local_440 <= puVar13)" ( (binary_expression "local_440 <= puVar13" identifier <= identifier) )) (compound_statement "{\n            puVar14 = puVar13;\n          }" { (expression_statement "puVar14 = puVar13;" (assignment_expression "puVar14 = puVar13" identifier = identifier) ;) })) (if_statement "if (puVar14 < local_444) {\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }" if (parenthesized_expression "(puVar14 < local_444)" ( (binary_expression "puVar14 < local_444" identifier < identifier) )) (compound_statement "{\n            do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);\n          }" { (do_statement "do {\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            } while (puVar14 != local_444);" do (compound_statement "{\n              if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }\n              puVar14 = puVar14 + 1;\n            }" { (if_statement "if (needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]) {\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }" if (parenthesized_expression "(needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)])" ( (binary_expression "needle_00[(int)puVar14] != puVar14[(int)(local_450 + iVar4)]" (subscript_expression "needle_00[(int)puVar14]" identifier [ (cast_expression "(int)puVar14" ( (type_descriptor "int" primitive_type) ) identifier) ]) != (subscript_expression "puVar14[(int)(local_450 + iVar4)]" identifier [ (cast_expression "(int)(local_450 + iVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_450 + iVar4)" ( (binary_expression "local_450 + iVar4" identifier + identifier) ))) ])) )) (compound_statement "{\n                puVar13 = (uchar *)0x0;\n                local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;\n                goto LAB_000377b0;\n              }" { (expression_statement "puVar13 = (uchar *)0x0;" (assignment_expression "puVar13 = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_450 = local_450 + (1 - (int)local_440) + (int)puVar14;" (assignment_expression "local_450 = local_450 + (1 - (int)local_440) + (int)puVar14" identifier = (binary_expression "local_450 + (1 - (int)local_440) + (int)puVar14" (binary_expression "local_450 + (1 - (int)local_440)" identifier + (parenthesized_expression "(1 - (int)local_440)" ( (binary_expression "1 - (int)local_440" number_literal - (cast_expression "(int)local_440" ( (type_descriptor "int" primitive_type) ) identifier)) ))) + (cast_expression "(int)puVar14" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (goto_statement "goto LAB_000377b0;" goto statement_identifier ;) })) (expression_statement "puVar14 = puVar14 + 1;" (assignment_expression "puVar14 = puVar14 + 1" identifier = (binary_expression "puVar14 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar14 != local_444)" ( (binary_expression "puVar14 != local_444" identifier != identifier) )) ;) })) (expression_statement "puVar14 = local_440;" (assignment_expression "puVar14 = local_440" identifier = identifier) ;) (if_statement "if ((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])) {\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }" if (parenthesized_expression "((puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440]))" ( (binary_expression "(puVar13 < local_440) &&\n             (puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])" (parenthesized_expression "(puVar13 < local_440)" ( (binary_expression "puVar13 < local_440" identifier < identifier) )) && (parenthesized_expression "(puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440])" ( (comma_expression "puVar1 = local_440 + -1,\n             (local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440]" (assignment_expression "puVar1 = local_440 + -1" identifier = (binary_expression "local_440 + -1" identifier + number_literal)) , (binary_expression "(local_440 + -1)[(int)(local_450 + iVar4)] == (needle_00 + -1)[(int)local_440]" (subscript_expression "(local_440 + -1)[(int)(local_450 + iVar4)]" (parenthesized_expression "(local_440 + -1)" ( (binary_expression "local_440 + -1" identifier + number_literal) )) [ (cast_expression "(int)(local_450 + iVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_450 + iVar4)" ( (binary_expression "local_450 + iVar4" identifier + identifier) ))) ]) == (subscript_expression "(needle_00 + -1)[(int)local_440]" (parenthesized_expression "(needle_00 + -1)" ( (binary_expression "needle_00 + -1" identifier + number_literal) )) [ (cast_expression "(int)local_440" ( (type_descriptor "int" primitive_type) ) identifier) ]))) ))) )) (compound_statement "{\n            do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);\n          }" { (do_statement "do {\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            } while ((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]);" do (compound_statement "{\n              puVar14 = puVar1;\n              if (puVar13 == puVar14) break;\n              puVar1 = puVar14 + -1;\n            }" { (expression_statement "puVar14 = puVar1;" (assignment_expression "puVar14 = puVar1" identifier = identifier) ;) (if_statement "if (puVar13 == puVar14) break;" if (parenthesized_expression "(puVar13 == puVar14)" ( (binary_expression "puVar13 == puVar14" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = puVar14 + -1;" (assignment_expression "puVar1 = puVar14 + -1" identifier = (binary_expression "puVar14 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "((needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)])" ( (binary_expression "(needle_00 + -1)[(int)puVar14] == (puVar14 + -1)[(int)(local_450 + iVar4)]" (subscript_expression "(needle_00 + -1)[(int)puVar14]" (parenthesized_expression "(needle_00 + -1)" ( (binary_expression "needle_00 + -1" identifier + number_literal) )) [ (cast_expression "(int)puVar14" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (subscript_expression "(puVar14 + -1)[(int)(local_450 + iVar4)]" (parenthesized_expression "(puVar14 + -1)" ( (binary_expression "puVar14 + -1" identifier + number_literal) )) [ (cast_expression "(int)(local_450 + iVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_450 + iVar4)" ( (binary_expression "local_450 + iVar4" identifier + identifier) ))) ])) )) ;) })) (if_statement "if (puVar14 < puVar13 + 1) {\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }" if (parenthesized_expression "(puVar14 < puVar13 + 1)" ( (binary_expression "puVar14 < puVar13 + 1" identifier < (binary_expression "puVar13 + 1" identifier + number_literal)) )) (compound_statement "{\n            puVar13 = local_450 + iVar4;\n            goto LAB_00037759;\n          }" { (expression_statement "puVar13 = local_450 + iVar4;" (assignment_expression "puVar13 = local_450 + iVar4" identifier = (binary_expression "local_450 + iVar4" identifier + identifier)) ;) (goto_statement "goto LAB_00037759;" goto statement_identifier ;) })) (expression_statement "local_450 = local_450 + sVar3;" (assignment_expression "local_450 = local_450 + sVar3" identifier = (binary_expression "local_450 + sVar3" identifier + identifier)) ;) (expression_statement "puVar13 = haystack + -sVar3;" (assignment_expression "puVar13 = haystack + -sVar3" identifier = (binary_expression "haystack + -sVar3" identifier + (unary_expression "-sVar3" - identifier))) ;) }) (else_clause "else {\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }" else (compound_statement "{\n          if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }\n          local_450 = local_450 + uVar11;\n          puVar13 = (uchar *)0x0;\n        }" { (if_statement "if ((uVar11 < sVar3) && (puVar13 != (uchar *)0x0)) {\n            uVar11 = (int)haystack - sVar3;\n          }" if (parenthesized_expression "((uVar11 < sVar3) && (puVar13 != (uchar *)0x0))" ( (binary_expression "(uVar11 < sVar3) && (puVar13 != (uchar *)0x0)" (parenthesized_expression "(uVar11 < sVar3)" ( (binary_expression "uVar11 < sVar3" identifier < identifier) )) && (parenthesized_expression "(puVar13 != (uchar *)0x0)" ( (binary_expression "puVar13 != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n            uVar11 = (int)haystack - sVar3;\n          }" { (expression_statement "uVar11 = (int)haystack - sVar3;" (assignment_expression "uVar11 = (int)haystack - sVar3" identifier = (binary_expression "(int)haystack - sVar3" (cast_expression "(int)haystack" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) })) (expression_statement "local_450 = local_450 + uVar11;" (assignment_expression "local_450 = local_450 + uVar11" identifier = (binary_expression "local_450 + uVar11" identifier + identifier)) ;) (expression_statement "puVar13 = (uchar *)0x0;" (assignment_expression "puVar13 = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;)) })) }))) (expression_statement "puVar14 = haystack + -(int)local_440;" (assignment_expression "puVar14 = haystack + -(int)local_440" identifier = (binary_expression "haystack + -(int)local_440" identifier + (unary_expression "-(int)local_440" - (cast_expression "(int)local_440" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (if_statement "if (haystack + -(int)local_440 < local_440) {\n    puVar14 = local_440;\n  }" if (parenthesized_expression "(haystack + -(int)local_440 < local_440)" ( (binary_expression "haystack + -(int)local_440 < local_440" (binary_expression "haystack + -(int)local_440" identifier + (unary_expression "-(int)local_440" - (cast_expression "(int)local_440" ( (type_descriptor "int" primitive_type) ) identifier))) < identifier) )) (compound_statement "{\n    puVar14 = local_440;\n  }" { (expression_statement "puVar14 = local_440;" (assignment_expression "puVar14 = local_440" identifier = identifier) ;) })) (expression_statement "puVar1 = local_440 + -1;" (assignment_expression "puVar1 = local_440 + -1" identifier = (binary_expression "local_440 + -1" identifier + number_literal)) ;) (expression_statement "puVar15 = (uchar *)0x0;" (assignment_expression "puVar15 = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "period = (size_t)(puVar14 + 1);" (assignment_expression "period = (size_t)(puVar14 + 1)" identifier = (cast_expression "(size_t)(puVar14 + 1)" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "(puVar14 + 1)" ( (binary_expression "puVar14 + 1" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n    puVar13 = haystack + (int)puVar15;\n    pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar13 - (int)puVar10);\n    if ((puVar13 == (uchar *)0x0) || (pvVar8 != (void *)0x0)) break;\n    puVar10 = puVar13;\n    if (shift_table[puVar13[iVar4 + -1]] == 0) {\n      puVar13 = puVar15 + iVar4;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (puVar13[(int)local_440] == needle_00[(int)local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);\n        }\n        puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450;\n      }\n      else {\nLAB_000376fd:\n        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;\n        puVar9 = puVar1;\n        if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }\n        puVar15 = puVar15 + (int)(puVar14 + 1);\n      }\n    }\n    else {\n      puVar15 = puVar15 + shift_table[puVar13[iVar4 + -1]];\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    puVar13 = haystack + (int)puVar15;\n    pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar13 - (int)puVar10);\n    if ((puVar13 == (uchar *)0x0) || (pvVar8 != (void *)0x0)) break;\n    puVar10 = puVar13;\n    if (shift_table[puVar13[iVar4 + -1]] == 0) {\n      puVar13 = puVar15 + iVar4;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (puVar13[(int)local_440] == needle_00[(int)local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);\n        }\n        puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450;\n      }\n      else {\nLAB_000376fd:\n        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;\n        puVar9 = puVar1;\n        if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }\n        puVar15 = puVar15 + (int)(puVar14 + 1);\n      }\n    }\n    else {\n      puVar15 = puVar15 + shift_table[puVar13[iVar4 + -1]];\n    }\n  }" { (expression_statement "puVar13 = haystack + (int)puVar15;" (assignment_expression "puVar13 = haystack + (int)puVar15" identifier = (binary_expression "haystack + (int)puVar15" identifier + (cast_expression "(int)puVar15" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar13 - (int)puVar10);" (assignment_expression "pvVar8 = rpl_memchr(puVar10 + iVar4,0,(int)puVar13 - (int)puVar10)" identifier = (call_expression "rpl_memchr(puVar10 + iVar4,0,(int)puVar13 - (int)puVar10)" identifier (argument_list "(puVar10 + iVar4,0,(int)puVar13 - (int)puVar10)" ( (binary_expression "puVar10 + iVar4" identifier + identifier) , number_literal , (binary_expression "(int)puVar13 - (int)puVar10" (cast_expression "(int)puVar13" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if ((puVar13 == (uchar *)0x0) || (pvVar8 != (void *)0x0)) break;" if (parenthesized_expression "((puVar13 == (uchar *)0x0) || (pvVar8 != (void *)0x0))" ( (binary_expression "(puVar13 == (uchar *)0x0) || (pvVar8 != (void *)0x0)" (parenthesized_expression "(puVar13 == (uchar *)0x0)" ( (binary_expression "puVar13 == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pvVar8 != (void *)0x0)" ( (binary_expression "pvVar8 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "puVar10 = puVar13;" (assignment_expression "puVar10 = puVar13" identifier = identifier) ;) (if_statement "if (shift_table[puVar13[iVar4 + -1]] == 0) {\n      puVar13 = puVar15 + iVar4;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (puVar13[(int)local_440] == needle_00[(int)local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);\n        }\n        puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450;\n      }\n      else {\nLAB_000376fd:\n        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;\n        puVar9 = puVar1;\n        if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }\n        puVar15 = puVar15 + (int)(puVar14 + 1);\n      }\n    }\n    else {\n      puVar15 = puVar15 + shift_table[puVar13[iVar4 + -1]];\n    }" if (parenthesized_expression "(shift_table[puVar13[iVar4 + -1]] == 0)" ( (binary_expression "shift_table[puVar13[iVar4 + -1]] == 0" (subscript_expression "shift_table[puVar13[iVar4 + -1]]" identifier [ (subscript_expression "puVar13[iVar4 + -1]" identifier [ (binary_expression "iVar4 + -1" identifier + number_literal) ]) ]) == number_literal) )) (compound_statement "{\n      puVar13 = puVar15 + iVar4;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (puVar13[(int)local_440] == needle_00[(int)local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);\n        }\n        puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450;\n      }\n      else {\nLAB_000376fd:\n        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;\n        puVar9 = puVar1;\n        if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }\n        puVar15 = puVar15 + (int)(puVar14 + 1);\n      }\n    }" { (expression_statement "puVar13 = puVar15 + iVar4;" (assignment_expression "puVar13 = puVar15 + iVar4" identifier = (binary_expression "puVar15 + iVar4" identifier + identifier)) ;) (if_statement "if (local_440 < local_444) {\n        local_450 = local_440;\n        if (puVar13[(int)local_440] == needle_00[(int)local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);\n        }\n        puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450;\n      }\n      else {\nLAB_000376fd:\n        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;\n        puVar9 = puVar1;\n        if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }\n        puVar15 = puVar15 + (int)(puVar14 + 1);\n      }" if (parenthesized_expression "(local_440 < local_444)" ( (binary_expression "local_440 < local_444" identifier < identifier) )) (compound_statement "{\n        local_450 = local_440;\n        if (puVar13[(int)local_440] == needle_00[(int)local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);\n        }\n        puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450;\n      }" { (expression_statement "local_450 = local_440;" (assignment_expression "local_450 = local_440" identifier = identifier) ;) (if_statement "if (puVar13[(int)local_440] == needle_00[(int)local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);\n        }" if (parenthesized_expression "(puVar13[(int)local_440] == needle_00[(int)local_440])" ( (binary_expression "puVar13[(int)local_440] == needle_00[(int)local_440]" (subscript_expression "puVar13[(int)local_440]" identifier [ (cast_expression "(int)local_440" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (subscript_expression "needle_00[(int)local_440]" identifier [ (cast_expression "(int)local_440" ( (type_descriptor "int" primitive_type) ) identifier) ])) )) (compound_statement "{\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);\n        }" { (do_statement "do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (needle_00[(int)local_450] == puVar13[(int)local_450]);" do (compound_statement "{\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          }" { (expression_statement "local_450 = local_450 + 1;" (assignment_expression "local_450 = local_450 + 1" identifier = (binary_expression "local_450 + 1" identifier + number_literal)) ;) (if_statement "if (local_444 <= local_450) goto LAB_000376fd;" if (parenthesized_expression "(local_444 <= local_450)" ( (binary_expression "local_444 <= local_450" identifier <= identifier) )) (goto_statement "goto LAB_000376fd;" goto statement_identifier ;)) }) while (parenthesized_expression "(needle_00[(int)local_450] == puVar13[(int)local_450])" ( (binary_expression "needle_00[(int)local_450] == puVar13[(int)local_450]" (subscript_expression "needle_00[(int)local_450]" identifier [ (cast_expression "(int)local_450" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (subscript_expression "puVar13[(int)local_450]" identifier [ (cast_expression "(int)local_450" ( (type_descriptor "int" primitive_type) ) identifier) ])) )) ;) })) (expression_statement "puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450;" (assignment_expression "puVar15 = puVar15 + (1 - (int)local_440) + (int)local_450" identifier = (binary_expression "puVar15 + (1 - (int)local_440) + (int)local_450" (binary_expression "puVar15 + (1 - (int)local_440)" identifier + (parenthesized_expression "(1 - (int)local_440)" ( (binary_expression "1 - (int)local_440" number_literal - (cast_expression "(int)local_440" ( (type_descriptor "int" primitive_type) ) identifier)) ))) + (cast_expression "(int)local_450" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\nLAB_000376fd:\n        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;\n        puVar9 = puVar1;\n        if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }\n        puVar15 = puVar15 + (int)(puVar14 + 1);\n      }" else (compound_statement "{\nLAB_000376fd:\n        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;\n        puVar9 = puVar1;\n        if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }\n        puVar15 = puVar15 + (int)(puVar14 + 1);\n      }" { (labeled_statement "LAB_000376fd:\n        if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;" statement_identifier : (if_statement "if (puVar1 == (uchar *)0xffffffff) goto LAB_00037759;" if (parenthesized_expression "(puVar1 == (uchar *)0xffffffff)" ( (binary_expression "puVar1 == (uchar *)0xffffffff" identifier == (cast_expression "(uchar *)0xffffffff" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00037759;" goto statement_identifier ;))) (expression_statement "puVar9 = puVar1;" (assignment_expression "puVar9 = puVar1" identifier = identifier) ;) (if_statement "if (puVar13[(int)puVar1] == needle_00[(int)puVar1]) {\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }" if (parenthesized_expression "(puVar13[(int)puVar1] == needle_00[(int)puVar1])" ( (binary_expression "puVar13[(int)puVar1] == needle_00[(int)puVar1]" (subscript_expression "puVar13[(int)puVar1]" identifier [ (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (subscript_expression "needle_00[(int)puVar1]" identifier [ (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) ])) )) (compound_statement "{\n          do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);\n        }" { (do_statement "do {\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          } while (needle_00[(int)puVar9] == puVar13[(int)puVar9]);" do (compound_statement "{\n            puVar9 = puVar9 + -1;\n            if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;\n          }" { (expression_statement "puVar9 = puVar9 + -1;" (assignment_expression "puVar9 = puVar9 + -1" identifier = (binary_expression "puVar9 + -1" identifier + number_literal)) ;) (if_statement "if (puVar9 == (uchar *)0xffffffff) goto LAB_00037759;" if (parenthesized_expression "(puVar9 == (uchar *)0xffffffff)" ( (binary_expression "puVar9 == (uchar *)0xffffffff" identifier == (cast_expression "(uchar *)0xffffffff" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00037759;" goto statement_identifier ;)) }) while (parenthesized_expression "(needle_00[(int)puVar9] == puVar13[(int)puVar9])" ( (binary_expression "needle_00[(int)puVar9] == puVar13[(int)puVar9]" (subscript_expression "needle_00[(int)puVar9]" identifier [ (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (subscript_expression "puVar13[(int)puVar9]" identifier [ (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) ])) )) ;) })) (expression_statement "puVar15 = puVar15 + (int)(puVar14 + 1);" (assignment_expression "puVar15 = puVar15 + (int)(puVar14 + 1)" identifier = (binary_expression "puVar15 + (int)(puVar14 + 1)" identifier + (cast_expression "(int)(puVar14 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar14 + 1)" ( (binary_expression "puVar14 + 1" identifier + number_literal) ))))) ;) }))) }) (else_clause "else {\n      puVar15 = puVar15 + shift_table[puVar13[iVar4 + -1]];\n    }" else (compound_statement "{\n      puVar15 = puVar15 + shift_table[puVar13[iVar4 + -1]];\n    }" { (expression_statement "puVar15 = puVar15 + shift_table[puVar13[iVar4 + -1]];" (assignment_expression "puVar15 = puVar15 + shift_table[puVar13[iVar4 + -1]]" identifier = (binary_expression "puVar15 + shift_table[puVar13[iVar4 + -1]]" identifier + (subscript_expression "shift_table[puVar13[iVar4 + -1]]" identifier [ (subscript_expression "puVar13[iVar4 + -1]" identifier [ (binary_expression "iVar4 + -1" identifier + number_literal) ]) ]))) ;) }))) })) (labeled_statement "LAB_00037757:\n  puVar13 = (uchar *)0x0;" statement_identifier : (expression_statement "puVar13 = (uchar *)0x0;" (assignment_expression "puVar13 = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (labeled_statement "LAB_00037759:\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 *)puVar13;" return (cast_expression "(char *)puVar13" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "int FUN_00037550(uint param_1)\n\n{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  int iVar4;\n  uint *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  byte *__s1;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  undefined8 uVar13;\n  uint local_450;\n  uint local_444;\n  uint local_440;\n  uint local_43c;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [4];\n  \n  uVar13 = FUN_00027eac();\n  iVar8 = (int)((ulonglong)uVar13 >> 0x20);\n  iVar4 = (int)uVar13;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 3) {\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }\n  else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }\n  puVar5 = local_420;\n  do {\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  } while (local_20 != puVar5);\n  if (param_1 == 0) {\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }\n  else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }\n  uVar11 = param_1 - local_440;\n  if (param_1 - local_440 < local_440) {\n    uVar11 = local_440;\n  }\n  iVar1 = local_440 - 1;\n  iVar12 = 0;\n  while( true ) {\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }\nLAB_00037757:\n  iVar7 = 0;\nLAB_00037759:\n  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }\n  return iVar7;\n}\n\n" (function_definition "int FUN_00037550(uint param_1)\n\n{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  int iVar4;\n  uint *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  byte *__s1;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  undefined8 uVar13;\n  uint local_450;\n  uint local_444;\n  uint local_440;\n  uint local_43c;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [4];\n  \n  uVar13 = FUN_00027eac();\n  iVar8 = (int)((ulonglong)uVar13 >> 0x20);\n  iVar4 = (int)uVar13;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 3) {\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }\n  else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }\n  puVar5 = local_420;\n  do {\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  } while (local_20 != puVar5);\n  if (param_1 == 0) {\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }\n  else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }\n  uVar11 = param_1 - local_440;\n  if (param_1 - local_440 < local_440) {\n    uVar11 = local_440;\n  }\n  iVar1 = local_440 - 1;\n  iVar12 = 0;\n  while( true ) {\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }\nLAB_00037757:\n  iVar7 = 0;\nLAB_00037759:\n  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }\n  return iVar7;\n}" primitive_type (function_declarator "FUN_00037550(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  int iVar4;\n  uint *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  byte *__s1;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  undefined8 uVar13;\n  uint local_450;\n  uint local_444;\n  uint local_440;\n  uint local_43c;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [4];\n  \n  uVar13 = FUN_00027eac();\n  iVar8 = (int)((ulonglong)uVar13 >> 0x20);\n  iVar4 = (int)uVar13;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 3) {\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }\n  else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }\n  puVar5 = local_420;\n  do {\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  } while (local_20 != puVar5);\n  if (param_1 == 0) {\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }\n  else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }\n  uVar11 = param_1 - local_440;\n  if (param_1 - local_440 < local_440) {\n    uVar11 = local_440;\n  }\n  iVar1 = local_440 - 1;\n  iVar12 = 0;\n  while( true ) {\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }\nLAB_00037757:\n  iVar7 = 0;\nLAB_00037759:\n  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }\n  return iVar7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "byte *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar13;" type_identifier identifier ;) (declaration "uint local_450;" type_identifier identifier ;) (declaration "uint local_444;" type_identifier identifier ;) (declaration "uint local_440;" type_identifier identifier ;) (declaration "uint local_43c;" 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 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "uVar13 = FUN_00027eac();" (assignment_expression "uVar13 = FUN_00027eac()" identifier = (call_expression "FUN_00027eac()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar8 = (int)((ulonglong)uVar13 >> 0x20);" (assignment_expression "iVar8 = (int)((ulonglong)uVar13 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar13 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar13 >> 0x20)" ( (binary_expression "(ulonglong)uVar13 >> 0x20" (cast_expression "(ulonglong)uVar13" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar4 = (int)uVar13;" (assignment_expression "iVar4 = (int)uVar13" identifier = (cast_expression "(int)uVar13" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (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_1 < 3) {\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }\n  else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }" if (parenthesized_expression "(param_1 < 3)" ( (binary_expression "param_1 < 3" identifier < number_literal) )) (compound_statement "{\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }" { (expression_statement "local_440 = param_1 - 1;" (assignment_expression "local_440 = param_1 - 1" identifier = (binary_expression "param_1 - 1" identifier - number_literal)) ;) (expression_statement "local_43c = 1;" (assignment_expression "local_43c = 1" identifier = number_literal) ;) }) (else_clause "else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }" else (compound_statement "{\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }" { (expression_statement "local_440 = FUN_000373f0();" (assignment_expression "local_440 = FUN_000373f0()" identifier = (call_expression "FUN_000373f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_43c = local_424;" (assignment_expression "local_43c = local_424" identifier = identifier) ;) }))) (expression_statement "puVar5 = local_420;" (assignment_expression "puVar5 = local_420" identifier = identifier) ;) (do_statement "do {\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  } while (local_20 != puVar5);" do (compound_statement "{\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  }" { (expression_statement "*puVar5 = param_1;" (assignment_expression "*puVar5 = param_1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_20 != puVar5)" ( (binary_expression "local_20 != puVar5" identifier != identifier) )) ;) (if_statement "if (param_1 == 0) {\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }\n  else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }" { (expression_statement "iVar7 = memcmp(__s1,__s1 + local_43c,local_440);" (assignment_expression "iVar7 = memcmp(__s1,__s1 + local_43c,local_440)" identifier = (call_expression "memcmp(__s1,__s1 + local_43c,local_440)" identifier (argument_list "(__s1,__s1 + local_43c,local_440)" ( identifier , (binary_expression "__s1 + local_43c" identifier + identifier) , identifier )))) ;) (if_statement "if (iVar7 == 0) goto LAB_00037757;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00037757;" goto statement_identifier ;)) (expression_statement "local_444 = 0xffffffff;" (assignment_expression "local_444 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }" else (compound_statement "{\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }" { (expression_statement "local_444 = param_1 - 1;" (assignment_expression "local_444 = param_1 - 1" identifier = (binary_expression "param_1 - 1" identifier - number_literal)) ;) (expression_statement "pbVar6 = __s1;" (assignment_expression "pbVar6 = __s1" identifier = identifier) ;) (do_statement "do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);" do (compound_statement "{\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    }" { (expression_statement "bVar2 = *pbVar6;" (assignment_expression "bVar2 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) (expression_statement "iVar7 = local_444 - (int)pbVar6;" (assignment_expression "iVar7 = local_444 - (int)pbVar6" identifier = (binary_expression "local_444 - (int)pbVar6" identifier - (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "local_420[bVar2] = (uint)(__s1 + iVar7);" (assignment_expression "local_420[bVar2] = (uint)(__s1 + iVar7)" (subscript_expression "local_420[bVar2]" identifier [ identifier ]) = (call_expression "(uint)(__s1 + iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(__s1 + iVar7)" ( (binary_expression "__s1 + iVar7" identifier + identifier) )))) ;) }) while (parenthesized_expression "(__s1 + param_1 != pbVar6)" ( (binary_expression "__s1 + param_1 != pbVar6" (binary_expression "__s1 + param_1" identifier + identifier) != identifier) )) ;) (expression_statement "iVar7 = memcmp(__s1,__s1 + local_43c,local_440);" (assignment_expression "iVar7 = memcmp(__s1,__s1 + local_43c,local_440)" identifier = (call_expression "memcmp(__s1,__s1 + local_43c,local_440)" identifier (argument_list "(__s1,__s1 + local_43c,local_440)" ( identifier , (binary_expression "__s1 + local_43c" identifier + identifier) , identifier )))) ;) (if_statement "if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "local_450 = 0;" (assignment_expression "local_450 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );" statement_identifier : (do_statement "do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );" do (compound_statement "{\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      }" { (expression_statement "iVar7 = local_450 + param_1;" (assignment_expression "iVar7 = local_450 + param_1" identifier = (binary_expression "local_450 + param_1" identifier + identifier)) ;) (expression_statement "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);" (assignment_expression "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" identifier = (call_expression "FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" identifier (argument_list "(iVar8 + iVar4,0,iVar7 - iVar8)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) , number_literal , (binary_expression "iVar7 - iVar8" identifier - identifier) )))) ;) (if_statement "if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;" if (parenthesized_expression "((iVar8 != 0) || (iVar7 == 0))" ( (binary_expression "(iVar8 != 0) || (iVar7 == 0)" (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_00037757;" goto statement_identifier ;)) (expression_statement "uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];" (assignment_expression "uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier = (subscript_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier [ (pointer_expression "*(byte *)(iVar4 + -1 + iVar7)" * (cast_expression "(byte *)(iVar4 + -1 + iVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -1 + iVar7)" ( (binary_expression "iVar4 + -1 + iVar7" (binary_expression "iVar4 + -1" identifier + number_literal) + identifier) )))) ])) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) (if_statement "if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }" if (parenthesized_expression "(uVar10 == 0)" ( (binary_expression "uVar10 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }" { (expression_statement "uVar10 = local_440;" (assignment_expression "uVar10 = local_440" identifier = identifier) ;) (if_statement "if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }" if (parenthesized_expression "(local_440 <= uVar11)" ( (binary_expression "local_440 <= uVar11" identifier <= identifier) )) (compound_statement "{\n            uVar10 = uVar11;\n          }" { (expression_statement "uVar10 = uVar11;" (assignment_expression "uVar10 = uVar11" identifier = identifier) ;) })) (if_statement "if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }" if (parenthesized_expression "(uVar10 < local_444)" ( (binary_expression "uVar10 < local_444" identifier < identifier) )) (compound_statement "{\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }" { (do_statement "do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);" do (compound_statement "{\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            }" { (if_statement "if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }" if (parenthesized_expression "(__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10))" ( (binary_expression "__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)" (subscript_expression "__s1[uVar10]" identifier [ identifier ]) != (pointer_expression "*(byte *)(iVar4 + local_450 + uVar10)" * (cast_expression "(byte *)(iVar4 + local_450 + uVar10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + local_450 + uVar10)" ( (binary_expression "iVar4 + local_450 + uVar10" (binary_expression "iVar4 + local_450" identifier + identifier) + identifier) ))))) )) (compound_statement "{\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }" { (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "local_450 = local_450 + (1 - local_440) + uVar10;" (assignment_expression "local_450 = local_450 + (1 - local_440) + uVar10" identifier = (binary_expression "local_450 + (1 - local_440) + uVar10" (binary_expression "local_450 + (1 - local_440)" identifier + (parenthesized_expression "(1 - local_440)" ( (binary_expression "1 - local_440" number_literal - identifier) ))) + identifier)) ;) (goto_statement "goto LAB_000377b0;" goto statement_identifier ;) })) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar10 != local_444)" ( (binary_expression "uVar10 != local_444" identifier != identifier) )) ;) })) (expression_statement "uVar10 = local_440;" (assignment_expression "uVar10 = local_440" identifier = identifier) ;) (if_statement "if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }" if (parenthesized_expression "((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1]))" ( (binary_expression "(uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])" (parenthesized_expression "(uVar11 < local_440)" ( (binary_expression "uVar11 < local_440" identifier < identifier) )) && (parenthesized_expression "(uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])" ( (comma_expression "uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1]" (assignment_expression "uVar3 = local_440 - 1" identifier = (binary_expression "local_440 - 1" identifier - number_literal)) , (binary_expression "*(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1]" (pointer_expression "*(byte *)(iVar4 + local_450 + (local_440 - 1))" * (cast_expression "(byte *)(iVar4 + local_450 + (local_440 - 1))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + local_450 + (local_440 - 1))" ( (binary_expression "iVar4 + local_450 + (local_440 - 1)" (binary_expression "iVar4 + local_450" identifier + identifier) + (parenthesized_expression "(local_440 - 1)" ( (binary_expression "local_440 - 1" identifier - number_literal) ))) )))) == (subscript_expression "__s1[local_440 - 1]" identifier [ (binary_expression "local_440 - 1" identifier - number_literal) ]))) ))) )) (compound_statement "{\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }" { (do_statement "do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));" do (compound_statement "{\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            }" { (expression_statement "uVar10 = uVar3;" (assignment_expression "uVar10 = uVar3" identifier = identifier) ;) (if_statement "if (uVar11 == uVar10) break;" if (parenthesized_expression "(uVar11 == uVar10)" ( (binary_expression "uVar11 == uVar10" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = uVar10 - 1;" (assignment_expression "uVar3 = uVar10 - 1" identifier = (binary_expression "uVar10 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450))" ( (binary_expression "__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450)" (subscript_expression "__s1[uVar10 - 1]" identifier [ (binary_expression "uVar10 - 1" identifier - number_literal) ]) == (pointer_expression "*(byte *)((uVar10 - 1) + iVar4 + local_450)" * (cast_expression "(byte *)((uVar10 - 1) + iVar4 + local_450)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uVar10 - 1) + iVar4 + local_450)" ( (binary_expression "(uVar10 - 1) + iVar4 + local_450" (binary_expression "(uVar10 - 1) + iVar4" (parenthesized_expression "(uVar10 - 1)" ( (binary_expression "uVar10 - 1" identifier - number_literal) )) + identifier) + identifier) ))))) )) ;) })) (if_statement "if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }" if (parenthesized_expression "(uVar10 < uVar11 + 1)" ( (binary_expression "uVar10 < uVar11 + 1" identifier < (binary_expression "uVar11 + 1" identifier + number_literal)) )) (compound_statement "{\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }" { (expression_statement "iVar7 = iVar4 + local_450;" (assignment_expression "iVar7 = iVar4 + local_450" identifier = (binary_expression "iVar4 + local_450" identifier + identifier)) ;) (goto_statement "goto LAB_00037759;" goto statement_identifier ;) })) (expression_statement "local_450 = local_450 + local_43c;" (assignment_expression "local_450 = local_450 + local_43c" identifier = (binary_expression "local_450 + local_43c" identifier + identifier)) ;) (expression_statement "uVar11 = param_1 - local_43c;" (assignment_expression "uVar11 = param_1 - local_43c" identifier = (binary_expression "param_1 - local_43c" identifier - identifier)) ;) }) (else_clause "else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }" else (compound_statement "{\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }" { (if_statement "if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }" if (parenthesized_expression "((uVar10 < local_43c) && (uVar11 != 0))" ( (binary_expression "(uVar10 < local_43c) && (uVar11 != 0)" (parenthesized_expression "(uVar10 < local_43c)" ( (binary_expression "uVar10 < local_43c" identifier < identifier) )) && (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) ))) )) (compound_statement "{\n            uVar10 = param_1 - local_43c;\n          }" { (expression_statement "uVar10 = param_1 - local_43c;" (assignment_expression "uVar10 = param_1 - local_43c" identifier = (binary_expression "param_1 - local_43c" identifier - identifier)) ;) })) (expression_statement "local_450 = local_450 + uVar10;" (assignment_expression "local_450 = local_450 + uVar10" identifier = (binary_expression "local_450 + uVar10" identifier + identifier)) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) }))) }) while (parenthesized_expression "( true )" ( true )) ;)) })) }))) (expression_statement "uVar11 = param_1 - local_440;" (assignment_expression "uVar11 = param_1 - local_440" identifier = (binary_expression "param_1 - local_440" identifier - identifier)) ;) (if_statement "if (param_1 - local_440 < local_440) {\n    uVar11 = local_440;\n  }" if (parenthesized_expression "(param_1 - local_440 < local_440)" ( (binary_expression "param_1 - local_440 < local_440" (binary_expression "param_1 - local_440" identifier - identifier) < identifier) )) (compound_statement "{\n    uVar11 = local_440;\n  }" { (expression_statement "uVar11 = local_440;" (assignment_expression "uVar11 = local_440" identifier = identifier) ;) })) (expression_statement "iVar1 = local_440 - 1;" (assignment_expression "iVar1 = local_440 - 1" identifier = (binary_expression "local_440 - 1" identifier - number_literal)) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }" { (expression_statement "iVar7 = param_1 + iVar12;" (assignment_expression "iVar7 = param_1 + iVar12" identifier = (binary_expression "param_1 + iVar12" identifier + identifier)) ;) (expression_statement "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);" (assignment_expression "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" identifier = (call_expression "FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" identifier (argument_list "(iVar8 + iVar4,0,iVar7 - iVar8)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) , number_literal , (binary_expression "iVar7 - iVar8" identifier - identifier) )))) ;) (if_statement "if ((iVar7 == 0) || (iVar8 != 0)) break;" if (parenthesized_expression "((iVar7 == 0) || (iVar8 != 0))" ( (binary_expression "(iVar7 == 0) || (iVar8 != 0)" (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) (if_statement "if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }" if (parenthesized_expression "(local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0)" ( (binary_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0" (subscript_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier [ (pointer_expression "*(byte *)(iVar4 + -1 + iVar7)" * (cast_expression "(byte *)(iVar4 + -1 + iVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -1 + iVar7)" ( (binary_expression "iVar4 + -1 + iVar7" (binary_expression "iVar4 + -1" identifier + number_literal) + identifier) )))) ]) == number_literal) )) (compound_statement "{\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }" { (expression_statement "iVar7 = iVar4 + iVar12;" (assignment_expression "iVar7 = iVar4 + iVar12" identifier = (binary_expression "iVar4 + iVar12" identifier + identifier)) ;) (if_statement "if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }" if (parenthesized_expression "(local_440 < local_444)" ( (binary_expression "local_440 < local_444" identifier < identifier) )) (compound_statement "{\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }" { (expression_statement "local_450 = local_440;" (assignment_expression "local_450 = local_440" identifier = identifier) ;) (if_statement "if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }" if (parenthesized_expression "(*(byte *)(iVar7 + local_440) == __s1[local_440])" ( (binary_expression "*(byte *)(iVar7 + local_440) == __s1[local_440]" (pointer_expression "*(byte *)(iVar7 + local_440)" * (cast_expression "(byte *)(iVar7 + local_440)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + local_440)" ( (binary_expression "iVar7 + local_440" identifier + identifier) )))) == (subscript_expression "__s1[local_440]" identifier [ identifier ])) )) (compound_statement "{\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }" { (do_statement "do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));" do (compound_statement "{\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          }" { (expression_statement "local_450 = local_450 + 1;" (assignment_expression "local_450 = local_450 + 1" identifier = (binary_expression "local_450 + 1" identifier + number_literal)) ;) (if_statement "if (local_444 <= local_450) goto LAB_000376fd;" if (parenthesized_expression "(local_444 <= local_450)" ( (binary_expression "local_444 <= local_450" identifier <= identifier) )) (goto_statement "goto LAB_000376fd;" goto statement_identifier ;)) }) while (parenthesized_expression "(__s1[local_450] == *(byte *)(iVar7 + local_450))" ( (binary_expression "__s1[local_450] == *(byte *)(iVar7 + local_450)" (subscript_expression "__s1[local_450]" identifier [ identifier ]) == (pointer_expression "*(byte *)(iVar7 + local_450)" * (cast_expression "(byte *)(iVar7 + local_450)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + local_450)" ( (binary_expression "iVar7 + local_450" identifier + identifier) ))))) )) ;) })) (expression_statement "iVar12 = iVar12 + (1 - local_440) + local_450;" (assignment_expression "iVar12 = iVar12 + (1 - local_440) + local_450" identifier = (binary_expression "iVar12 + (1 - local_440) + local_450" (binary_expression "iVar12 + (1 - local_440)" identifier + (parenthesized_expression "(1 - local_440)" ( (binary_expression "1 - local_440" number_literal - identifier) ))) + identifier)) ;) }) (else_clause "else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }" else (compound_statement "{\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }" { (labeled_statement "LAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;" statement_identifier : (if_statement "if (iVar1 == -1) goto LAB_00037759;" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00037759;" goto statement_identifier ;))) (expression_statement "iVar9 = iVar1;" (assignment_expression "iVar9 = iVar1" identifier = identifier) ;) (if_statement "if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }" if (parenthesized_expression "(*(byte *)(iVar7 + iVar1) == __s1[iVar1])" ( (binary_expression "*(byte *)(iVar7 + iVar1) == __s1[iVar1]" (pointer_expression "*(byte *)(iVar7 + iVar1)" * (cast_expression "(byte *)(iVar7 + iVar1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + iVar1)" ( (binary_expression "iVar7 + iVar1" identifier + identifier) )))) == (subscript_expression "__s1[iVar1]" identifier [ identifier ])) )) (compound_statement "{\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }" { (do_statement "do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));" do (compound_statement "{\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          }" { (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ;) (if_statement "if (iVar9 == -1) goto LAB_00037759;" if (parenthesized_expression "(iVar9 == -1)" ( (binary_expression "iVar9 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00037759;" goto statement_identifier ;)) }) while (parenthesized_expression "(__s1[iVar9] == *(byte *)(iVar7 + iVar9))" ( (binary_expression "__s1[iVar9] == *(byte *)(iVar7 + iVar9)" (subscript_expression "__s1[iVar9]" identifier [ identifier ]) == (pointer_expression "*(byte *)(iVar7 + iVar9)" * (cast_expression "(byte *)(iVar7 + iVar9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + iVar9)" ( (binary_expression "iVar7 + iVar9" identifier + identifier) ))))) )) ;) })) (expression_statement "iVar12 = iVar12 + uVar11 + 1;" (assignment_expression "iVar12 = iVar12 + uVar11 + 1" identifier = (binary_expression "iVar12 + uVar11 + 1" (binary_expression "iVar12 + uVar11" identifier + identifier) + number_literal)) ;) }))) }) (else_clause "else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }" else (compound_statement "{\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }" { (expression_statement "iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];" (assignment_expression "iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier = (binary_expression "iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier + (subscript_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)]" identifier [ (pointer_expression "*(byte *)(iVar4 + -1 + iVar7)" * (cast_expression "(byte *)(iVar4 + -1 + iVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -1 + iVar7)" ( (binary_expression "iVar4 + -1 + iVar7" (binary_expression "iVar4 + -1" identifier + number_literal) + identifier) )))) ]))) ;) }))) })) (labeled_statement "LAB_00037757:\n  iVar7 = 0;" statement_identifier : (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_00037759:\n  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }" statement_identifier : (if_statement "if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\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_00038830();\n  }" { (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 ]) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (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) )) (goto_statement goto statement_identifier ;)) (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 { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (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) )))) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) (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 = (subscript_expression IDENT [ (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + 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 { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + 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) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT - LIT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + (parenthesized_expression ( (binary_expression IDENT - LIT) ))) )))) == (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]))) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) + 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 = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (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) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) == (subscript_expression IDENT [ IDENT ])) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - IDENT) ))) + IDENT)) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) == (subscript_expression IDENT [ IDENT ])) )) (compound_statement { (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 ;)) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 [ (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ]))) ;) }))) })) (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 ;) })))
(function_definition "int FUN_00037550(uint param_1)\n\n{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  int iVar4;\n  uint *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  byte *__s1;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  undefined8 uVar13;\n  uint local_450;\n  uint local_444;\n  uint local_440;\n  uint local_43c;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [4];\n  \n  uVar13 = FUN_00027eac();\n  iVar8 = (int)((ulonglong)uVar13 >> 0x20);\n  iVar4 = (int)uVar13;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 3) {\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }\n  else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }\n  puVar5 = local_420;\n  do {\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  } while (local_20 != puVar5);\n  if (param_1 == 0) {\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }\n  else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }\n  uVar11 = param_1 - local_440;\n  if (param_1 - local_440 < local_440) {\n    uVar11 = local_440;\n  }\n  iVar1 = local_440 - 1;\n  iVar12 = 0;\n  while( true ) {\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }\nLAB_00037757:\n  iVar7 = 0;\nLAB_00037759:\n  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }\n  return iVar7;\n}" (primitive_type "int") (function_declarator "FUN_00037550(uint param_1)" (identifier "FUN_00037550") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  int iVar4;\n  uint *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  byte *__s1;\n  uint uVar10;\n  uint uVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  undefined8 uVar13;\n  uint local_450;\n  uint local_444;\n  uint local_440;\n  uint local_43c;\n  uint local_424;\n  uint local_420 [256];\n  uint local_20 [4];\n  \n  uVar13 = FUN_00027eac();\n  iVar8 = (int)((ulonglong)uVar13 >> 0x20);\n  iVar4 = (int)uVar13;\n  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);\n  if (param_1 < 3) {\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }\n  else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }\n  puVar5 = local_420;\n  do {\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  } while (local_20 != puVar5);\n  if (param_1 == 0) {\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }\n  else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }\n  uVar11 = param_1 - local_440;\n  if (param_1 - local_440 < local_440) {\n    uVar11 = local_440;\n  }\n  iVar1 = local_440 - 1;\n  iVar12 = 0;\n  while( true ) {\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }\nLAB_00037757:\n  iVar7 = 0;\nLAB_00037759:\n  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }\n  return iVar7;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "byte *__s1;" (type_identifier "byte") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined8 uVar13;" (type_identifier "undefined8") (identifier "uVar13") (; ";")) (declaration "uint local_450;" (type_identifier "uint") (identifier "local_450") (; ";")) (declaration "uint local_444;" (type_identifier "uint") (identifier "local_444") (; ";")) (declaration "uint local_440;" (type_identifier "uint") (identifier "local_440") (; ";")) (declaration "uint local_43c;" (type_identifier "uint") (identifier "local_43c") (; ";")) (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 [4];" (type_identifier "uint") (array_declarator "local_20 [4]" (identifier "local_20") ([ "[") (number_literal "4") (] "]")) (; ";")) (expression_statement "uVar13 = FUN_00027eac();" (assignment_expression "uVar13 = FUN_00027eac()" (identifier "uVar13") (= "=") (call_expression "FUN_00027eac()" (identifier "FUN_00027eac") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar8 = (int)((ulonglong)uVar13 >> 0x20);" (assignment_expression "iVar8 = (int)((ulonglong)uVar13 >> 0x20)" (identifier "iVar8") (= "=") (cast_expression "(int)((ulonglong)uVar13 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar13 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar13 >> 0x20" (cast_expression "(ulonglong)uVar13" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar13")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "iVar4 = (int)uVar13;" (assignment_expression "iVar4 = (int)uVar13" (identifier "iVar4") (= "=") (cast_expression "(int)uVar13" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar13"))) (; ";")) (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_1 < 3) {\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }\n  else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }" (if "if") (parenthesized_expression "(param_1 < 3)" (( "(") (binary_expression "param_1 < 3" (identifier "param_1") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n    local_440 = param_1 - 1;\n    local_43c = 1;\n  }" ({ "{") (expression_statement "local_440 = param_1 - 1;" (assignment_expression "local_440 = param_1 - 1" (identifier "local_440") (= "=") (binary_expression "param_1 - 1" (identifier "param_1") (- "-") (number_literal "1"))) (; ";")) (expression_statement "local_43c = 1;" (assignment_expression "local_43c = 1" (identifier "local_43c") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }" (else "else") (compound_statement "{\n    local_440 = FUN_000373f0();\n    local_43c = local_424;\n  }" ({ "{") (expression_statement "local_440 = FUN_000373f0();" (assignment_expression "local_440 = FUN_000373f0()" (identifier "local_440") (= "=") (call_expression "FUN_000373f0()" (identifier "FUN_000373f0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_43c = local_424;" (assignment_expression "local_43c = local_424" (identifier "local_43c") (= "=") (identifier "local_424")) (; ";")) (} "}")))) (expression_statement "puVar5 = local_420;" (assignment_expression "puVar5 = local_420" (identifier "puVar5") (= "=") (identifier "local_420")) (; ";")) (do_statement "do {\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  } while (local_20 != puVar5);" (do "do") (compound_statement "{\n    *puVar5 = param_1;\n    puVar5 = puVar5 + 1;\n  }" ({ "{") (expression_statement "*puVar5 = param_1;" (assignment_expression "*puVar5 = param_1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_20 != puVar5)" (( "(") (binary_expression "local_20 != puVar5" (identifier "local_20") (!= "!=") (identifier "puVar5")) () ")")) (; ";")) (if_statement "if (param_1 == 0) {\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }\n  else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) goto LAB_00037757;\n    local_444 = 0xffffffff;\n  }" ({ "{") (expression_statement "iVar7 = memcmp(__s1,__s1 + local_43c,local_440);" (assignment_expression "iVar7 = memcmp(__s1,__s1 + local_43c,local_440)" (identifier "iVar7") (= "=") (call_expression "memcmp(__s1,__s1 + local_43c,local_440)" (identifier "memcmp") (argument_list "(__s1,__s1 + local_43c,local_440)" (( "(") (identifier "__s1") (, ",") (binary_expression "__s1 + local_43c" (identifier "__s1") (+ "+") (identifier "local_43c")) (, ",") (identifier "local_440") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) goto LAB_00037757;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00037757;" (goto "goto") (statement_identifier "LAB_00037757") (; ";"))) (expression_statement "local_444 = 0xffffffff;" (assignment_expression "local_444 = 0xffffffff" (identifier "local_444") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }" (else "else") (compound_statement "{\n    local_444 = param_1 - 1;\n    pbVar6 = __s1;\n    do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);\n    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);\n    if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }\n  }" ({ "{") (expression_statement "local_444 = param_1 - 1;" (assignment_expression "local_444 = param_1 - 1" (identifier "local_444") (= "=") (binary_expression "param_1 - 1" (identifier "param_1") (- "-") (number_literal "1"))) (; ";")) (expression_statement "pbVar6 = __s1;" (assignment_expression "pbVar6 = __s1" (identifier "pbVar6") (= "=") (identifier "__s1")) (; ";")) (do_statement "do {\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    } while (__s1 + param_1 != pbVar6);" (do "do") (compound_statement "{\n      bVar2 = *pbVar6;\n      iVar7 = local_444 - (int)pbVar6;\n      pbVar6 = pbVar6 + 1;\n      local_420[bVar2] = (uint)(__s1 + iVar7);\n    }" ({ "{") (expression_statement "bVar2 = *pbVar6;" (assignment_expression "bVar2 = *pbVar6" (identifier "bVar2") (= "=") (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6"))) (; ";")) (expression_statement "iVar7 = local_444 - (int)pbVar6;" (assignment_expression "iVar7 = local_444 - (int)pbVar6" (identifier "iVar7") (= "=") (binary_expression "local_444 - (int)pbVar6" (identifier "local_444") (- "-") (cast_expression "(int)pbVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar6")))) (; ";")) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_420[bVar2] = (uint)(__s1 + iVar7);" (assignment_expression "local_420[bVar2] = (uint)(__s1 + iVar7)" (subscript_expression "local_420[bVar2]" (identifier "local_420") ([ "[") (identifier "bVar2") (] "]")) (= "=") (call_expression "(uint)(__s1 + iVar7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(__s1 + iVar7)" (( "(") (binary_expression "__s1 + iVar7" (identifier "__s1") (+ "+") (identifier "iVar7")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(__s1 + param_1 != pbVar6)" (( "(") (binary_expression "__s1 + param_1 != pbVar6" (binary_expression "__s1 + param_1" (identifier "__s1") (+ "+") (identifier "param_1")) (!= "!=") (identifier "pbVar6")) () ")")) (; ";")) (expression_statement "iVar7 = memcmp(__s1,__s1 + local_43c,local_440);" (assignment_expression "iVar7 = memcmp(__s1,__s1 + local_43c,local_440)" (identifier "iVar7") (= "=") (call_expression "memcmp(__s1,__s1 + local_43c,local_440)" (identifier "memcmp") (argument_list "(__s1,__s1 + local_43c,local_440)" (( "(") (identifier "__s1") (, ",") (binary_expression "__s1 + local_43c" (identifier "__s1") (+ "+") (identifier "local_43c")) (, ",") (identifier "local_440") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) {\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar11 = 0;\n      local_450 = 0;\nLAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );\n    }" ({ "{") (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_450 = 0;" (assignment_expression "local_450 = 0" (identifier "local_450") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000377b0:\n      do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );" (statement_identifier "LAB_000377b0") (: ":") (do_statement "do {\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      } while( true );" (do "do") (compound_statement "{\n        iVar7 = local_450 + param_1;\n        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;\n        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];\n        iVar8 = iVar7;\n        if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }\n      }" ({ "{") (expression_statement "iVar7 = local_450 + param_1;" (assignment_expression "iVar7 = local_450 + param_1" (identifier "iVar7") (= "=") (binary_expression "local_450 + param_1" (identifier "local_450") (+ "+") (identifier "param_1"))) (; ";")) (expression_statement "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);" (assignment_expression "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" (identifier "iVar8") (= "=") (call_expression "FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" (identifier "FUN_00036f10") (argument_list "(iVar8 + iVar4,0,iVar7 - iVar8)" (( "(") (binary_expression "iVar8 + iVar4" (identifier "iVar8") (+ "+") (identifier "iVar4")) (, ",") (number_literal "0") (, ",") (binary_expression "iVar7 - iVar8" (identifier "iVar7") (- "-") (identifier "iVar8")) () ")")))) (; ";")) (if_statement "if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;" (if "if") (parenthesized_expression "((iVar8 != 0) || (iVar7 == 0))" (( "(") (binary_expression "(iVar8 != 0) || (iVar7 == 0)" (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_00037757;" (goto "goto") (statement_identifier "LAB_00037757") (; ";"))) (expression_statement "uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];" (assignment_expression "uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)]" (identifier "uVar10") (= "=") (subscript_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)]" (identifier "local_420") ([ "[") (pointer_expression "*(byte *)(iVar4 + -1 + iVar7)" (* "*") (cast_expression "(byte *)(iVar4 + -1 + iVar7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -1 + iVar7)" (( "(") (binary_expression "iVar4 + -1 + iVar7" (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1")) (+ "+") (identifier "iVar7")) () ")")))) (] "]"))) (; ";")) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" (identifier "iVar8") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (uVar10 == 0) {\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }\n        else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }" (if "if") (parenthesized_expression "(uVar10 == 0)" (( "(") (binary_expression "uVar10 == 0" (identifier "uVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar10 = local_440;\n          if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }\n          if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }\n          uVar10 = local_440;\n          if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }\n          if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }\n          local_450 = local_450 + local_43c;\n          uVar11 = param_1 - local_43c;\n        }" ({ "{") (expression_statement "uVar10 = local_440;" (assignment_expression "uVar10 = local_440" (identifier "uVar10") (= "=") (identifier "local_440")) (; ";")) (if_statement "if (local_440 <= uVar11) {\n            uVar10 = uVar11;\n          }" (if "if") (parenthesized_expression "(local_440 <= uVar11)" (( "(") (binary_expression "local_440 <= uVar11" (identifier "local_440") (<= "<=") (identifier "uVar11")) () ")")) (compound_statement "{\n            uVar10 = uVar11;\n          }" ({ "{") (expression_statement "uVar10 = uVar11;" (assignment_expression "uVar10 = uVar11" (identifier "uVar10") (= "=") (identifier "uVar11")) (; ";")) (} "}"))) (if_statement "if (uVar10 < local_444) {\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }" (if "if") (parenthesized_expression "(uVar10 < local_444)" (( "(") (binary_expression "uVar10 < local_444" (identifier "uVar10") (< "<") (identifier "local_444")) () ")")) (compound_statement "{\n            do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);\n          }" ({ "{") (do_statement "do {\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            } while (uVar10 != local_444);" (do "do") (compound_statement "{\n              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }\n              uVar10 = uVar10 + 1;\n            }" ({ "{") (if_statement "if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }" (if "if") (parenthesized_expression "(__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10))" (( "(") (binary_expression "__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)" (subscript_expression "__s1[uVar10]" (identifier "__s1") ([ "[") (identifier "uVar10") (] "]")) (!= "!=") (pointer_expression "*(byte *)(iVar4 + local_450 + uVar10)" (* "*") (cast_expression "(byte *)(iVar4 + local_450 + uVar10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + local_450 + uVar10)" (( "(") (binary_expression "iVar4 + local_450 + uVar10" (binary_expression "iVar4 + local_450" (identifier "iVar4") (+ "+") (identifier "local_450")) (+ "+") (identifier "uVar10")) () ")"))))) () ")")) (compound_statement "{\n                uVar11 = 0;\n                local_450 = local_450 + (1 - local_440) + uVar10;\n                goto LAB_000377b0;\n              }" ({ "{") (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_450 = local_450 + (1 - local_440) + uVar10;" (assignment_expression "local_450 = local_450 + (1 - local_440) + uVar10" (identifier "local_450") (= "=") (binary_expression "local_450 + (1 - local_440) + uVar10" (binary_expression "local_450 + (1 - local_440)" (identifier "local_450") (+ "+") (parenthesized_expression "(1 - local_440)" (( "(") (binary_expression "1 - local_440" (number_literal "1") (- "-") (identifier "local_440")) () ")"))) (+ "+") (identifier "uVar10"))) (; ";")) (goto_statement "goto LAB_000377b0;" (goto "goto") (statement_identifier "LAB_000377b0") (; ";")) (} "}"))) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" (identifier "uVar10") (= "=") (binary_expression "uVar10 + 1" (identifier "uVar10") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar10 != local_444)" (( "(") (binary_expression "uVar10 != local_444" (identifier "uVar10") (!= "!=") (identifier "local_444")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar10 = local_440;" (assignment_expression "uVar10 = local_440" (identifier "uVar10") (= "=") (identifier "local_440")) (; ";")) (if_statement "if ((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }" (if "if") (parenthesized_expression "((uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1]))" (( "(") (binary_expression "(uVar11 < local_440) &&\n             (uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])" (parenthesized_expression "(uVar11 < local_440)" (( "(") (binary_expression "uVar11 < local_440" (identifier "uVar11") (< "<") (identifier "local_440")) () ")")) (&& "&&") (parenthesized_expression "(uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])" (( "(") (comma_expression "uVar3 = local_440 - 1,\n             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1]" (assignment_expression "uVar3 = local_440 - 1" (identifier "uVar3") (= "=") (binary_expression "local_440 - 1" (identifier "local_440") (- "-") (number_literal "1"))) (, ",") (binary_expression "*(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1]" (pointer_expression "*(byte *)(iVar4 + local_450 + (local_440 - 1))" (* "*") (cast_expression "(byte *)(iVar4 + local_450 + (local_440 - 1))" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + local_450 + (local_440 - 1))" (( "(") (binary_expression "iVar4 + local_450 + (local_440 - 1)" (binary_expression "iVar4 + local_450" (identifier "iVar4") (+ "+") (identifier "local_450")) (+ "+") (parenthesized_expression "(local_440 - 1)" (( "(") (binary_expression "local_440 - 1" (identifier "local_440") (- "-") (number_literal "1")) () ")"))) () ")")))) (== "==") (subscript_expression "__s1[local_440 - 1]" (identifier "__s1") ([ "[") (binary_expression "local_440 - 1" (identifier "local_440") (- "-") (number_literal "1")) (] "]")))) () ")"))) () ")")) (compound_statement "{\n            do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));\n          }" ({ "{") (do_statement "do {\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));" (do "do") (compound_statement "{\n              uVar10 = uVar3;\n              if (uVar11 == uVar10) break;\n              uVar3 = uVar10 - 1;\n            }" ({ "{") (expression_statement "uVar10 = uVar3;" (assignment_expression "uVar10 = uVar3" (identifier "uVar10") (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (uVar11 == uVar10) break;" (if "if") (parenthesized_expression "(uVar11 == uVar10)" (( "(") (binary_expression "uVar11 == uVar10" (identifier "uVar11") (== "==") (identifier "uVar10")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar3 = uVar10 - 1;" (assignment_expression "uVar3 = uVar10 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar10 - 1" (identifier "uVar10") (- "-") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450))" (( "(") (binary_expression "__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450)" (subscript_expression "__s1[uVar10 - 1]" (identifier "__s1") ([ "[") (binary_expression "uVar10 - 1" (identifier "uVar10") (- "-") (number_literal "1")) (] "]")) (== "==") (pointer_expression "*(byte *)((uVar10 - 1) + iVar4 + local_450)" (* "*") (cast_expression "(byte *)((uVar10 - 1) + iVar4 + local_450)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uVar10 - 1) + iVar4 + local_450)" (( "(") (binary_expression "(uVar10 - 1) + iVar4 + local_450" (binary_expression "(uVar10 - 1) + iVar4" (parenthesized_expression "(uVar10 - 1)" (( "(") (binary_expression "uVar10 - 1" (identifier "uVar10") (- "-") (number_literal "1")) () ")")) (+ "+") (identifier "iVar4")) (+ "+") (identifier "local_450")) () ")"))))) () ")")) (; ";")) (} "}"))) (if_statement "if (uVar10 < uVar11 + 1) {\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }" (if "if") (parenthesized_expression "(uVar10 < uVar11 + 1)" (( "(") (binary_expression "uVar10 < uVar11 + 1" (identifier "uVar10") (< "<") (binary_expression "uVar11 + 1" (identifier "uVar11") (+ "+") (number_literal "1"))) () ")")) (compound_statement "{\n            iVar7 = iVar4 + local_450;\n            goto LAB_00037759;\n          }" ({ "{") (expression_statement "iVar7 = iVar4 + local_450;" (assignment_expression "iVar7 = iVar4 + local_450" (identifier "iVar7") (= "=") (binary_expression "iVar4 + local_450" (identifier "iVar4") (+ "+") (identifier "local_450"))) (; ";")) (goto_statement "goto LAB_00037759;" (goto "goto") (statement_identifier "LAB_00037759") (; ";")) (} "}"))) (expression_statement "local_450 = local_450 + local_43c;" (assignment_expression "local_450 = local_450 + local_43c" (identifier "local_450") (= "=") (binary_expression "local_450 + local_43c" (identifier "local_450") (+ "+") (identifier "local_43c"))) (; ";")) (expression_statement "uVar11 = param_1 - local_43c;" (assignment_expression "uVar11 = param_1 - local_43c" (identifier "uVar11") (= "=") (binary_expression "param_1 - local_43c" (identifier "param_1") (- "-") (identifier "local_43c"))) (; ";")) (} "}")) (else_clause "else {\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }" (else "else") (compound_statement "{\n          if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }\n          local_450 = local_450 + uVar10;\n          uVar11 = 0;\n        }" ({ "{") (if_statement "if ((uVar10 < local_43c) && (uVar11 != 0)) {\n            uVar10 = param_1 - local_43c;\n          }" (if "if") (parenthesized_expression "((uVar10 < local_43c) && (uVar11 != 0))" (( "(") (binary_expression "(uVar10 < local_43c) && (uVar11 != 0)" (parenthesized_expression "(uVar10 < local_43c)" (( "(") (binary_expression "uVar10 < local_43c" (identifier "uVar10") (< "<") (identifier "local_43c")) () ")")) (&& "&&") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n            uVar10 = param_1 - local_43c;\n          }" ({ "{") (expression_statement "uVar10 = param_1 - local_43c;" (assignment_expression "uVar10 = param_1 - local_43c" (identifier "uVar10") (= "=") (binary_expression "param_1 - local_43c" (identifier "param_1") (- "-") (identifier "local_43c"))) (; ";")) (} "}"))) (expression_statement "local_450 = local_450 + uVar10;" (assignment_expression "local_450 = local_450 + uVar10" (identifier "local_450") (= "=") (binary_expression "local_450 + uVar10" (identifier "local_450") (+ "+") (identifier "uVar10"))) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";"))) (} "}"))) (} "}")))) (expression_statement "uVar11 = param_1 - local_440;" (assignment_expression "uVar11 = param_1 - local_440" (identifier "uVar11") (= "=") (binary_expression "param_1 - local_440" (identifier "param_1") (- "-") (identifier "local_440"))) (; ";")) (if_statement "if (param_1 - local_440 < local_440) {\n    uVar11 = local_440;\n  }" (if "if") (parenthesized_expression "(param_1 - local_440 < local_440)" (( "(") (binary_expression "param_1 - local_440 < local_440" (binary_expression "param_1 - local_440" (identifier "param_1") (- "-") (identifier "local_440")) (< "<") (identifier "local_440")) () ")")) (compound_statement "{\n    uVar11 = local_440;\n  }" ({ "{") (expression_statement "uVar11 = local_440;" (assignment_expression "uVar11 = local_440" (identifier "uVar11") (= "=") (identifier "local_440")) (; ";")) (} "}"))) (expression_statement "iVar1 = local_440 - 1;" (assignment_expression "iVar1 = local_440 - 1" (identifier "iVar1") (= "=") (binary_expression "local_440 - 1" (identifier "local_440") (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar7 = param_1 + iVar12;\n    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);\n    if ((iVar7 == 0) || (iVar8 != 0)) break;\n    iVar8 = iVar7;\n    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }\n  }" ({ "{") (expression_statement "iVar7 = param_1 + iVar12;" (assignment_expression "iVar7 = param_1 + iVar12" (identifier "iVar7") (= "=") (binary_expression "param_1 + iVar12" (identifier "param_1") (+ "+") (identifier "iVar12"))) (; ";")) (expression_statement "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);" (assignment_expression "iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" (identifier "iVar8") (= "=") (call_expression "FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8)" (identifier "FUN_00036f10") (argument_list "(iVar8 + iVar4,0,iVar7 - iVar8)" (( "(") (binary_expression "iVar8 + iVar4" (identifier "iVar8") (+ "+") (identifier "iVar4")) (, ",") (number_literal "0") (, ",") (binary_expression "iVar7 - iVar8" (identifier "iVar7") (- "-") (identifier "iVar8")) () ")")))) (; ";")) (if_statement "if ((iVar7 == 0) || (iVar8 != 0)) break;" (if "if") (parenthesized_expression "((iVar7 == 0) || (iVar8 != 0))" (( "(") (binary_expression "(iVar7 == 0) || (iVar8 != 0)" (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" (identifier "iVar8") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }\n    else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }" (if "if") (parenthesized_expression "(local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0)" (( "(") (binary_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0" (subscript_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)]" (identifier "local_420") ([ "[") (pointer_expression "*(byte *)(iVar4 + -1 + iVar7)" (* "*") (cast_expression "(byte *)(iVar4 + -1 + iVar7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -1 + iVar7)" (( "(") (binary_expression "iVar4 + -1 + iVar7" (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1")) (+ "+") (identifier "iVar7")) () ")")))) (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar7 = iVar4 + iVar12;\n      if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }\n    }" ({ "{") (expression_statement "iVar7 = iVar4 + iVar12;" (assignment_expression "iVar7 = iVar4 + iVar12" (identifier "iVar7") (= "=") (binary_expression "iVar4 + iVar12" (identifier "iVar4") (+ "+") (identifier "iVar12"))) (; ";")) (if_statement "if (local_440 < local_444) {\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }\n      else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }" (if "if") (parenthesized_expression "(local_440 < local_444)" (( "(") (binary_expression "local_440 < local_444" (identifier "local_440") (< "<") (identifier "local_444")) () ")")) (compound_statement "{\n        local_450 = local_440;\n        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }\n        iVar12 = iVar12 + (1 - local_440) + local_450;\n      }" ({ "{") (expression_statement "local_450 = local_440;" (assignment_expression "local_450 = local_440" (identifier "local_450") (= "=") (identifier "local_440")) (; ";")) (if_statement "if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }" (if "if") (parenthesized_expression "(*(byte *)(iVar7 + local_440) == __s1[local_440])" (( "(") (binary_expression "*(byte *)(iVar7 + local_440) == __s1[local_440]" (pointer_expression "*(byte *)(iVar7 + local_440)" (* "*") (cast_expression "(byte *)(iVar7 + local_440)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + local_440)" (( "(") (binary_expression "iVar7 + local_440" (identifier "iVar7") (+ "+") (identifier "local_440")) () ")")))) (== "==") (subscript_expression "__s1[local_440]" (identifier "__s1") ([ "[") (identifier "local_440") (] "]"))) () ")")) (compound_statement "{\n          do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));\n        }" ({ "{") (do_statement "do {\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));" (do "do") (compound_statement "{\n            local_450 = local_450 + 1;\n            if (local_444 <= local_450) goto LAB_000376fd;\n          }" ({ "{") (expression_statement "local_450 = local_450 + 1;" (assignment_expression "local_450 = local_450 + 1" (identifier "local_450") (= "=") (binary_expression "local_450 + 1" (identifier "local_450") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (local_444 <= local_450) goto LAB_000376fd;" (if "if") (parenthesized_expression "(local_444 <= local_450)" (( "(") (binary_expression "local_444 <= local_450" (identifier "local_444") (<= "<=") (identifier "local_450")) () ")")) (goto_statement "goto LAB_000376fd;" (goto "goto") (statement_identifier "LAB_000376fd") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(__s1[local_450] == *(byte *)(iVar7 + local_450))" (( "(") (binary_expression "__s1[local_450] == *(byte *)(iVar7 + local_450)" (subscript_expression "__s1[local_450]" (identifier "__s1") ([ "[") (identifier "local_450") (] "]")) (== "==") (pointer_expression "*(byte *)(iVar7 + local_450)" (* "*") (cast_expression "(byte *)(iVar7 + local_450)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + local_450)" (( "(") (binary_expression "iVar7 + local_450" (identifier "iVar7") (+ "+") (identifier "local_450")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar12 = iVar12 + (1 - local_440) + local_450;" (assignment_expression "iVar12 = iVar12 + (1 - local_440) + local_450" (identifier "iVar12") (= "=") (binary_expression "iVar12 + (1 - local_440) + local_450" (binary_expression "iVar12 + (1 - local_440)" (identifier "iVar12") (+ "+") (parenthesized_expression "(1 - local_440)" (( "(") (binary_expression "1 - local_440" (number_literal "1") (- "-") (identifier "local_440")) () ")"))) (+ "+") (identifier "local_450"))) (; ";")) (} "}")) (else_clause "else {\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }" (else "else") (compound_statement "{\nLAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;\n        iVar9 = iVar1;\n        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }\n        iVar12 = iVar12 + uVar11 + 1;\n      }" ({ "{") (labeled_statement "LAB_000376fd:\n        if (iVar1 == -1) goto LAB_00037759;" (statement_identifier "LAB_000376fd") (: ":") (if_statement "if (iVar1 == -1) goto LAB_00037759;" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00037759;" (goto "goto") (statement_identifier "LAB_00037759") (; ";")))) (expression_statement "iVar9 = iVar1;" (assignment_expression "iVar9 = iVar1" (identifier "iVar9") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }" (if "if") (parenthesized_expression "(*(byte *)(iVar7 + iVar1) == __s1[iVar1])" (( "(") (binary_expression "*(byte *)(iVar7 + iVar1) == __s1[iVar1]" (pointer_expression "*(byte *)(iVar7 + iVar1)" (* "*") (cast_expression "(byte *)(iVar7 + iVar1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + iVar1)" (( "(") (binary_expression "iVar7 + iVar1" (identifier "iVar7") (+ "+") (identifier "iVar1")) () ")")))) (== "==") (subscript_expression "__s1[iVar1]" (identifier "__s1") ([ "[") (identifier "iVar1") (] "]"))) () ")")) (compound_statement "{\n          do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));\n        }" ({ "{") (do_statement "do {\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));" (do "do") (compound_statement "{\n            iVar9 = iVar9 + -1;\n            if (iVar9 == -1) goto LAB_00037759;\n          }" ({ "{") (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + -1" (identifier "iVar9") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar9 == -1) goto LAB_00037759;" (if "if") (parenthesized_expression "(iVar9 == -1)" (( "(") (binary_expression "iVar9 == -1" (identifier "iVar9") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00037759;" (goto "goto") (statement_identifier "LAB_00037759") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(__s1[iVar9] == *(byte *)(iVar7 + iVar9))" (( "(") (binary_expression "__s1[iVar9] == *(byte *)(iVar7 + iVar9)" (subscript_expression "__s1[iVar9]" (identifier "__s1") ([ "[") (identifier "iVar9") (] "]")) (== "==") (pointer_expression "*(byte *)(iVar7 + iVar9)" (* "*") (cast_expression "(byte *)(iVar7 + iVar9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + iVar9)" (( "(") (binary_expression "iVar7 + iVar9" (identifier "iVar7") (+ "+") (identifier "iVar9")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar12 = iVar12 + uVar11 + 1;" (assignment_expression "iVar12 = iVar12 + uVar11 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + uVar11 + 1" (binary_expression "iVar12 + uVar11" (identifier "iVar12") (+ "+") (identifier "uVar11")) (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }" (else "else") (compound_statement "{\n      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];\n    }" ({ "{") (expression_statement "iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];" (assignment_expression "iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)]" (identifier "iVar12") (= "=") (binary_expression "iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)]" (identifier "iVar12") (+ "+") (subscript_expression "local_420[*(byte *)(iVar4 + -1 + iVar7)]" (identifier "local_420") ([ "[") (pointer_expression "*(byte *)(iVar4 + -1 + iVar7)" (* "*") (cast_expression "(byte *)(iVar4 + -1 + iVar7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -1 + iVar7)" (( "(") (binary_expression "iVar4 + -1 + iVar7" (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1")) (+ "+") (identifier "iVar7")) () ")")))) (] "]")))) (; ";")) (} "}")))) (} "}"))) (labeled_statement "LAB_00037757:\n  iVar7 = 0;" (statement_identifier "LAB_00037757") (: ":") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";"))) (labeled_statement "LAB_00037759:\n  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }" (statement_identifier "LAB_00037759") (: ":") (if_statement "if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\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_00038830();\n  }" ({ "{") (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" (identifier "FUN_00038830") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}")))

/* WARNING: Type propagation algorithm not settling */

char * function_1(type_1 *var_3,size_t haystack_len,type_1 *needle,size_t needle_len)

{
  type_1 *var_24;
  type_2 bVar2;
  size_t var_22;
  int var_14;
  size_t *var_5;
  type_2 *var_11;
  int var_10;
  void *var_15;
  type_1 *var_25;
  type_1 *var_13;
  type_3 var_17;
  type_2 *var_8;
  size_t sVar12;
  type_1 *var_19;
  type_1 *var_16;
  type_1 *var_23;
  int var_2;
  type_4 uVar16;
  type_1 *var_21;
  type_1 *var_20;
  type_1 *var_18;
  size_t var_9;
  size_t shift_table [256];
  size_t var_6 [4];
  
  uVar16 = var_1();
  var_13 = (type_1 *)((type_5)uVar16 >> 0x20);
  var_14 = (int)uVar16;
  var_6[0] = *(size_t *)(var_2 + 0x14);
  if (var_3 < (type_1 *)0x3) {
    var_18 = var_3 + -1;
    var_9 = 1;
  }
  else {
    var_18 = (type_1 *)var_4(var_8,(size_t)var_3,&var_9);
  }
  var_22 = var_9;
  var_5 = shift_table;
  do {
    *var_5 = (size_t)var_3;
    var_5 = var_5 + 1;
  } while (var_6 != var_5);
  if (var_3 == (type_1 *)0x0) {
    var_10 = var_7(var_8,var_8 + var_9,(size_t)var_18);
    if (var_10 == 0) goto LAB_00037757;
    var_20 = (type_1 *)0xffffffff;
  }
  else {
    var_20 = var_3 + -1;
    var_11 = var_8;
    do {
      bVar2 = *var_11;
      sVar12 = (int)(var_8 + (int)var_20) - (int)var_11;
      var_11 = var_11 + 1;
      shift_table[bVar2] = sVar12;
    } while (var_3 + (int)var_8 != var_11);
    var_10 = var_7(var_8,var_8 + var_9,(size_t)var_18);
    if (var_10 == 0) {
      var_19 = (type_1 *)0x0;
      var_21 = (type_1 *)0x0;
LAB_000377b0:
      do {
        var_16 = var_3 + (int)var_21;
        var_15 = var_12(var_13 + var_14,0,(int)var_16 - (int)var_13);
        if ((var_15 != (void *)0x0) || (var_16 == (type_1 *)0x0)) goto LAB_00037757;
        var_17 = shift_table[var_16[var_14 + -1]];
        var_13 = var_16;
        if (var_17 == 0) {
          var_16 = var_18;
          if (var_18 <= var_19) {
            var_16 = var_19;
          }
          if (var_16 < var_20) {
            do {
              if (var_8[(int)var_16] != var_16[(int)(var_21 + var_14)]) {
                var_19 = (type_1 *)0x0;
                var_21 = var_21 + (1 - (int)var_18) + (int)var_16;
                goto LAB_000377b0;
              }
              var_16 = var_16 + 1;
            } while (var_16 != var_20);
          }
          var_16 = var_18;
          if ((var_19 < var_18) &&
             (var_24 = var_18 + -1,
             (var_18 + -1)[(int)(var_21 + var_14)] == (var_8 + -1)[(int)var_18])) {
            do {
              var_16 = var_24;
              if (var_19 == var_16) break;
              var_24 = var_16 + -1;
            } while ((var_8 + -1)[(int)var_16] == (var_16 + -1)[(int)(var_21 + var_14)]);
          }
          if (var_16 < var_19 + 1) {
            var_19 = var_21 + var_14;
            goto LAB_00037759;
          }
          var_21 = var_21 + var_22;
          var_19 = var_3 + -var_22;
        }
        else {
          if ((var_17 < var_22) && (var_19 != (type_1 *)0x0)) {
            var_17 = (int)var_3 - var_22;
          }
          var_21 = var_21 + var_17;
          var_19 = (type_1 *)0x0;
        }
      } while( true );
    }
  }
  var_16 = var_3 + -(int)var_18;
  if (var_3 + -(int)var_18 < var_18) {
    var_16 = var_18;
  }
  var_24 = var_18 + -1;
  var_23 = (type_1 *)0x0;
  var_9 = (size_t)(var_16 + 1);
  while( true ) {
    var_19 = var_3 + (int)var_23;
    var_15 = var_12(var_13 + var_14,0,(int)var_19 - (int)var_13);
    if ((var_19 == (type_1 *)0x0) || (var_15 != (void *)0x0)) break;
    var_13 = var_19;
    if (shift_table[var_19[var_14 + -1]] == 0) {
      var_19 = var_23 + var_14;
      if (var_18 < var_20) {
        var_21 = var_18;
        if (var_19[(int)var_18] == var_8[(int)var_18]) {
          do {
            var_21 = var_21 + 1;
            if (var_20 <= var_21) goto LAB_000376fd;
          } while (var_8[(int)var_21] == var_19[(int)var_21]);
        }
        var_23 = var_23 + (1 - (int)var_18) + (int)var_21;
      }
      else {
LAB_000376fd:
        if (var_24 == (type_1 *)0xffffffff) goto LAB_00037759;
        var_25 = var_24;
        if (var_19[(int)var_24] == var_8[(int)var_24]) {
          do {
            var_25 = var_25 + -1;
            if (var_25 == (type_1 *)0xffffffff) goto LAB_00037759;
          } while (var_8[(int)var_25] == var_19[(int)var_25]);
        }
        var_23 = var_23 + (int)(var_16 + 1);
      }
    }
    else {
      var_23 = var_23 + shift_table[var_19[var_14 + -1]];
    }
  }
LAB_00037757:
  var_19 = (type_1 *)0x0;
LAB_00037759:
  if (var_6[0] != *(size_t *)(var_2 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_26();
  }
  return (char *)var_19;
}


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

int MASKED(uint param_1)

{
  int iVar1;
  byte bVar2;
  uint uVar3;
  int iVar4;
  uint *puVar5;
  byte *pbVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  byte *__s1;
  uint uVar10;
  uint uVar11;
  int iVar12;
  int in_GS_OFFSET;
  undefined8 uVar13;
  uint local_450;
  uint local_444;
  uint local_440;
  uint local_43c;
  uint local_424;
  uint local_420 [256];
  uint local_20 [4];
  
  uVar13 = FUN_00027eac();
  iVar8 = (int)((ulonglong)uVar13 >> 0x20);
  iVar4 = (int)uVar13;
  local_20[0] = *(uint *)(in_GS_OFFSET + 0x14);
  if (param_1 < 3) {
    local_440 = param_1 - 1;
    local_43c = 1;
  }
  else {
    local_440 = FUN_000373f0();
    local_43c = local_424;
  }
  puVar5 = local_420;
  do {
    *puVar5 = param_1;
    puVar5 = puVar5 + 1;
  } while (local_20 != puVar5);
  if (param_1 == 0) {
    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);
    if (iVar7 == 0) goto LAB_00037757;
    local_444 = 0xffffffff;
  }
  else {
    local_444 = param_1 - 1;
    pbVar6 = __s1;
    do {
      bVar2 = *pbVar6;
      iVar7 = local_444 - (int)pbVar6;
      pbVar6 = pbVar6 + 1;
      local_420[bVar2] = (uint)(__s1 + iVar7);
    } while (__s1 + param_1 != pbVar6);
    iVar7 = memcmp(__s1,__s1 + local_43c,local_440);
    if (iVar7 == 0) {
      uVar11 = 0;
      local_450 = 0;
LAB_000377b0:
      do {
        iVar7 = local_450 + param_1;
        iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);
        if ((iVar8 != 0) || (iVar7 == 0)) goto LAB_00037757;
        uVar10 = local_420[*(byte *)(iVar4 + -1 + iVar7)];
        iVar8 = iVar7;
        if (uVar10 == 0) {
          uVar10 = local_440;
          if (local_440 <= uVar11) {
            uVar10 = uVar11;
          }
          if (uVar10 < local_444) {
            do {
              if (__s1[uVar10] != *(byte *)(iVar4 + local_450 + uVar10)) {
                uVar11 = 0;
                local_450 = local_450 + (1 - local_440) + uVar10;
                goto LAB_000377b0;
              }
              uVar10 = uVar10 + 1;
            } while (uVar10 != local_444);
          }
          uVar10 = local_440;
          if ((uVar11 < local_440) &&
             (uVar3 = local_440 - 1,
             *(byte *)(iVar4 + local_450 + (local_440 - 1)) == __s1[local_440 - 1])) {
            do {
              uVar10 = uVar3;
              if (uVar11 == uVar10) break;
              uVar3 = uVar10 - 1;
            } while (__s1[uVar10 - 1] == *(byte *)((uVar10 - 1) + iVar4 + local_450));
          }
          if (uVar10 < uVar11 + 1) {
            iVar7 = iVar4 + local_450;
            goto LAB_00037759;
          }
          local_450 = local_450 + local_43c;
          uVar11 = param_1 - local_43c;
        }
        else {
          if ((uVar10 < local_43c) && (uVar11 != 0)) {
            uVar10 = param_1 - local_43c;
          }
          local_450 = local_450 + uVar10;
          uVar11 = 0;
        }
      } while( true );
    }
  }
  uVar11 = param_1 - local_440;
  if (param_1 - local_440 < local_440) {
    uVar11 = local_440;
  }
  iVar1 = local_440 - 1;
  iVar12 = 0;
  while( true ) {
    iVar7 = param_1 + iVar12;
    iVar8 = FUN_00036f10(iVar8 + iVar4,0,iVar7 - iVar8);
    if ((iVar7 == 0) || (iVar8 != 0)) break;
    iVar8 = iVar7;
    if (local_420[*(byte *)(iVar4 + -1 + iVar7)] == 0) {
      iVar7 = iVar4 + iVar12;
      if (local_440 < local_444) {
        local_450 = local_440;
        if (*(byte *)(iVar7 + local_440) == __s1[local_440]) {
          do {
            local_450 = local_450 + 1;
            if (local_444 <= local_450) goto LAB_000376fd;
          } while (__s1[local_450] == *(byte *)(iVar7 + local_450));
        }
        iVar12 = iVar12 + (1 - local_440) + local_450;
      }
      else {
LAB_000376fd:
        if (iVar1 == -1) goto LAB_00037759;
        iVar9 = iVar1;
        if (*(byte *)(iVar7 + iVar1) == __s1[iVar1]) {
          do {
            iVar9 = iVar9 + -1;
            if (iVar9 == -1) goto LAB_00037759;
          } while (__s1[iVar9] == *(byte *)(iVar7 + iVar9));
        }
        iVar12 = iVar12 + uVar11 + 1;
      }
    }
    else {
      iVar12 = iVar12 + local_420[*(byte *)(iVar4 + -1 + iVar7)];
    }
  }
LAB_00037757:
  iVar7 = 0;
LAB_00037759:
  if (local_20[0] != *(uint *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00038830();
  }
  return iVar7;
}

