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

size_t Fexecute(void *vcp,char *buf,size_t size,size_t *match_size,char *start_ptr)

{
  int iVar1;
  kwset_t kwset;
  _Bool _Var2;
  _Bool _Var3;
  _Bool _Var4;
  void *pvVar5;
  ptrdiff_t pVar6;
  char *pcVar7;
  _Bool longest;
  char *cur;
  size_t sVar8;
  char *end;
  int __c;
  ptrdiff_t apVar9 [1];
  int in_GS_OFFSET;
  char *mb_start;
  kwsmatch kwsmatch;
  
  _Var4 = match_lines;
  _Var3 = localeinfo.using_utf8;
  _Var2 = localeinfo.multibyte;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
                    /* WARNING: Load size is inaccurate */
  kwset = *vcp;
  if (match_lines) {
    longest = false;
  }
  else {
    longest = start_ptr != (char *)0x0 ||
              (!localeinfo.using_utf8 && localeinfo.multibyte || match_words);
  }
  pcVar7 = buf;
  if (start_ptr != (char *)0x0) {
    pcVar7 = start_ptr;
  }
  end = buf + size;
  mb_start = pcVar7;
  if (pcVar7 <= end) {
    __c = (int)eolbyte;
    do {
      pVar6 = kwsexec(kwset,pcVar7 + -(uint)match_lines,
                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest);
      if (pVar6 < 0) break;
      apVar9[0] = kwsmatch.size[0] + (uint)match_lines * -2;
      if (*(int *)((int)vcp + 4) <= kwsmatch.index) {
        pvVar5 = *(void **)((int)vcp + 0x10);
        if (pvVar5 == (void *)0x0) {
          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));
          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);
          *(void **)((int)vcp + 0x10) = pvVar5;
        }
        sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr);
        goto LAB_0001920d;
      }
      cur = pcVar7 + pVar6;
      if ((_Var4 || (_Var3 || !_Var2)) ||
         (pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0)) {
        pcVar7 = mb_start;
        if ((start_ptr == (char *)0x0) || (match_words == true)) {
          if (match_lines == false) {
            if (match_words != false) {
              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);
              if (pvVar5 != (void *)0x0) {
                pcVar7 = (char *)((int)pvVar5 + 1);
                mb_start = pcVar7;
              }
              sVar8 = wordchar_prev(pcVar7,cur,end);
              while (sVar8 == 0) {
                pcVar7 = cur + apVar9[0];
                sVar8 = wordchar_next(pcVar7,end);
                if (sVar8 == 0) {
                  sVar8 = (int)cur - (int)buf;
                  if (start_ptr != (char *)0x0) goto LAB_00019207;
                  goto LAB_0001925e;
                }
                if (apVar9[0] == 0) break;
                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);
                apVar9[0] = kwsmatch.size[0];
              }
              sVar8 = wordchars_size(cur,end);
              mb_start = cur + sVar8;
              pcVar7 = mb_start + 1;
              goto LAB_0001910c;
            }
            pcVar7 = cur + apVar9[0];
            sVar8 = (int)cur - (int)buf;
LAB_0001925e:
            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);
            if (pvVar5 != (void *)0x0) {
              end = (char *)((int)pvVar5 + 1);
            }
            pvVar5 = memrchr(buf,__c,sVar8);
            if (pvVar5 == (void *)0x0) {
              sVar8 = 0;
            }
            else {
              sVar8 = ((int)pvVar5 + 1) - (int)buf;
              buf = (char *)((int)pvVar5 + 1);
            }
            apVar9[0] = (int)end - (int)buf;
          }
          else {
            sVar8 = (int)cur - (int)buf;
            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];
          }
        }
        else {
          sVar8 = (int)cur - (int)buf;
        }
LAB_00019207:
        *match_size = apVar9[0];
        goto LAB_0001920d;
      }
LAB_0001910c:
    } while (pcVar7 <= end);
  }
  sVar8 = 0xffffffff;
LAB_0001920d:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return sVar8;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

size_t FUN_00018fa0(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)

{
  undefined4 uVar1;
  void *pvVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  void *pvVar6;
  byte bVar7;
  size_t __n;
  void *pvVar8;
  int iVar9;
  int iVar10;
  int in_GS_OFFSET;
  byte local_4d;
  void *local_30;
  int local_2c [2];
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x18fa9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = *param_1;
  if (DAT_0004ca25 == 0) {
    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;
    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;
  }
  else {
    bVar7 = 0;
    local_4d = 0;
  }
  pvVar6 = param_2;
  if (param_5 != (void *)0x0) {
    pvVar6 = param_5;
  }
  pvVar8 = (void *)((int)param_2 + param_3);
  local_30 = pvVar6;
  if (pvVar6 <= pvVar8) {
    iVar9 = (int)DAT_0004c500;
    do {
      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,
                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);
      if (iVar3 < 0) break;
      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;
      if ((int)param_1[1] <= local_2c[0]) {
        iVar9 = param_1[4];
        if (iVar9 == 0) {
          FUN_00018a90(param_1 + 2,param_1 + 3);
          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);
          param_1[4] = iVar9;
        }
        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);
        goto LAB_0001920d;
      }
      iVar3 = (int)pvVar6 + iVar3;
      if ((local_4d == 0) ||
         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {
        pvVar6 = local_30;
        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {
          if (DAT_0004ca25 == 0) {
            if (DAT_0004ca24 != 0) {
              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);
              if (pvVar2 != (void *)0x0) {
                pvVar6 = (void *)((int)pvVar2 + 1);
                local_30 = pvVar6;
              }
              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);
              while (iVar4 == 0) {
                iVar4 = iVar3 + iVar10;
                iVar5 = FUN_0001eca0(iVar4,pvVar8);
                if (iVar5 == 0) {
                  __n = iVar3 - (int)param_2;
                  if (param_5 != (void *)0x0) goto LAB_00019207;
                  goto LAB_0001925e;
                }
                if (iVar10 == 0) break;
                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);
                iVar10 = local_24;
              }
              iVar10 = FUN_0001ec80(iVar3,pvVar8);
              local_30 = (void *)(iVar3 + iVar10);
              pvVar6 = (void *)((int)local_30 + 1);
              goto LAB_0001910c;
            }
            iVar4 = iVar3 + iVar10;
            __n = iVar3 - (int)param_2;
LAB_0001925e:
            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);
            if (iVar3 != 0) {
              pvVar8 = (void *)(iVar3 + 1);
            }
            pvVar6 = memrchr(param_2,iVar9,__n);
            if (pvVar6 == (void *)0x0) {
              __n = 0;
            }
            else {
              __n = ((int)pvVar6 + 1) - (int)param_2;
              param_2 = (void *)((int)pvVar6 + 1);
            }
            iVar10 = (int)pvVar8 - (int)param_2;
          }
          else {
            __n = iVar3 - (int)param_2;
            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;
          }
        }
        else {
          __n = iVar3 - (int)param_2;
        }
LAB_00019207:
        *param_4 = iVar10;
        goto LAB_0001920d;
      }
LAB_0001910c:
    } while (pvVar6 <= pvVar8);
  }
  __n = 0xffffffff;
LAB_0001920d:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return __n;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00038830();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000142a0
ADD EBX,0x2ee43
SUB ESP,0x6c
MOV EAX,dword ptr [ESP + 0x84]
MOV EDI,dword ptr [ESP + 0x80]
MOV EBP,dword ptr [ESP + 0x90]
MOV dword ptr [ESP + 0x38],EAX
MOV EAX,dword ptr [ESP + 0x8c]
MOV dword ptr [ESP + 0x24],EDI
MOV dword ptr [ESP + 0x3c],EAX
MOV dword ptr [ESP + 0x20],EBP
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x5c],EAX
XOR EAX,EAX
LEA EAX,[EBX + 0x4714]
MOVZX EAX,byte ptr [EAX]
MOV byte ptr [ESP + 0xc],AL
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESP + 0x10],EAX
LEA EAX,[EBX + 0x4c39]
MOV dword ptr [ESP + 0x18],EAX
MOVZX EAX,byte ptr [EAX]
TEST AL,AL
JNZ 0x00019240
LEA ESI,[EBX + 0x4734]
MOVZX EDX,byte ptr [ESI + 0x1]
XOR EDX,0x1
AND DL,byte ptr [ESI]
MOV ECX,EDX
MOV byte ptr [ESP + 0x2f],DL
LEA EDX,[EBX + 0x4c38]
OR CL,byte ptr [EDX]
TEST EBP,EBP
MOV ESI,ECX
SETNZ DL
MOV ECX,EBP
OR EDX,ESI
MOV EDI,dword ptr [ESP + 0x38]
TEST ECX,ECX
MOV ESI,EDI
CMOVNZ ESI,ECX
ADD EDI,dword ptr [ESP + 0x88]
MOV EBP,EDI
MOV dword ptr [ESP + 0x4c],ESI
CMP EDI,ESI
JC 0x00019250
MOVZX EDI,DL
MOV dword ptr [ESP + 0x28],EDI
LEA EDI,[ESP + 0x50]
MOV dword ptr [ESP + 0x14],EDI
LEA EDI,[EBX + 0x4c38]
MOV dword ptr [ESP + 0x30],EDI
MOVSX EDI,byte ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x34],EDI
JMP 0x0001911b
MOV EAX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x20]
MOVZX EAX,byte ptr [EAX]
TEST EDX,EDX
JZ 0x0001909f
CMP AL,0x1
JNZ 0x000192d4
MOV ECX,dword ptr [ESP + 0x18]
CMP byte ptr [ECX],0x0
JNZ 0x000192df
TEST AL,AL
JZ 0x00019257
MOV EDX,dword ptr [ESP + 0x4c]
MOV EAX,ESI
SUB ESP,0x4
SUB EAX,EDX
PUSH EAX
PUSH dword ptr [ESP + 0x3c]
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x00012380
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x000190e0
LEA EDX,[EAX + 0x1]
MOV dword ptr [ESP + 0x4c],EDX
SUB ESP,0x4
PUSH EBP
PUSH ESI
PUSH EDX
CALL 0x0001ecb0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000191a0
SUB ESP,0x8
PUSH EBP
PUSH ESI
CALL 0x0001ec80
ADD ESP,0x10
ADD ESI,EAX
MOV dword ptr [ESP + 0x4c],ESI
ADD ESI,0x1
CMP EBP,ESI
JC 0x00019250
MOV EAX,dword ptr [ESP + 0x18]
MOVZX EAX,byte ptr [EAX]
MOV EDX,EBP
MOV ECX,ESI
SUB ESP,0xc
SUB EDX,ESI
SUB ECX,EAX
PUSH dword ptr [ESP + 0x34]
ADD EDX,EAX
PUSH dword ptr [ESP + 0x24]
PUSH EDX
PUSH ECX
PUSH dword ptr [ESP + 0x2c]
CALL 0x0001dec0
ADD ESP,0x20
TEST EAX,EAX
JS 0x00019250
MOV ECX,dword ptr [ESP + 0x18]
MOV EDI,dword ptr [ESP + 0x58]
MOVZX EDX,byte ptr [ECX]
MOV ECX,dword ptr [ESP + 0x24]
ADD EDX,EDX
SUB EDI,EDX
MOV EDX,dword ptr [ESP + 0x50]
CMP dword ptr [ECX + 0x4],EDX
JLE 0x000192a7
ADD ESI,EAX
CMP byte ptr [ESP + 0x2f],0x0
JZ 0x00019088
SUB ESP,0x4
PUSH EBP
PUSH ESI
LEA EAX,[ESP + 0x58]
PUSH EAX
CALL 0x0001eab0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00019088
MOV ESI,dword ptr [ESP + 0x4c]
JMP 0x0001910c
MOV dword ptr [ESP + 0x1c],EBP
JMP 0x000191d6
TEST EDI,EDI
JZ 0x00019230
SUB ESP,0xc
SUB EDI,0x1
PUSH 0x1
PUSH dword ptr [ESP + 0x24]
PUSH EDI
PUSH ESI
PUSH dword ptr [ESP + 0x2c]
CALL 0x0001dec0
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00019230
MOV EDI,dword ptr [ESP + 0x58]
SUB ESP,0x8
LEA ECX,[ESI + EDI*0x1]
PUSH dword ptr [ESP + 0x24]
PUSH ECX
MOV dword ptr [ESP + 0x1c],ECX
CALL 0x0001eca0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x000191b0
MOV EAX,dword ptr [ESP + 0x20]
MOV EDX,EDI
MOV EBP,dword ptr [ESP + 0x1c]
SUB ESI,dword ptr [ESP + 0x38]
TEST EAX,EAX
JZ 0x0001925e
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [EAX],EDX
MOV EBX,dword ptr [ESP + 0x5c]
XOR EBX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00019324
ADD ESP,0x6c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [ESP + 0x1c]
JMP 0x000190f6
XOR EDX,EDX
MOV byte ptr [ESP + 0x2f],0x0
MOV ECX,EBP
JMP 0x0001903a
MOV ESI,0xffffffff
JMP 0x0001920d
LEA ECX,[ESI + EDI*0x1]
SUB ESI,dword ptr [ESP + 0x38]
MOV EAX,EBP
SUB ESP,0x4
SUB EAX,ECX
PUSH EAX
MOV EDI,dword ptr [ESP + 0x3c]
PUSH EDI
PUSH ECX
CALL 0x00036f10
ADD ESP,0xc
PUSH ESI
TEST EAX,EAX
LEA EDX,[EAX + 0x1]
PUSH EDI
MOV EDI,dword ptr [ESP + 0x44]
CMOVNZ EBP,EDX
PUSH EDI
CALL 0x00012380
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001929f
ADD EAX,0x1
MOV ESI,EAX
SUB ESI,EDI
MOV EDX,EBP
SUB EDX,EAX
JMP 0x00019207
MOV EAX,dword ptr [ESP + 0x38]
XOR ESI,ESI
JMP 0x00019296
MOV EAX,dword ptr [ECX + 0x10]
TEST EAX,EAX
JZ 0x000192f5
SUB ESP,0xc
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x9c]
PUSH dword ptr [ESP + 0x50]
PUSH EAX
CALL 0x00014a20
ADD ESP,0x20
MOV ESI,EAX
JMP 0x0001920d
MOV EDX,EDI
SUB ESI,dword ptr [ESP + 0x38]
JMP 0x00019207
MOV ECX,dword ptr [ESP + 0x20]
XOR EDX,EDX
TEST ECX,ECX
SETZ DL
SUB ESI,dword ptr [ESP + 0x38]
ADD EDX,EDI
JMP 0x00019207
SUB ESP,0x8
MOV ESI,dword ptr [ESP + 0x2c]
LEA EAX,[ESI + 0xc]
PUSH EAX
LEA EAX,[ESI + 0x8]
PUSH EAX
CALL 0x00018a90
ADD ESP,0xc
PUSH 0x10a46
PUSH dword ptr [ESI + 0xc]
PUSH dword ptr [ESI + 0x8]
CALL 0x00014450
ADD ESP,0x10
MOV dword ptr [ESI + 0x10],EAX
JMP 0x000192ae
CALL 0x00038830
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nsize_t FUN_00018fa0(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)\n\n{\n  undefined4 uVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  byte bVar7;\n  size_t __n;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  byte local_4d;\n  void *local_30;\n  int local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x18fa9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *param_1;\n  if (DAT_0004ca25 == 0) {\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }\n  else {\n    bVar7 = 0;\n    local_4d = 0;\n  }\n  pvVar6 = param_2;\n  if (param_5 != (void *)0x0) {\n    pvVar6 = param_5;\n  }\n  pvVar8 = (void *)((int)param_2 + param_3);\n  local_30 = pvVar6;\n  if (pvVar6 <= pvVar8) {\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }\n  __n = 0xffffffff;\nLAB_0001920d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00038830();\n}\n\n" comment (function_definition "size_t FUN_00018fa0(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)\n\n{\n  undefined4 uVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  byte bVar7;\n  size_t __n;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  byte local_4d;\n  void *local_30;\n  int local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x18fa9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *param_1;\n  if (DAT_0004ca25 == 0) {\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }\n  else {\n    bVar7 = 0;\n    local_4d = 0;\n  }\n  pvVar6 = param_2;\n  if (param_5 != (void *)0x0) {\n    pvVar6 = param_5;\n  }\n  pvVar8 = (void *)((int)param_2 + param_3);\n  local_30 = pvVar6;\n  if (pvVar6 <= pvVar8) {\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }\n  __n = 0xffffffff;\nLAB_0001920d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00038830();\n}" primitive_type (function_declarator "FUN_00018fa0(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)" identifier (parameter_list "(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "void *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  byte bVar7;\n  size_t __n;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  byte local_4d;\n  void *local_30;\n  int local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x18fa9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *param_1;\n  if (DAT_0004ca25 == 0) {\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }\n  else {\n    bVar7 = 0;\n    local_4d = 0;\n  }\n  pvVar6 = param_2;\n  if (param_5 != (void *)0x0) {\n    pvVar6 = param_5;\n  }\n  pvVar8 = (void *)((int)param_2 + param_3);\n  local_30 = pvVar6;\n  if (pvVar6 <= pvVar8) {\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }\n  __n = 0xffffffff;\nLAB_0001920d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00038830();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "void *pvVar6;" primitive_type (pointer_declarator "*pvVar6" * identifier) ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "void *pvVar8;" primitive_type (pointer_declarator "*pvVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte local_4d;" type_identifier identifier ;) (declaration "void *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "int local_2c [2];" primitive_type (array_declarator "local_2c [2]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x18fa9;" (assignment_expression "uStack_14 = 0x18fa9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (DAT_0004ca25 == 0) {\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }\n  else {\n    bVar7 = 0;\n    local_4d = 0;\n  }" if (parenthesized_expression "(DAT_0004ca25 == 0)" ( (binary_expression "DAT_0004ca25 == 0" identifier == number_literal) )) (compound_statement "{\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }" { (expression_statement "local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;" (assignment_expression "local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520" identifier = (binary_expression "(DAT_0004c521 ^ 1) & DAT_0004c520" (parenthesized_expression "(DAT_0004c521 ^ 1)" ( (binary_expression "DAT_0004c521 ^ 1" identifier ^ number_literal) )) & identifier)) ;) (expression_statement "bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;" (assignment_expression "bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24" identifier = (binary_expression "param_5 != (void *)0x0 | local_4d | DAT_0004ca24" (binary_expression "param_5 != (void *)0x0 | local_4d" (binary_expression "param_5 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) | identifier) | identifier)) ;) }) (else_clause "else {\n    bVar7 = 0;\n    local_4d = 0;\n  }" else (compound_statement "{\n    bVar7 = 0;\n    local_4d = 0;\n  }" { (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "local_4d = 0;" (assignment_expression "local_4d = 0" identifier = number_literal) ;) }))) (expression_statement "pvVar6 = param_2;" (assignment_expression "pvVar6 = param_2" identifier = identifier) ;) (if_statement "if (param_5 != (void *)0x0) {\n    pvVar6 = param_5;\n  }" if (parenthesized_expression "(param_5 != (void *)0x0)" ( (binary_expression "param_5 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pvVar6 = param_5;\n  }" { (expression_statement "pvVar6 = param_5;" (assignment_expression "pvVar6 = param_5" identifier = identifier) ;) })) (expression_statement "pvVar8 = (void *)((int)param_2 + param_3);" (assignment_expression "pvVar8 = (void *)((int)param_2 + param_3)" identifier = (cast_expression "(void *)((int)param_2 + param_3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + param_3)" ( (binary_expression "(int)param_2 + param_3" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" identifier = identifier) ;) (if_statement "if (pvVar6 <= pvVar8) {\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }" if (parenthesized_expression "(pvVar6 <= pvVar8)" ( (binary_expression "pvVar6 <= pvVar8" identifier <= identifier) )) (compound_statement "{\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }" { (expression_statement "iVar9 = (int)DAT_0004c500;" (assignment_expression "iVar9 = (int)DAT_0004c500" identifier = (cast_expression "(int)DAT_0004c500" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);" do (compound_statement "{\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    }" { (expression_statement "iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);" (assignment_expression "iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7)" identifier = (call_expression "FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7)" identifier (argument_list "(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7)" ( identifier , (binary_expression "(int)pvVar6 - (uint)DAT_0004ca25" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(uint)DAT_0004ca25" ( (type_descriptor "uint" type_identifier) ) identifier)) , (binary_expression "(int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6)" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((uint)DAT_0004ca25 - (int)pvVar6)" ( (binary_expression "(uint)DAT_0004ca25 - (int)pvVar6" (cast_expression "(uint)DAT_0004ca25" ( (type_descriptor "uint" type_identifier) ) identifier) - (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , identifier )))) ;) (if_statement "if (iVar3 < 0) break;" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar10 = local_24 + (uint)DAT_0004ca25 * -2;" (assignment_expression "iVar10 = local_24 + (uint)DAT_0004ca25 * -2" identifier = (binary_expression "local_24 + (uint)DAT_0004ca25 * -2" identifier + (binary_expression "(uint)DAT_0004ca25 * -2" (cast_expression "(uint)DAT_0004ca25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal))) ;) (if_statement "if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }" if (parenthesized_expression "((int)param_1[1] <= local_2c[0])" ( (binary_expression "(int)param_1[1] <= local_2c[0]" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) <= (subscript_expression "local_2c[0]" identifier [ number_literal ])) )) (compound_statement "{\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }" { (expression_statement "iVar9 = param_1[4];" (assignment_expression "iVar9 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (if_statement "if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }" { (expression_statement "FUN_00018a90(param_1 + 2,param_1 + 3);" (call_expression "FUN_00018a90(param_1 + 2,param_1 + 3)" identifier (argument_list "(param_1 + 2,param_1 + 3)" ( (binary_expression "param_1 + 2" identifier + number_literal) , (binary_expression "param_1 + 3" identifier + number_literal) ))) ;) (expression_statement "iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);" (assignment_expression "iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46)" identifier = (call_expression "FUN_00014450(param_1[2],param_1[3],0x10a46)" identifier (argument_list "(param_1[2],param_1[3],0x10a46)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , (subscript_expression "param_1[3]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "param_1[4] = iVar9;" (assignment_expression "param_1[4] = iVar9" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "__n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);" (assignment_expression "__n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5)" identifier = (call_expression "FUN_00014a20(iVar9,param_2,param_3,param_4,param_5)" identifier (argument_list "(iVar9,param_2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (goto_statement "goto LAB_0001920d;" goto statement_identifier ;) })) (expression_statement "iVar3 = (int)pvVar6 + iVar3;" (assignment_expression "iVar3 = (int)pvVar6 + iVar3" identifier = (binary_expression "(int)pvVar6 + iVar3" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (if_statement "if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }" if (parenthesized_expression "((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0))" ( (binary_expression "(local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)" (parenthesized_expression "(local_4d == 0)" ( (binary_expression "local_4d == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)" ( (comma_expression "iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0" (assignment_expression "iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8)" identifier = (call_expression "FUN_0001eab0(&local_30,iVar3,pvVar8)" identifier (argument_list "(&local_30,iVar3,pvVar8)" ( (pointer_expression "&local_30" & identifier) , identifier , identifier )))) , (comma_expression "pvVar6 = local_30, iVar4 == 0" (assignment_expression "pvVar6 = local_30" identifier = identifier) , (binary_expression "iVar4 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }" { (expression_statement "pvVar6 = local_30;" (assignment_expression "pvVar6 = local_30" identifier = identifier) ;) (if_statement "if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }" if (parenthesized_expression "((param_5 == (void *)0x0) || (DAT_0004ca24 == 1))" ( (binary_expression "(param_5 == (void *)0x0) || (DAT_0004ca24 == 1)" (parenthesized_expression "(param_5 == (void *)0x0)" ( (binary_expression "param_5 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(DAT_0004ca24 == 1)" ( (binary_expression "DAT_0004ca24 == 1" identifier == number_literal) ))) )) (compound_statement "{\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }" { (if_statement "if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }" if (parenthesized_expression "(DAT_0004ca25 == 0)" ( (binary_expression "DAT_0004ca25 == 0" identifier == number_literal) )) (compound_statement "{\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }" { (if_statement "if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }" if (parenthesized_expression "(DAT_0004ca24 != 0)" ( (binary_expression "DAT_0004ca24 != 0" identifier != number_literal) )) (compound_statement "{\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }" { (expression_statement "pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);" (assignment_expression "pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30)" identifier = (call_expression "memrchr(local_30,iVar9,iVar3 - (int)local_30)" identifier (argument_list "(local_30,iVar9,iVar3 - (int)local_30)" ( identifier , identifier , (binary_expression "iVar3 - (int)local_30" identifier - (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }" { (expression_statement "pvVar6 = (void *)((int)pvVar2 + 1);" (assignment_expression "pvVar6 = (void *)((int)pvVar2 + 1)" identifier = (cast_expression "(void *)((int)pvVar2 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 1)" ( (binary_expression "(int)pvVar2 + 1" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" identifier = identifier) ;) })) (expression_statement "iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);" (assignment_expression "iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8)" identifier = (call_expression "FUN_0001ecb0(pvVar6,iVar3,pvVar8)" identifier (argument_list "(pvVar6,iVar3,pvVar8)" ( identifier , identifier , identifier )))) ;) (while_statement "while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }" while (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }" { (expression_statement "iVar4 = iVar3 + iVar10;" (assignment_expression "iVar4 = iVar3 + iVar10" identifier = (binary_expression "iVar3 + iVar10" identifier + identifier)) ;) (expression_statement "iVar5 = FUN_0001eca0(iVar4,pvVar8);" (assignment_expression "iVar5 = FUN_0001eca0(iVar4,pvVar8)" identifier = (call_expression "FUN_0001eca0(iVar4,pvVar8)" identifier (argument_list "(iVar4,pvVar8)" ( identifier , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }" { (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" identifier = (binary_expression "iVar3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_5 != (void *)0x0) goto LAB_00019207;" if (parenthesized_expression "(param_5 != (void *)0x0)" ( (binary_expression "param_5 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00019207;" goto statement_identifier ;)) (goto_statement "goto LAB_0001925e;" goto statement_identifier ;) })) (if_statement "if (iVar10 == 0) break;" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);" (assignment_expression "iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1)" identifier = (call_expression "FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1)" identifier (argument_list "(uVar1,iVar3,iVar10 + -1,local_2c,1)" ( identifier , identifier , (binary_expression "iVar10 + -1" identifier + number_literal) , identifier , number_literal )))) ;) (expression_statement "iVar10 = local_24;" (assignment_expression "iVar10 = local_24" identifier = identifier) ;) })) (expression_statement "iVar10 = FUN_0001ec80(iVar3,pvVar8);" (assignment_expression "iVar10 = FUN_0001ec80(iVar3,pvVar8)" identifier = (call_expression "FUN_0001ec80(iVar3,pvVar8)" identifier (argument_list "(iVar3,pvVar8)" ( identifier , identifier )))) ;) (expression_statement "local_30 = (void *)(iVar3 + iVar10);" (assignment_expression "local_30 = (void *)(iVar3 + iVar10)" identifier = (cast_expression "(void *)(iVar3 + iVar10)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar10)" ( (binary_expression "iVar3 + iVar10" identifier + identifier) )))) ;) (expression_statement "pvVar6 = (void *)((int)local_30 + 1);" (assignment_expression "pvVar6 = (void *)((int)local_30 + 1)" identifier = (cast_expression "(void *)((int)local_30 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + 1)" ( (binary_expression "(int)local_30 + 1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (goto_statement "goto LAB_0001910c;" goto statement_identifier ;) })) (expression_statement "iVar4 = iVar3 + iVar10;" (assignment_expression "iVar4 = iVar3 + iVar10" identifier = (binary_expression "iVar3 + iVar10" identifier + identifier)) ;) (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" identifier = (binary_expression "iVar3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (labeled_statement "LAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);" statement_identifier : (expression_statement "iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);" (assignment_expression "iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4)" identifier = (call_expression "FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4)" identifier (argument_list "(iVar4,iVar9,(int)pvVar8 - iVar4)" ( identifier , identifier , (binary_expression "(int)pvVar8 - iVar4" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;)) (if_statement "if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n              pvVar8 = (void *)(iVar3 + 1);\n            }" { (expression_statement "pvVar8 = (void *)(iVar3 + 1);" (assignment_expression "pvVar8 = (void *)(iVar3 + 1)" identifier = (cast_expression "(void *)(iVar3 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )))) ;) })) (expression_statement "pvVar6 = memrchr(param_2,iVar9,__n);" (assignment_expression "pvVar6 = memrchr(param_2,iVar9,__n)" identifier = (call_expression "memrchr(param_2,iVar9,__n)" identifier (argument_list "(param_2,iVar9,__n)" ( identifier , identifier , identifier )))) ;) (if_statement "if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }" if (parenthesized_expression "(pvVar6 == (void *)0x0)" ( (binary_expression "pvVar6 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              __n = 0;\n            }" { (expression_statement "__n = 0;" (assignment_expression "__n = 0" identifier = number_literal) ;) }) (else_clause "else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }" else (compound_statement "{\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }" { (expression_statement "__n = ((int)pvVar6 + 1) - (int)param_2;" (assignment_expression "__n = ((int)pvVar6 + 1) - (int)param_2" identifier = (binary_expression "((int)pvVar6 + 1) - (int)param_2" (parenthesized_expression "((int)pvVar6 + 1)" ( (binary_expression "(int)pvVar6 + 1" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_2 = (void *)((int)pvVar6 + 1);" (assignment_expression "param_2 = (void *)((int)pvVar6 + 1)" identifier = (cast_expression "(void *)((int)pvVar6 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 1)" ( (binary_expression "(int)pvVar6 + 1" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }))) (expression_statement "iVar10 = (int)pvVar8 - (int)param_2;" (assignment_expression "iVar10 = (int)pvVar8 - (int)param_2" identifier = (binary_expression "(int)pvVar8 - (int)param_2" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }" else (compound_statement "{\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }" { (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" identifier = (binary_expression "iVar3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;" (assignment_expression "iVar10 = (uint)(param_5 == (void *)0x0) + iVar10" identifier = (binary_expression "(uint)(param_5 == (void *)0x0) + iVar10" (call_expression "(uint)(param_5 == (void *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_5 == (void *)0x0)" ( (binary_expression "param_5 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) + identifier)) ;) }))) }) (else_clause "else {\n          __n = iVar3 - (int)param_2;\n        }" else (compound_statement "{\n          __n = iVar3 - (int)param_2;\n        }" { (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" identifier = (binary_expression "iVar3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (labeled_statement "LAB_00019207:\n        *param_4 = iVar10;" statement_identifier : (expression_statement "*param_4 = iVar10;" (assignment_expression "*param_4 = iVar10" (pointer_expression "*param_4" * identifier) = identifier) ;)) (goto_statement "goto LAB_0001920d;" goto statement_identifier ;) })) (labeled_statement "LAB_0001910c:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(pvVar6 <= pvVar8)" ( (binary_expression "pvVar6 <= pvVar8" identifier <= identifier) )) ;) })) (expression_statement "__n = 0xffffffff;" (assignment_expression "__n = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_0001920d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return __n;\n  }" { (return_statement "return __n;" return identifier ;) }))) comment (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nsize_t Fexecute(void *vcp,char *buf,size_t size,size_t *match_size,char *start_ptr)\n\n{\n  int iVar1;\n  kwset_t kwset;\n  _Bool _Var2;\n  _Bool _Var3;\n  _Bool _Var4;\n  void *pvVar5;\n  ptrdiff_t pVar6;\n  char *pcVar7;\n  _Bool longest;\n  char *cur;\n  size_t sVar8;\n  char *end;\n  int __c;\n  ptrdiff_t apVar9 [1];\n  int in_GS_OFFSET;\n  char *mb_start;\n  kwsmatch kwsmatch;\n  \n  _Var4 = match_lines;\n  _Var3 = localeinfo.using_utf8;\n  _Var2 = localeinfo.multibyte;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  kwset = *vcp;\n  if (match_lines) {\n    longest = false;\n  }\n  else {\n    longest = start_ptr != (char *)0x0 ||\n              (!localeinfo.using_utf8 && localeinfo.multibyte || match_words);\n  }\n  pcVar7 = buf;\n  if (start_ptr != (char *)0x0) {\n    pcVar7 = start_ptr;\n  }\n  end = buf + size;\n  mb_start = pcVar7;\n  if (pcVar7 <= end) {\n    __c = (int)eolbyte;\n    do {\n      pVar6 = kwsexec(kwset,pcVar7 + -(uint)match_lines,\n                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest);\n      if (pVar6 < 0) break;\n      apVar9[0] = kwsmatch.size[0] + (uint)match_lines * -2;\n      if (*(int *)((int)vcp + 4) <= kwsmatch.index) {\n        pvVar5 = *(void **)((int)vcp + 0x10);\n        if (pvVar5 == (void *)0x0) {\n          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));\n          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);\n          *(void **)((int)vcp + 0x10) = pvVar5;\n        }\n        sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr);\n        goto LAB_0001920d;\n      }\n      cur = pcVar7 + pVar6;\n      if ((_Var4 || (_Var3 || !_Var2)) ||\n         (pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0)) {\n        pcVar7 = mb_start;\n        if ((start_ptr == (char *)0x0) || (match_words == true)) {\n          if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }\n        }\n        else {\n          sVar8 = (int)cur - (int)buf;\n        }\nLAB_00019207:\n        *match_size = apVar9[0];\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pcVar7 <= end);\n  }\n  sVar8 = 0xffffffff;\nLAB_0001920d:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar8;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "size_t Fexecute(void *vcp,char *buf,size_t size,size_t *match_size,char *start_ptr)\n\n{\n  int iVar1;\n  kwset_t kwset;\n  _Bool _Var2;\n  _Bool _Var3;\n  _Bool _Var4;\n  void *pvVar5;\n  ptrdiff_t pVar6;\n  char *pcVar7;\n  _Bool longest;\n  char *cur;\n  size_t sVar8;\n  char *end;\n  int __c;\n  ptrdiff_t apVar9 [1];\n  int in_GS_OFFSET;\n  char *mb_start;\n  kwsmatch kwsmatch;\n  \n  _Var4 = match_lines;\n  _Var3 = localeinfo.using_utf8;\n  _Var2 = localeinfo.multibyte;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  kwset = *vcp;\n  if (match_lines) {\n    longest = false;\n  }\n  else {\n    longest = start_ptr != (char *)0x0 ||\n              (!localeinfo.using_utf8 && localeinfo.multibyte || match_words);\n  }\n  pcVar7 = buf;\n  if (start_ptr != (char *)0x0) {\n    pcVar7 = start_ptr;\n  }\n  end = buf + size;\n  mb_start = pcVar7;\n  if (pcVar7 <= end) {\n    __c = (int)eolbyte;\n    do {\n      pVar6 = kwsexec(kwset,pcVar7 + -(uint)match_lines,\n                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest);\n      if (pVar6 < 0) break;\n      apVar9[0] = kwsmatch.size[0] + (uint)match_lines * -2;\n      if (*(int *)((int)vcp + 4) <= kwsmatch.index) {\n        pvVar5 = *(void **)((int)vcp + 0x10);\n        if (pvVar5 == (void *)0x0) {\n          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));\n          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);\n          *(void **)((int)vcp + 0x10) = pvVar5;\n        }\n        sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr);\n        goto LAB_0001920d;\n      }\n      cur = pcVar7 + pVar6;\n      if ((_Var4 || (_Var3 || !_Var2)) ||\n         (pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0)) {\n        pcVar7 = mb_start;\n        if ((start_ptr == (char *)0x0) || (match_words == true)) {\n          if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }\n        }\n        else {\n          sVar8 = (int)cur - (int)buf;\n        }\nLAB_00019207:\n        *match_size = apVar9[0];\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pcVar7 <= end);\n  }\n  sVar8 = 0xffffffff;\nLAB_0001920d:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar8;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "Fexecute(void *vcp,char *buf,size_t size,size_t *match_size,char *start_ptr)" identifier (parameter_list "(void *vcp,char *buf,size_t size,size_t *match_size,char *start_ptr)" ( (parameter_declaration "void *vcp" primitive_type (pointer_declarator "*vcp" * identifier)) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "size_t size" primitive_type identifier) , (parameter_declaration "size_t *match_size" primitive_type (pointer_declarator "*match_size" * identifier)) , (parameter_declaration "char *start_ptr" primitive_type (pointer_declarator "*start_ptr" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  kwset_t kwset;\n  _Bool _Var2;\n  _Bool _Var3;\n  _Bool _Var4;\n  void *pvVar5;\n  ptrdiff_t pVar6;\n  char *pcVar7;\n  _Bool longest;\n  char *cur;\n  size_t sVar8;\n  char *end;\n  int __c;\n  ptrdiff_t apVar9 [1];\n  int in_GS_OFFSET;\n  char *mb_start;\n  kwsmatch kwsmatch;\n  \n  _Var4 = match_lines;\n  _Var3 = localeinfo.using_utf8;\n  _Var2 = localeinfo.multibyte;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  kwset = *vcp;\n  if (match_lines) {\n    longest = false;\n  }\n  else {\n    longest = start_ptr != (char *)0x0 ||\n              (!localeinfo.using_utf8 && localeinfo.multibyte || match_words);\n  }\n  pcVar7 = buf;\n  if (start_ptr != (char *)0x0) {\n    pcVar7 = start_ptr;\n  }\n  end = buf + size;\n  mb_start = pcVar7;\n  if (pcVar7 <= end) {\n    __c = (int)eolbyte;\n    do {\n      pVar6 = kwsexec(kwset,pcVar7 + -(uint)match_lines,\n                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest);\n      if (pVar6 < 0) break;\n      apVar9[0] = kwsmatch.size[0] + (uint)match_lines * -2;\n      if (*(int *)((int)vcp + 4) <= kwsmatch.index) {\n        pvVar5 = *(void **)((int)vcp + 0x10);\n        if (pvVar5 == (void *)0x0) {\n          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));\n          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);\n          *(void **)((int)vcp + 0x10) = pvVar5;\n        }\n        sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr);\n        goto LAB_0001920d;\n      }\n      cur = pcVar7 + pVar6;\n      if ((_Var4 || (_Var3 || !_Var2)) ||\n         (pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0)) {\n        pcVar7 = mb_start;\n        if ((start_ptr == (char *)0x0) || (match_words == true)) {\n          if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }\n        }\n        else {\n          sVar8 = (int)cur - (int)buf;\n        }\nLAB_00019207:\n        *match_size = apVar9[0];\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pcVar7 <= end);\n  }\n  sVar8 = 0xffffffff;\nLAB_0001920d:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar8;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "kwset_t kwset;" type_identifier identifier ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (declaration "_Bool _Var3;" type_identifier identifier ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "ptrdiff_t pVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "_Bool longest;" type_identifier identifier ;) (declaration "char *cur;" primitive_type (pointer_declarator "*cur" * identifier) ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "char *end;" primitive_type (pointer_declarator "*end" * identifier) ;) (declaration "int __c;" primitive_type identifier ;) (declaration "ptrdiff_t apVar9 [1];" primitive_type (array_declarator "apVar9 [1]" identifier [ number_literal ]) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *mb_start;" primitive_type (pointer_declarator "*mb_start" * identifier) ;) (declaration "kwsmatch kwsmatch;" type_identifier identifier ;) (expression_statement "_Var4 = match_lines;" (assignment_expression "_Var4 = match_lines" identifier = identifier) ;) (expression_statement "_Var3 = localeinfo.using_utf8;" (assignment_expression "_Var3 = localeinfo.using_utf8" identifier = (field_expression "localeinfo.using_utf8" identifier . field_identifier)) ;) (expression_statement "_Var2 = localeinfo.multibyte;" (assignment_expression "_Var2 = localeinfo.multibyte" identifier = (field_expression "localeinfo.multibyte" identifier . field_identifier)) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) comment (expression_statement "kwset = *vcp;" (assignment_expression "kwset = *vcp" identifier = (pointer_expression "*vcp" * identifier)) ;) (if_statement "if (match_lines) {\n    longest = false;\n  }\n  else {\n    longest = start_ptr != (char *)0x0 ||\n              (!localeinfo.using_utf8 && localeinfo.multibyte || match_words);\n  }" if (parenthesized_expression "(match_lines)" ( identifier )) (compound_statement "{\n    longest = false;\n  }" { (expression_statement "longest = false;" (assignment_expression "longest = false" identifier = false) ;) }) (else_clause "else {\n    longest = start_ptr != (char *)0x0 ||\n              (!localeinfo.using_utf8 && localeinfo.multibyte || match_words);\n  }" else (compound_statement "{\n    longest = start_ptr != (char *)0x0 ||\n              (!localeinfo.using_utf8 && localeinfo.multibyte || match_words);\n  }" { (expression_statement "longest = start_ptr != (char *)0x0 ||\n              (!localeinfo.using_utf8 && localeinfo.multibyte || match_words);" (assignment_expression "longest = start_ptr != (char *)0x0 ||\n              (!localeinfo.using_utf8 && localeinfo.multibyte || match_words)" identifier = (binary_expression "start_ptr != (char *)0x0 ||\n              (!localeinfo.using_utf8 && localeinfo.multibyte || match_words)" (binary_expression "start_ptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) || (parenthesized_expression "(!localeinfo.using_utf8 && localeinfo.multibyte || match_words)" ( (binary_expression "!localeinfo.using_utf8 && localeinfo.multibyte || match_words" (binary_expression "!localeinfo.using_utf8 && localeinfo.multibyte" (unary_expression "!localeinfo.using_utf8" ! (field_expression "localeinfo.using_utf8" identifier . field_identifier)) && (field_expression "localeinfo.multibyte" identifier . field_identifier)) || identifier) )))) ;) }))) (expression_statement "pcVar7 = buf;" (assignment_expression "pcVar7 = buf" identifier = identifier) ;) (if_statement "if (start_ptr != (char *)0x0) {\n    pcVar7 = start_ptr;\n  }" if (parenthesized_expression "(start_ptr != (char *)0x0)" ( (binary_expression "start_ptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar7 = start_ptr;\n  }" { (expression_statement "pcVar7 = start_ptr;" (assignment_expression "pcVar7 = start_ptr" identifier = identifier) ;) })) (expression_statement "end = buf + size;" (assignment_expression "end = buf + size" identifier = (binary_expression "buf + size" identifier + identifier)) ;) (expression_statement "mb_start = pcVar7;" (assignment_expression "mb_start = pcVar7" identifier = identifier) ;) (if_statement "if (pcVar7 <= end) {\n    __c = (int)eolbyte;\n    do {\n      pVar6 = kwsexec(kwset,pcVar7 + -(uint)match_lines,\n                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest);\n      if (pVar6 < 0) break;\n      apVar9[0] = kwsmatch.size[0] + (uint)match_lines * -2;\n      if (*(int *)((int)vcp + 4) <= kwsmatch.index) {\n        pvVar5 = *(void **)((int)vcp + 0x10);\n        if (pvVar5 == (void *)0x0) {\n          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));\n          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);\n          *(void **)((int)vcp + 0x10) = pvVar5;\n        }\n        sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr);\n        goto LAB_0001920d;\n      }\n      cur = pcVar7 + pVar6;\n      if ((_Var4 || (_Var3 || !_Var2)) ||\n         (pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0)) {\n        pcVar7 = mb_start;\n        if ((start_ptr == (char *)0x0) || (match_words == true)) {\n          if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }\n        }\n        else {\n          sVar8 = (int)cur - (int)buf;\n        }\nLAB_00019207:\n        *match_size = apVar9[0];\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pcVar7 <= end);\n  }" if (parenthesized_expression "(pcVar7 <= end)" ( (binary_expression "pcVar7 <= end" identifier <= identifier) )) (compound_statement "{\n    __c = (int)eolbyte;\n    do {\n      pVar6 = kwsexec(kwset,pcVar7 + -(uint)match_lines,\n                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest);\n      if (pVar6 < 0) break;\n      apVar9[0] = kwsmatch.size[0] + (uint)match_lines * -2;\n      if (*(int *)((int)vcp + 4) <= kwsmatch.index) {\n        pvVar5 = *(void **)((int)vcp + 0x10);\n        if (pvVar5 == (void *)0x0) {\n          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));\n          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);\n          *(void **)((int)vcp + 0x10) = pvVar5;\n        }\n        sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr);\n        goto LAB_0001920d;\n      }\n      cur = pcVar7 + pVar6;\n      if ((_Var4 || (_Var3 || !_Var2)) ||\n         (pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0)) {\n        pcVar7 = mb_start;\n        if ((start_ptr == (char *)0x0) || (match_words == true)) {\n          if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }\n        }\n        else {\n          sVar8 = (int)cur - (int)buf;\n        }\nLAB_00019207:\n        *match_size = apVar9[0];\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pcVar7 <= end);\n  }" { (expression_statement "__c = (int)eolbyte;" (assignment_expression "__c = (int)eolbyte" identifier = (cast_expression "(int)eolbyte" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n      pVar6 = kwsexec(kwset,pcVar7 + -(uint)match_lines,\n                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest);\n      if (pVar6 < 0) break;\n      apVar9[0] = kwsmatch.size[0] + (uint)match_lines * -2;\n      if (*(int *)((int)vcp + 4) <= kwsmatch.index) {\n        pvVar5 = *(void **)((int)vcp + 0x10);\n        if (pvVar5 == (void *)0x0) {\n          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));\n          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);\n          *(void **)((int)vcp + 0x10) = pvVar5;\n        }\n        sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr);\n        goto LAB_0001920d;\n      }\n      cur = pcVar7 + pVar6;\n      if ((_Var4 || (_Var3 || !_Var2)) ||\n         (pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0)) {\n        pcVar7 = mb_start;\n        if ((start_ptr == (char *)0x0) || (match_words == true)) {\n          if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }\n        }\n        else {\n          sVar8 = (int)cur - (int)buf;\n        }\nLAB_00019207:\n        *match_size = apVar9[0];\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pcVar7 <= end);" do (compound_statement "{\n      pVar6 = kwsexec(kwset,pcVar7 + -(uint)match_lines,\n                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest);\n      if (pVar6 < 0) break;\n      apVar9[0] = kwsmatch.size[0] + (uint)match_lines * -2;\n      if (*(int *)((int)vcp + 4) <= kwsmatch.index) {\n        pvVar5 = *(void **)((int)vcp + 0x10);\n        if (pvVar5 == (void *)0x0) {\n          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));\n          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);\n          *(void **)((int)vcp + 0x10) = pvVar5;\n        }\n        sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr);\n        goto LAB_0001920d;\n      }\n      cur = pcVar7 + pVar6;\n      if ((_Var4 || (_Var3 || !_Var2)) ||\n         (pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0)) {\n        pcVar7 = mb_start;\n        if ((start_ptr == (char *)0x0) || (match_words == true)) {\n          if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }\n        }\n        else {\n          sVar8 = (int)cur - (int)buf;\n        }\nLAB_00019207:\n        *match_size = apVar9[0];\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    }" { (expression_statement "pVar6 = kwsexec(kwset,pcVar7 + -(uint)match_lines,\n                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest);" (assignment_expression "pVar6 = kwsexec(kwset,pcVar7 + -(uint)match_lines,\n                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest)" identifier = (call_expression "kwsexec(kwset,pcVar7 + -(uint)match_lines,\n                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest)" identifier (argument_list "(kwset,pcVar7 + -(uint)match_lines,\n                      (ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7)),&kwsmatch,longest)" ( identifier , (binary_expression "pcVar7 + -(uint)match_lines" identifier + (unary_expression "-(uint)match_lines" - (cast_expression "(uint)match_lines" ( (type_descriptor "uint" type_identifier) ) identifier))) , (cast_expression "(ptrdiff_t)(end + ((uint)match_lines - (int)pcVar7))" ( (type_descriptor "ptrdiff_t" primitive_type) ) (parenthesized_expression "(end + ((uint)match_lines - (int)pcVar7))" ( (binary_expression "end + ((uint)match_lines - (int)pcVar7)" identifier + (parenthesized_expression "((uint)match_lines - (int)pcVar7)" ( (binary_expression "(uint)match_lines - (int)pcVar7" (cast_expression "(uint)match_lines" ( (type_descriptor "uint" type_identifier) ) identifier) - (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) , (pointer_expression "&kwsmatch" & identifier) , identifier )))) ;) (if_statement "if (pVar6 < 0) break;" if (parenthesized_expression "(pVar6 < 0)" ( (binary_expression "pVar6 < 0" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "apVar9[0] = kwsmatch.size[0] + (uint)match_lines * -2;" (assignment_expression "apVar9[0] = kwsmatch.size[0] + (uint)match_lines * -2" (subscript_expression "apVar9[0]" identifier [ number_literal ]) = (binary_expression "kwsmatch.size[0] + (uint)match_lines * -2" (subscript_expression "kwsmatch.size[0]" (field_expression "kwsmatch.size" identifier . field_identifier) [ number_literal ]) + (binary_expression "(uint)match_lines * -2" (cast_expression "(uint)match_lines" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal))) ;) (if_statement "if (*(int *)((int)vcp + 4) <= kwsmatch.index) {\n        pvVar5 = *(void **)((int)vcp + 0x10);\n        if (pvVar5 == (void *)0x0) {\n          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));\n          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);\n          *(void **)((int)vcp + 0x10) = pvVar5;\n        }\n        sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr);\n        goto LAB_0001920d;\n      }" if (parenthesized_expression "(*(int *)((int)vcp + 4) <= kwsmatch.index)" ( (binary_expression "*(int *)((int)vcp + 4) <= kwsmatch.index" (pointer_expression "*(int *)((int)vcp + 4)" * (cast_expression "(int *)((int)vcp + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vcp + 4)" ( (binary_expression "(int)vcp + 4" (cast_expression "(int)vcp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) <= (field_expression "kwsmatch.index" identifier . field_identifier)) )) (compound_statement "{\n        pvVar5 = *(void **)((int)vcp + 0x10);\n        if (pvVar5 == (void *)0x0) {\n          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));\n          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);\n          *(void **)((int)vcp + 0x10) = pvVar5;\n        }\n        sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr);\n        goto LAB_0001920d;\n      }" { (expression_statement "pvVar5 = *(void **)((int)vcp + 0x10);" (assignment_expression "pvVar5 = *(void **)((int)vcp + 0x10)" identifier = (pointer_expression "*(void **)((int)vcp + 0x10)" * (cast_expression "(void **)((int)vcp + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)vcp + 0x10)" ( (binary_expression "(int)vcp + 0x10" (cast_expression "(int)vcp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (pvVar5 == (void *)0x0) {\n          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));\n          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);\n          *(void **)((int)vcp + 0x10) = pvVar5;\n        }" if (parenthesized_expression "(pvVar5 == (void *)0x0)" ( (binary_expression "pvVar5 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));\n          pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);\n          *(void **)((int)vcp + 0x10) = pvVar5;\n        }" { (expression_statement "fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));" (call_expression "fgrep_to_grep_pattern((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc))" identifier (argument_list "((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc))" ( (cast_expression "(char **)((int)vcp + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)vcp + 8)" ( (binary_expression "(int)vcp + 8" (cast_expression "(int)vcp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , (cast_expression "(size_t *)((int)vcp + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vcp + 0xc)" ( (binary_expression "(int)vcp + 0xc" (cast_expression "(int)vcp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ))) ;) (expression_statement "pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);" (assignment_expression "pvVar5 = GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46)" identifier = (call_expression "GEAcompile(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46)" identifier (argument_list "(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46)" ( (pointer_expression "*(char **)((int)vcp + 8)" * (cast_expression "(char **)((int)vcp + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)vcp + 8)" ( (binary_expression "(int)vcp + 8" (cast_expression "(int)vcp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (pointer_expression "*(size_t *)((int)vcp + 0xc)" * (cast_expression "(size_t *)((int)vcp + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vcp + 0xc)" ( (binary_expression "(int)vcp + 0xc" (cast_expression "(int)vcp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal )))) ;) (expression_statement "*(void **)((int)vcp + 0x10) = pvVar5;" (assignment_expression "*(void **)((int)vcp + 0x10) = pvVar5" (pointer_expression "*(void **)((int)vcp + 0x10)" * (cast_expression "(void **)((int)vcp + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)vcp + 0x10)" ( (binary_expression "(int)vcp + 0x10" (cast_expression "(int)vcp" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) })) (expression_statement "sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr);" (assignment_expression "sVar8 = EGexecute(pvVar5,buf,size,match_size,start_ptr)" identifier = (call_expression "EGexecute(pvVar5,buf,size,match_size,start_ptr)" identifier (argument_list "(pvVar5,buf,size,match_size,start_ptr)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (goto_statement "goto LAB_0001920d;" goto statement_identifier ;) })) (expression_statement "cur = pcVar7 + pVar6;" (assignment_expression "cur = pcVar7 + pVar6" identifier = (binary_expression "pcVar7 + pVar6" identifier + identifier)) ;) (if_statement "if ((_Var4 || (_Var3 || !_Var2)) ||\n         (pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0)) {\n        pcVar7 = mb_start;\n        if ((start_ptr == (char *)0x0) || (match_words == true)) {\n          if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }\n        }\n        else {\n          sVar8 = (int)cur - (int)buf;\n        }\nLAB_00019207:\n        *match_size = apVar9[0];\n        goto LAB_0001920d;\n      }" if (parenthesized_expression "((_Var4 || (_Var3 || !_Var2)) ||\n         (pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0))" ( (binary_expression "(_Var4 || (_Var3 || !_Var2)) ||\n         (pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0)" (parenthesized_expression "(_Var4 || (_Var3 || !_Var2))" ( (binary_expression "_Var4 || (_Var3 || !_Var2)" identifier || (parenthesized_expression "(_Var3 || !_Var2)" ( (binary_expression "_Var3 || !_Var2" identifier || (unary_expression "!_Var2" ! identifier)) ))) )) || (parenthesized_expression "(pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0)" ( (comma_expression "pVar6 = mb_goback(&mb_start,cur,end), pcVar7 = mb_start, pVar6 == 0" (assignment_expression "pVar6 = mb_goback(&mb_start,cur,end)" identifier = (call_expression "mb_goback(&mb_start,cur,end)" identifier (argument_list "(&mb_start,cur,end)" ( (pointer_expression "&mb_start" & identifier) , identifier , identifier )))) , (comma_expression "pcVar7 = mb_start, pVar6 == 0" (assignment_expression "pcVar7 = mb_start" identifier = identifier) , (binary_expression "pVar6 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n        pcVar7 = mb_start;\n        if ((start_ptr == (char *)0x0) || (match_words == true)) {\n          if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }\n        }\n        else {\n          sVar8 = (int)cur - (int)buf;\n        }\nLAB_00019207:\n        *match_size = apVar9[0];\n        goto LAB_0001920d;\n      }" { (expression_statement "pcVar7 = mb_start;" (assignment_expression "pcVar7 = mb_start" identifier = identifier) ;) (if_statement "if ((start_ptr == (char *)0x0) || (match_words == true)) {\n          if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }\n        }\n        else {\n          sVar8 = (int)cur - (int)buf;\n        }" if (parenthesized_expression "((start_ptr == (char *)0x0) || (match_words == true))" ( (binary_expression "(start_ptr == (char *)0x0) || (match_words == true)" (parenthesized_expression "(start_ptr == (char *)0x0)" ( (binary_expression "start_ptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(match_words == true)" ( (binary_expression "match_words == true" identifier == true) ))) )) (compound_statement "{\n          if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }\n        }" { (if_statement "if (match_lines == false) {\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }\n          else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }" if (parenthesized_expression "(match_lines == false)" ( (binary_expression "match_lines == false" identifier == false) )) (compound_statement "{\n            if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }\n            pcVar7 = cur + apVar9[0];\n            sVar8 = (int)cur - (int)buf;\nLAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);\n            if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }\n            pvVar5 = memrchr(buf,__c,sVar8);\n            if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }\n            apVar9[0] = (int)end - (int)buf;\n          }" { (if_statement "if (match_words != false) {\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }" if (parenthesized_expression "(match_words != false)" ( (binary_expression "match_words != false" identifier != false) )) (compound_statement "{\n              pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);\n              if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }\n              sVar8 = wordchar_prev(pcVar7,cur,end);\n              while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }\n              sVar8 = wordchars_size(cur,end);\n              mb_start = cur + sVar8;\n              pcVar7 = mb_start + 1;\n              goto LAB_0001910c;\n            }" { (expression_statement "pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start);" (assignment_expression "pvVar5 = memrchr(mb_start,__c,(int)cur - (int)mb_start)" identifier = (call_expression "memrchr(mb_start,__c,(int)cur - (int)mb_start)" identifier (argument_list "(mb_start,__c,(int)cur - (int)mb_start)" ( identifier , identifier , (binary_expression "(int)cur - (int)mb_start" (cast_expression "(int)cur" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)mb_start" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (pvVar5 != (void *)0x0) {\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }" if (parenthesized_expression "(pvVar5 != (void *)0x0)" ( (binary_expression "pvVar5 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                pcVar7 = (char *)((int)pvVar5 + 1);\n                mb_start = pcVar7;\n              }" { (expression_statement "pcVar7 = (char *)((int)pvVar5 + 1);" (assignment_expression "pcVar7 = (char *)((int)pvVar5 + 1)" identifier = (cast_expression "(char *)((int)pvVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 1)" ( (binary_expression "(int)pvVar5 + 1" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "mb_start = pcVar7;" (assignment_expression "mb_start = pcVar7" identifier = identifier) ;) })) (expression_statement "sVar8 = wordchar_prev(pcVar7,cur,end);" (assignment_expression "sVar8 = wordchar_prev(pcVar7,cur,end)" identifier = (call_expression "wordchar_prev(pcVar7,cur,end)" identifier (argument_list "(pcVar7,cur,end)" ( identifier , identifier , identifier )))) ;) (while_statement "while (sVar8 == 0) {\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }" while (parenthesized_expression "(sVar8 == 0)" ( (binary_expression "sVar8 == 0" identifier == number_literal) )) (compound_statement "{\n                pcVar7 = cur + apVar9[0];\n                sVar8 = wordchar_next(pcVar7,end);\n                if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (apVar9[0] == 0) break;\n                sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);\n                apVar9[0] = kwsmatch.size[0];\n              }" { (expression_statement "pcVar7 = cur + apVar9[0];" (assignment_expression "pcVar7 = cur + apVar9[0]" identifier = (binary_expression "cur + apVar9[0]" identifier + (subscript_expression "apVar9[0]" identifier [ number_literal ]))) ;) (expression_statement "sVar8 = wordchar_next(pcVar7,end);" (assignment_expression "sVar8 = wordchar_next(pcVar7,end)" identifier = (call_expression "wordchar_next(pcVar7,end)" identifier (argument_list "(pcVar7,end)" ( identifier , identifier )))) ;) (if_statement "if (sVar8 == 0) {\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }" if (parenthesized_expression "(sVar8 == 0)" ( (binary_expression "sVar8 == 0" identifier == number_literal) )) (compound_statement "{\n                  sVar8 = (int)cur - (int)buf;\n                  if (start_ptr != (char *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }" { (expression_statement "sVar8 = (int)cur - (int)buf;" (assignment_expression "sVar8 = (int)cur - (int)buf" identifier = (binary_expression "(int)cur - (int)buf" (cast_expression "(int)cur" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (start_ptr != (char *)0x0) goto LAB_00019207;" if (parenthesized_expression "(start_ptr != (char *)0x0)" ( (binary_expression "start_ptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00019207;" goto statement_identifier ;)) (goto_statement "goto LAB_0001925e;" goto statement_identifier ;) })) (if_statement "if (apVar9[0] == 0) break;" if (parenthesized_expression "(apVar9[0] == 0)" ( (binary_expression "apVar9[0] == 0" (subscript_expression "apVar9[0]" identifier [ number_literal ]) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true);" (assignment_expression "sVar8 = kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true)" identifier = (call_expression "kwsexec(kwset,cur,apVar9[0] - 1,&kwsmatch,true)" identifier (argument_list "(kwset,cur,apVar9[0] - 1,&kwsmatch,true)" ( identifier , identifier , (binary_expression "apVar9[0] - 1" (subscript_expression "apVar9[0]" identifier [ number_literal ]) - number_literal) , (pointer_expression "&kwsmatch" & identifier) , true )))) ;) (expression_statement "apVar9[0] = kwsmatch.size[0];" (assignment_expression "apVar9[0] = kwsmatch.size[0]" (subscript_expression "apVar9[0]" identifier [ number_literal ]) = (subscript_expression "kwsmatch.size[0]" (field_expression "kwsmatch.size" identifier . field_identifier) [ number_literal ])) ;) })) (expression_statement "sVar8 = wordchars_size(cur,end);" (assignment_expression "sVar8 = wordchars_size(cur,end)" identifier = (call_expression "wordchars_size(cur,end)" identifier (argument_list "(cur,end)" ( identifier , identifier )))) ;) (expression_statement "mb_start = cur + sVar8;" (assignment_expression "mb_start = cur + sVar8" identifier = (binary_expression "cur + sVar8" identifier + identifier)) ;) (expression_statement "pcVar7 = mb_start + 1;" (assignment_expression "pcVar7 = mb_start + 1" identifier = (binary_expression "mb_start + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0001910c;" goto statement_identifier ;) })) (expression_statement "pcVar7 = cur + apVar9[0];" (assignment_expression "pcVar7 = cur + apVar9[0]" identifier = (binary_expression "cur + apVar9[0]" identifier + (subscript_expression "apVar9[0]" identifier [ number_literal ]))) ;) (expression_statement "sVar8 = (int)cur - (int)buf;" (assignment_expression "sVar8 = (int)cur - (int)buf" identifier = (binary_expression "(int)cur - (int)buf" (cast_expression "(int)cur" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (labeled_statement "LAB_0001925e:\n            pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);" statement_identifier : (expression_statement "pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7);" (assignment_expression "pvVar5 = rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7)" identifier = (call_expression "rpl_memchr(pcVar7,__c,(int)end - (int)pcVar7)" identifier (argument_list "(pcVar7,__c,(int)end - (int)pcVar7)" ( identifier , identifier , (binary_expression "(int)end - (int)pcVar7" (cast_expression "(int)end" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;)) (if_statement "if (pvVar5 != (void *)0x0) {\n              end = (char *)((int)pvVar5 + 1);\n            }" if (parenthesized_expression "(pvVar5 != (void *)0x0)" ( (binary_expression "pvVar5 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              end = (char *)((int)pvVar5 + 1);\n            }" { (expression_statement "end = (char *)((int)pvVar5 + 1);" (assignment_expression "end = (char *)((int)pvVar5 + 1)" identifier = (cast_expression "(char *)((int)pvVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 1)" ( (binary_expression "(int)pvVar5 + 1" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "pvVar5 = memrchr(buf,__c,sVar8);" (assignment_expression "pvVar5 = memrchr(buf,__c,sVar8)" identifier = (call_expression "memrchr(buf,__c,sVar8)" identifier (argument_list "(buf,__c,sVar8)" ( identifier , identifier , identifier )))) ;) (if_statement "if (pvVar5 == (void *)0x0) {\n              sVar8 = 0;\n            }\n            else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }" if (parenthesized_expression "(pvVar5 == (void *)0x0)" ( (binary_expression "pvVar5 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              sVar8 = 0;\n            }" { (expression_statement "sVar8 = 0;" (assignment_expression "sVar8 = 0" identifier = number_literal) ;) }) (else_clause "else {\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }" else (compound_statement "{\n              sVar8 = ((int)pvVar5 + 1) - (int)buf;\n              buf = (char *)((int)pvVar5 + 1);\n            }" { (expression_statement "sVar8 = ((int)pvVar5 + 1) - (int)buf;" (assignment_expression "sVar8 = ((int)pvVar5 + 1) - (int)buf" identifier = (binary_expression "((int)pvVar5 + 1) - (int)buf" (parenthesized_expression "((int)pvVar5 + 1)" ( (binary_expression "(int)pvVar5 + 1" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )) - (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "buf = (char *)((int)pvVar5 + 1);" (assignment_expression "buf = (char *)((int)pvVar5 + 1)" identifier = (cast_expression "(char *)((int)pvVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 1)" ( (binary_expression "(int)pvVar5 + 1" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }))) (expression_statement "apVar9[0] = (int)end - (int)buf;" (assignment_expression "apVar9[0] = (int)end - (int)buf" (subscript_expression "apVar9[0]" identifier [ number_literal ]) = (binary_expression "(int)end - (int)buf" (cast_expression "(int)end" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }" else (compound_statement "{\n            sVar8 = (int)cur - (int)buf;\n            apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];\n          }" { (expression_statement "sVar8 = (int)cur - (int)buf;" (assignment_expression "sVar8 = (int)cur - (int)buf" identifier = (binary_expression "(int)cur - (int)buf" (cast_expression "(int)cur" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0];" (assignment_expression "apVar9[0] = (uint)(start_ptr == (char *)0x0) + apVar9[0]" (subscript_expression "apVar9[0]" identifier [ number_literal ]) = (binary_expression "(uint)(start_ptr == (char *)0x0) + apVar9[0]" (call_expression "(uint)(start_ptr == (char *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(start_ptr == (char *)0x0)" ( (binary_expression "start_ptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) + (subscript_expression "apVar9[0]" identifier [ number_literal ]))) ;) }))) }) (else_clause "else {\n          sVar8 = (int)cur - (int)buf;\n        }" else (compound_statement "{\n          sVar8 = (int)cur - (int)buf;\n        }" { (expression_statement "sVar8 = (int)cur - (int)buf;" (assignment_expression "sVar8 = (int)cur - (int)buf" identifier = (binary_expression "(int)cur - (int)buf" (cast_expression "(int)cur" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (labeled_statement "LAB_00019207:\n        *match_size = apVar9[0];" statement_identifier : (expression_statement "*match_size = apVar9[0];" (assignment_expression "*match_size = apVar9[0]" (pointer_expression "*match_size" * identifier) = (subscript_expression "apVar9[0]" identifier [ number_literal ])) ;)) (goto_statement "goto LAB_0001920d;" goto statement_identifier ;) })) (labeled_statement "LAB_0001910c:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(pcVar7 <= end)" ( (binary_expression "pcVar7 <= end" identifier <= identifier) )) ;) })) (expression_statement "sVar8 = 0xffffffff;" (assignment_expression "sVar8 = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_0001920d:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar8;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar8;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return sVar8;\n  }" { (return_statement "return sVar8;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "size_t FUN_00018fa0(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)\n\n{\n  undefined4 uVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  byte bVar7;\n  size_t __n;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  byte local_4d;\n  void *local_30;\n  int local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x18fa9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *param_1;\n  if (DAT_0004ca25 == 0) {\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }\n  else {\n    bVar7 = 0;\n    local_4d = 0;\n  }\n  pvVar6 = param_2;\n  if (param_5 != (void *)0x0) {\n    pvVar6 = param_5;\n  }\n  pvVar8 = (void *)((int)param_2 + param_3);\n  local_30 = pvVar6;\n  if (pvVar6 <= pvVar8) {\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }\n  __n = 0xffffffff;\nLAB_0001920d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }\n                    \n  FUN_00038830();\n}\n\n" (function_definition "size_t FUN_00018fa0(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)\n\n{\n  undefined4 uVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  byte bVar7;\n  size_t __n;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  byte local_4d;\n  void *local_30;\n  int local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x18fa9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *param_1;\n  if (DAT_0004ca25 == 0) {\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }\n  else {\n    bVar7 = 0;\n    local_4d = 0;\n  }\n  pvVar6 = param_2;\n  if (param_5 != (void *)0x0) {\n    pvVar6 = param_5;\n  }\n  pvVar8 = (void *)((int)param_2 + param_3);\n  local_30 = pvVar6;\n  if (pvVar6 <= pvVar8) {\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }\n  __n = 0xffffffff;\nLAB_0001920d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }\n                    \n  FUN_00038830();\n}" primitive_type (function_declarator "FUN_00018fa0(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)" identifier (parameter_list "(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "void *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  byte bVar7;\n  size_t __n;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  byte local_4d;\n  void *local_30;\n  int local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x18fa9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *param_1;\n  if (DAT_0004ca25 == 0) {\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }\n  else {\n    bVar7 = 0;\n    local_4d = 0;\n  }\n  pvVar6 = param_2;\n  if (param_5 != (void *)0x0) {\n    pvVar6 = param_5;\n  }\n  pvVar8 = (void *)((int)param_2 + param_3);\n  local_30 = pvVar6;\n  if (pvVar6 <= pvVar8) {\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }\n  __n = 0xffffffff;\nLAB_0001920d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }\n                    \n  FUN_00038830();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "void *pvVar6;" primitive_type (pointer_declarator "*pvVar6" * identifier) ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "void *pvVar8;" primitive_type (pointer_declarator "*pvVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte local_4d;" type_identifier identifier ;) (declaration "void *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "int local_2c [2];" primitive_type (array_declarator "local_2c [2]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x18fa9;" (assignment_expression "uStack_14 = 0x18fa9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (DAT_0004ca25 == 0) {\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }\n  else {\n    bVar7 = 0;\n    local_4d = 0;\n  }" if (parenthesized_expression "(DAT_0004ca25 == 0)" ( (binary_expression "DAT_0004ca25 == 0" identifier == number_literal) )) (compound_statement "{\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }" { (expression_statement "local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;" (assignment_expression "local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520" identifier = (binary_expression "(DAT_0004c521 ^ 1) & DAT_0004c520" (parenthesized_expression "(DAT_0004c521 ^ 1)" ( (binary_expression "DAT_0004c521 ^ 1" identifier ^ number_literal) )) & identifier)) ;) (expression_statement "bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;" (assignment_expression "bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24" identifier = (binary_expression "param_5 != (void *)0x0 | local_4d | DAT_0004ca24" (binary_expression "param_5 != (void *)0x0 | local_4d" (binary_expression "param_5 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) | identifier) | identifier)) ;) }) (else_clause "else {\n    bVar7 = 0;\n    local_4d = 0;\n  }" else (compound_statement "{\n    bVar7 = 0;\n    local_4d = 0;\n  }" { (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "local_4d = 0;" (assignment_expression "local_4d = 0" identifier = number_literal) ;) }))) (expression_statement "pvVar6 = param_2;" (assignment_expression "pvVar6 = param_2" identifier = identifier) ;) (if_statement "if (param_5 != (void *)0x0) {\n    pvVar6 = param_5;\n  }" if (parenthesized_expression "(param_5 != (void *)0x0)" ( (binary_expression "param_5 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pvVar6 = param_5;\n  }" { (expression_statement "pvVar6 = param_5;" (assignment_expression "pvVar6 = param_5" identifier = identifier) ;) })) (expression_statement "pvVar8 = (void *)((int)param_2 + param_3);" (assignment_expression "pvVar8 = (void *)((int)param_2 + param_3)" identifier = (cast_expression "(void *)((int)param_2 + param_3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + param_3)" ( (binary_expression "(int)param_2 + param_3" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" identifier = identifier) ;) (if_statement "if (pvVar6 <= pvVar8) {\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }" if (parenthesized_expression "(pvVar6 <= pvVar8)" ( (binary_expression "pvVar6 <= pvVar8" identifier <= identifier) )) (compound_statement "{\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }" { (expression_statement "iVar9 = (int)DAT_0004c500;" (assignment_expression "iVar9 = (int)DAT_0004c500" identifier = (cast_expression "(int)DAT_0004c500" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);" do (compound_statement "{\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    }" { (expression_statement "iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);" (assignment_expression "iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7)" identifier = (call_expression "FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7)" identifier (argument_list "(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7)" ( identifier , (binary_expression "(int)pvVar6 - (uint)DAT_0004ca25" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(uint)DAT_0004ca25" ( (type_descriptor "uint" type_identifier) ) identifier)) , (binary_expression "(int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6)" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((uint)DAT_0004ca25 - (int)pvVar6)" ( (binary_expression "(uint)DAT_0004ca25 - (int)pvVar6" (cast_expression "(uint)DAT_0004ca25" ( (type_descriptor "uint" type_identifier) ) identifier) - (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , identifier )))) ;) (if_statement "if (iVar3 < 0) break;" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar10 = local_24 + (uint)DAT_0004ca25 * -2;" (assignment_expression "iVar10 = local_24 + (uint)DAT_0004ca25 * -2" identifier = (binary_expression "local_24 + (uint)DAT_0004ca25 * -2" identifier + (binary_expression "(uint)DAT_0004ca25 * -2" (cast_expression "(uint)DAT_0004ca25" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal))) ;) (if_statement "if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }" if (parenthesized_expression "((int)param_1[1] <= local_2c[0])" ( (binary_expression "(int)param_1[1] <= local_2c[0]" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) <= (subscript_expression "local_2c[0]" identifier [ number_literal ])) )) (compound_statement "{\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }" { (expression_statement "iVar9 = param_1[4];" (assignment_expression "iVar9 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (if_statement "if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }" { (expression_statement "FUN_00018a90(param_1 + 2,param_1 + 3);" (call_expression "FUN_00018a90(param_1 + 2,param_1 + 3)" identifier (argument_list "(param_1 + 2,param_1 + 3)" ( (binary_expression "param_1 + 2" identifier + number_literal) , (binary_expression "param_1 + 3" identifier + number_literal) ))) ;) (expression_statement "iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);" (assignment_expression "iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46)" identifier = (call_expression "FUN_00014450(param_1[2],param_1[3],0x10a46)" identifier (argument_list "(param_1[2],param_1[3],0x10a46)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , (subscript_expression "param_1[3]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "param_1[4] = iVar9;" (assignment_expression "param_1[4] = iVar9" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "__n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);" (assignment_expression "__n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5)" identifier = (call_expression "FUN_00014a20(iVar9,param_2,param_3,param_4,param_5)" identifier (argument_list "(iVar9,param_2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (goto_statement "goto LAB_0001920d;" goto statement_identifier ;) })) (expression_statement "iVar3 = (int)pvVar6 + iVar3;" (assignment_expression "iVar3 = (int)pvVar6 + iVar3" identifier = (binary_expression "(int)pvVar6 + iVar3" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (if_statement "if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }" if (parenthesized_expression "((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0))" ( (binary_expression "(local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)" (parenthesized_expression "(local_4d == 0)" ( (binary_expression "local_4d == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)" ( (comma_expression "iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0" (assignment_expression "iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8)" identifier = (call_expression "FUN_0001eab0(&local_30,iVar3,pvVar8)" identifier (argument_list "(&local_30,iVar3,pvVar8)" ( (pointer_expression "&local_30" & identifier) , identifier , identifier )))) , (comma_expression "pvVar6 = local_30, iVar4 == 0" (assignment_expression "pvVar6 = local_30" identifier = identifier) , (binary_expression "iVar4 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }" { (expression_statement "pvVar6 = local_30;" (assignment_expression "pvVar6 = local_30" identifier = identifier) ;) (if_statement "if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }" if (parenthesized_expression "((param_5 == (void *)0x0) || (DAT_0004ca24 == 1))" ( (binary_expression "(param_5 == (void *)0x0) || (DAT_0004ca24 == 1)" (parenthesized_expression "(param_5 == (void *)0x0)" ( (binary_expression "param_5 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(DAT_0004ca24 == 1)" ( (binary_expression "DAT_0004ca24 == 1" identifier == number_literal) ))) )) (compound_statement "{\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }" { (if_statement "if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }" if (parenthesized_expression "(DAT_0004ca25 == 0)" ( (binary_expression "DAT_0004ca25 == 0" identifier == number_literal) )) (compound_statement "{\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }" { (if_statement "if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }" if (parenthesized_expression "(DAT_0004ca24 != 0)" ( (binary_expression "DAT_0004ca24 != 0" identifier != number_literal) )) (compound_statement "{\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }" { (expression_statement "pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);" (assignment_expression "pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30)" identifier = (call_expression "memrchr(local_30,iVar9,iVar3 - (int)local_30)" identifier (argument_list "(local_30,iVar9,iVar3 - (int)local_30)" ( identifier , identifier , (binary_expression "iVar3 - (int)local_30" identifier - (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }" { (expression_statement "pvVar6 = (void *)((int)pvVar2 + 1);" (assignment_expression "pvVar6 = (void *)((int)pvVar2 + 1)" identifier = (cast_expression "(void *)((int)pvVar2 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 1)" ( (binary_expression "(int)pvVar2 + 1" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" identifier = identifier) ;) })) (expression_statement "iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);" (assignment_expression "iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8)" identifier = (call_expression "FUN_0001ecb0(pvVar6,iVar3,pvVar8)" identifier (argument_list "(pvVar6,iVar3,pvVar8)" ( identifier , identifier , identifier )))) ;) (while_statement "while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }" while (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }" { (expression_statement "iVar4 = iVar3 + iVar10;" (assignment_expression "iVar4 = iVar3 + iVar10" identifier = (binary_expression "iVar3 + iVar10" identifier + identifier)) ;) (expression_statement "iVar5 = FUN_0001eca0(iVar4,pvVar8);" (assignment_expression "iVar5 = FUN_0001eca0(iVar4,pvVar8)" identifier = (call_expression "FUN_0001eca0(iVar4,pvVar8)" identifier (argument_list "(iVar4,pvVar8)" ( identifier , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }" { (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" identifier = (binary_expression "iVar3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_5 != (void *)0x0) goto LAB_00019207;" if (parenthesized_expression "(param_5 != (void *)0x0)" ( (binary_expression "param_5 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00019207;" goto statement_identifier ;)) (goto_statement "goto LAB_0001925e;" goto statement_identifier ;) })) (if_statement "if (iVar10 == 0) break;" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);" (assignment_expression "iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1)" identifier = (call_expression "FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1)" identifier (argument_list "(uVar1,iVar3,iVar10 + -1,local_2c,1)" ( identifier , identifier , (binary_expression "iVar10 + -1" identifier + number_literal) , identifier , number_literal )))) ;) (expression_statement "iVar10 = local_24;" (assignment_expression "iVar10 = local_24" identifier = identifier) ;) })) (expression_statement "iVar10 = FUN_0001ec80(iVar3,pvVar8);" (assignment_expression "iVar10 = FUN_0001ec80(iVar3,pvVar8)" identifier = (call_expression "FUN_0001ec80(iVar3,pvVar8)" identifier (argument_list "(iVar3,pvVar8)" ( identifier , identifier )))) ;) (expression_statement "local_30 = (void *)(iVar3 + iVar10);" (assignment_expression "local_30 = (void *)(iVar3 + iVar10)" identifier = (cast_expression "(void *)(iVar3 + iVar10)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar10)" ( (binary_expression "iVar3 + iVar10" identifier + identifier) )))) ;) (expression_statement "pvVar6 = (void *)((int)local_30 + 1);" (assignment_expression "pvVar6 = (void *)((int)local_30 + 1)" identifier = (cast_expression "(void *)((int)local_30 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + 1)" ( (binary_expression "(int)local_30 + 1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (goto_statement "goto LAB_0001910c;" goto statement_identifier ;) })) (expression_statement "iVar4 = iVar3 + iVar10;" (assignment_expression "iVar4 = iVar3 + iVar10" identifier = (binary_expression "iVar3 + iVar10" identifier + identifier)) ;) (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" identifier = (binary_expression "iVar3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (labeled_statement "LAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);" statement_identifier : (expression_statement "iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);" (assignment_expression "iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4)" identifier = (call_expression "FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4)" identifier (argument_list "(iVar4,iVar9,(int)pvVar8 - iVar4)" ( identifier , identifier , (binary_expression "(int)pvVar8 - iVar4" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;)) (if_statement "if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n              pvVar8 = (void *)(iVar3 + 1);\n            }" { (expression_statement "pvVar8 = (void *)(iVar3 + 1);" (assignment_expression "pvVar8 = (void *)(iVar3 + 1)" identifier = (cast_expression "(void *)(iVar3 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )))) ;) })) (expression_statement "pvVar6 = memrchr(param_2,iVar9,__n);" (assignment_expression "pvVar6 = memrchr(param_2,iVar9,__n)" identifier = (call_expression "memrchr(param_2,iVar9,__n)" identifier (argument_list "(param_2,iVar9,__n)" ( identifier , identifier , identifier )))) ;) (if_statement "if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }" if (parenthesized_expression "(pvVar6 == (void *)0x0)" ( (binary_expression "pvVar6 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              __n = 0;\n            }" { (expression_statement "__n = 0;" (assignment_expression "__n = 0" identifier = number_literal) ;) }) (else_clause "else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }" else (compound_statement "{\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }" { (expression_statement "__n = ((int)pvVar6 + 1) - (int)param_2;" (assignment_expression "__n = ((int)pvVar6 + 1) - (int)param_2" identifier = (binary_expression "((int)pvVar6 + 1) - (int)param_2" (parenthesized_expression "((int)pvVar6 + 1)" ( (binary_expression "(int)pvVar6 + 1" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_2 = (void *)((int)pvVar6 + 1);" (assignment_expression "param_2 = (void *)((int)pvVar6 + 1)" identifier = (cast_expression "(void *)((int)pvVar6 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 1)" ( (binary_expression "(int)pvVar6 + 1" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }))) (expression_statement "iVar10 = (int)pvVar8 - (int)param_2;" (assignment_expression "iVar10 = (int)pvVar8 - (int)param_2" identifier = (binary_expression "(int)pvVar8 - (int)param_2" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }" else (compound_statement "{\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }" { (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" identifier = (binary_expression "iVar3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;" (assignment_expression "iVar10 = (uint)(param_5 == (void *)0x0) + iVar10" identifier = (binary_expression "(uint)(param_5 == (void *)0x0) + iVar10" (call_expression "(uint)(param_5 == (void *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_5 == (void *)0x0)" ( (binary_expression "param_5 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) + identifier)) ;) }))) }) (else_clause "else {\n          __n = iVar3 - (int)param_2;\n        }" else (compound_statement "{\n          __n = iVar3 - (int)param_2;\n        }" { (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" identifier = (binary_expression "iVar3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (labeled_statement "LAB_00019207:\n        *param_4 = iVar10;" statement_identifier : (expression_statement "*param_4 = iVar10;" (assignment_expression "*param_4 = iVar10" (pointer_expression "*param_4" * identifier) = identifier) ;)) (goto_statement "goto LAB_0001920d;" goto statement_identifier ;) })) (labeled_statement "LAB_0001910c:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(pvVar6 <= pvVar8)" ( (binary_expression "pvVar6 <= pvVar8" identifier <= identifier) )) ;) })) (expression_statement "__n = 0xffffffff;" (assignment_expression "__n = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_0001920d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return __n;\n  }" { (return_statement "return __n;" return identifier ;) }))) (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ LIT) )) & IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) | IDENT) | IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT )))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) + IDENT)) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement ;)) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "size_t FUN_00018fa0(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)\n\n{\n  undefined4 uVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  byte bVar7;\n  size_t __n;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  byte local_4d;\n  void *local_30;\n  int local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x18fa9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *param_1;\n  if (DAT_0004ca25 == 0) {\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }\n  else {\n    bVar7 = 0;\n    local_4d = 0;\n  }\n  pvVar6 = param_2;\n  if (param_5 != (void *)0x0) {\n    pvVar6 = param_5;\n  }\n  pvVar8 = (void *)((int)param_2 + param_3);\n  local_30 = pvVar6;\n  if (pvVar6 <= pvVar8) {\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }\n  __n = 0xffffffff;\nLAB_0001920d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }\n                    \n  FUN_00038830();\n}" (primitive_type "size_t") (function_declarator "FUN_00018fa0(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)" (identifier "FUN_00018fa0") (parameter_list "(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "void *param_5" (primitive_type "void") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  byte bVar7;\n  size_t __n;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  byte local_4d;\n  void *local_30;\n  int local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x18fa9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *param_1;\n  if (DAT_0004ca25 == 0) {\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }\n  else {\n    bVar7 = 0;\n    local_4d = 0;\n  }\n  pvVar6 = param_2;\n  if (param_5 != (void *)0x0) {\n    pvVar6 = param_5;\n  }\n  pvVar8 = (void *)((int)param_2 + param_3);\n  local_30 = pvVar6;\n  if (pvVar6 <= pvVar8) {\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }\n  __n = 0xffffffff;\nLAB_0001920d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }\n                    \n  FUN_00038830();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "void *pvVar6;" (primitive_type "void") (pointer_declarator "*pvVar6" (* "*") (identifier "pvVar6")) (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "void *pvVar8;" (primitive_type "void") (pointer_declarator "*pvVar8" (* "*") (identifier "pvVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte local_4d;" (type_identifier "byte") (identifier "local_4d") (; ";")) (declaration "void *local_30;" (primitive_type "void") (pointer_declarator "*local_30" (* "*") (identifier "local_30")) (; ";")) (declaration "int local_2c [2];" (primitive_type "int") (array_declarator "local_2c [2]" (identifier "local_2c") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x18fa9;" (assignment_expression "uStack_14 = 0x18fa9" (identifier "uStack_14") (= "=") (number_literal "0x18fa9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (DAT_0004ca25 == 0) {\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }\n  else {\n    bVar7 = 0;\n    local_4d = 0;\n  }" (if "if") (parenthesized_expression "(DAT_0004ca25 == 0)" (( "(") (binary_expression "DAT_0004ca25 == 0" (identifier "DAT_0004ca25") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;\n    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;\n  }" ({ "{") (expression_statement "local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;" (assignment_expression "local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520" (identifier "local_4d") (= "=") (binary_expression "(DAT_0004c521 ^ 1) & DAT_0004c520" (parenthesized_expression "(DAT_0004c521 ^ 1)" (( "(") (binary_expression "DAT_0004c521 ^ 1" (identifier "DAT_0004c521") (^ "^") (number_literal "1")) () ")")) (& "&") (identifier "DAT_0004c520"))) (; ";")) (expression_statement "bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;" (assignment_expression "bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24" (identifier "bVar7") (= "=") (binary_expression "param_5 != (void *)0x0 | local_4d | DAT_0004ca24" (binary_expression "param_5 != (void *)0x0 | local_4d" (binary_expression "param_5 != (void *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (| "|") (identifier "local_4d")) (| "|") (identifier "DAT_0004ca24"))) (; ";")) (} "}")) (else_clause "else {\n    bVar7 = 0;\n    local_4d = 0;\n  }" (else "else") (compound_statement "{\n    bVar7 = 0;\n    local_4d = 0;\n  }" ({ "{") (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" (identifier "bVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_4d = 0;" (assignment_expression "local_4d = 0" (identifier "local_4d") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "pvVar6 = param_2;" (assignment_expression "pvVar6 = param_2" (identifier "pvVar6") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_5 != (void *)0x0) {\n    pvVar6 = param_5;\n  }" (if "if") (parenthesized_expression "(param_5 != (void *)0x0)" (( "(") (binary_expression "param_5 != (void *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pvVar6 = param_5;\n  }" ({ "{") (expression_statement "pvVar6 = param_5;" (assignment_expression "pvVar6 = param_5" (identifier "pvVar6") (= "=") (identifier "param_5")) (; ";")) (} "}"))) (expression_statement "pvVar8 = (void *)((int)param_2 + param_3);" (assignment_expression "pvVar8 = (void *)((int)param_2 + param_3)" (identifier "pvVar8") (= "=") (cast_expression "(void *)((int)param_2 + param_3)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + param_3)" (( "(") (binary_expression "(int)param_2 + param_3" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" (identifier "local_30") (= "=") (identifier "pvVar6")) (; ";")) (if_statement "if (pvVar6 <= pvVar8) {\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }" (if "if") (parenthesized_expression "(pvVar6 <= pvVar8)" (( "(") (binary_expression "pvVar6 <= pvVar8" (identifier "pvVar6") (<= "<=") (identifier "pvVar8")) () ")")) (compound_statement "{\n    iVar9 = (int)DAT_0004c500;\n    do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);\n  }" ({ "{") (expression_statement "iVar9 = (int)DAT_0004c500;" (assignment_expression "iVar9 = (int)DAT_0004c500" (identifier "iVar9") (= "=") (cast_expression "(int)DAT_0004c500" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_0004c500"))) (; ";")) (do_statement "do {\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    } while (pvVar6 <= pvVar8);" (do "do") (compound_statement "{\n      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);\n      if (iVar3 < 0) break;\n      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;\n      if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }\n      iVar3 = (int)pvVar6 + iVar3;\n      if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }\nLAB_0001910c:\n    }" ({ "{") (expression_statement "iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);" (assignment_expression "iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7)" (identifier "iVar3") (= "=") (call_expression "FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7)" (identifier "FUN_0001dec0") (argument_list "(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,\n                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7)" (( "(") (identifier "uVar1") (, ",") (binary_expression "(int)pvVar6 - (uint)DAT_0004ca25" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (- "-") (cast_expression "(uint)DAT_0004ca25" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "DAT_0004ca25"))) (, ",") (binary_expression "(int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6)" (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8")) (+ "+") (parenthesized_expression "((uint)DAT_0004ca25 - (int)pvVar6)" (( "(") (binary_expression "(uint)DAT_0004ca25 - (int)pvVar6" (cast_expression "(uint)DAT_0004ca25" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "DAT_0004ca25")) (- "-") (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6"))) () ")"))) (, ",") (identifier "local_2c") (, ",") (identifier "bVar7") () ")")))) (; ";")) (if_statement "if (iVar3 < 0) break;" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar10 = local_24 + (uint)DAT_0004ca25 * -2;" (assignment_expression "iVar10 = local_24 + (uint)DAT_0004ca25 * -2" (identifier "iVar10") (= "=") (binary_expression "local_24 + (uint)DAT_0004ca25 * -2" (identifier "local_24") (+ "+") (binary_expression "(uint)DAT_0004ca25 * -2" (cast_expression "(uint)DAT_0004ca25" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "DAT_0004ca25")) (* "*") (number_literal "-2")))) (; ";")) (if_statement "if ((int)param_1[1] <= local_2c[0]) {\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }" (if "if") (parenthesized_expression "((int)param_1[1] <= local_2c[0])" (( "(") (binary_expression "(int)param_1[1] <= local_2c[0]" (cast_expression "(int)param_1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (<= "<=") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]"))) () ")")) (compound_statement "{\n        iVar9 = param_1[4];\n        if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }\n        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);\n        goto LAB_0001920d;\n      }" ({ "{") (expression_statement "iVar9 = param_1[4];" (assignment_expression "iVar9 = param_1[4]" (identifier "iVar9") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (if_statement "if (iVar9 == 0) {\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_00018a90(param_1 + 2,param_1 + 3);\n          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);\n          param_1[4] = iVar9;\n        }" ({ "{") (expression_statement "FUN_00018a90(param_1 + 2,param_1 + 3);" (call_expression "FUN_00018a90(param_1 + 2,param_1 + 3)" (identifier "FUN_00018a90") (argument_list "(param_1 + 2,param_1 + 3)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (, ",") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))) (; ";")) (expression_statement "iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);" (assignment_expression "iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46)" (identifier "iVar9") (= "=") (call_expression "FUN_00014450(param_1[2],param_1[3],0x10a46)" (identifier "FUN_00014450") (argument_list "(param_1[2],param_1[3],0x10a46)" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (, ",") (number_literal "0x10a46") () ")")))) (; ";")) (expression_statement "param_1[4] = iVar9;" (assignment_expression "param_1[4] = iVar9" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar9")) (; ";")) (} "}"))) (expression_statement "__n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);" (assignment_expression "__n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5)" (identifier "__n") (= "=") (call_expression "FUN_00014a20(iVar9,param_2,param_3,param_4,param_5)" (identifier "FUN_00014a20") (argument_list "(iVar9,param_2,param_3,param_4,param_5)" (( "(") (identifier "iVar9") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (goto_statement "goto LAB_0001920d;" (goto "goto") (statement_identifier "LAB_0001920d") (; ";")) (} "}"))) (expression_statement "iVar3 = (int)pvVar6 + iVar3;" (assignment_expression "iVar3 = (int)pvVar6 + iVar3" (identifier "iVar3") (= "=") (binary_expression "(int)pvVar6 + iVar3" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (identifier "iVar3"))) (; ";")) (if_statement "if ((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }" (if "if") (parenthesized_expression "((local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0))" (( "(") (binary_expression "(local_4d == 0) ||\n         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)" (parenthesized_expression "(local_4d == 0)" (( "(") (binary_expression "local_4d == 0" (identifier "local_4d") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)" (( "(") (comma_expression "iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0" (assignment_expression "iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8)" (identifier "iVar4") (= "=") (call_expression "FUN_0001eab0(&local_30,iVar3,pvVar8)" (identifier "FUN_0001eab0") (argument_list "(&local_30,iVar3,pvVar8)" (( "(") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (identifier "iVar3") (, ",") (identifier "pvVar8") () ")")))) (, ",") (comma_expression "pvVar6 = local_30, iVar4 == 0" (assignment_expression "pvVar6 = local_30" (identifier "pvVar6") (= "=") (identifier "local_30")) (, ",") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n        pvVar6 = local_30;\n        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }\nLAB_00019207:\n        *param_4 = iVar10;\n        goto LAB_0001920d;\n      }" ({ "{") (expression_statement "pvVar6 = local_30;" (assignment_expression "pvVar6 = local_30" (identifier "pvVar6") (= "=") (identifier "local_30")) (; ";")) (if_statement "if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }\n        else {\n          __n = iVar3 - (int)param_2;\n        }" (if "if") (parenthesized_expression "((param_5 == (void *)0x0) || (DAT_0004ca24 == 1))" (( "(") (binary_expression "(param_5 == (void *)0x0) || (DAT_0004ca24 == 1)" (parenthesized_expression "(param_5 == (void *)0x0)" (( "(") (binary_expression "param_5 == (void *)0x0" (identifier "param_5") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(DAT_0004ca24 == 1)" (( "(") (binary_expression "DAT_0004ca24 == 1" (identifier "DAT_0004ca24") (== "==") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n          if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }\n        }" ({ "{") (if_statement "if (DAT_0004ca25 == 0) {\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }\n          else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }" (if "if") (parenthesized_expression "(DAT_0004ca25 == 0)" (( "(") (binary_expression "DAT_0004ca25 == 0" (identifier "DAT_0004ca25") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }\n            iVar4 = iVar3 + iVar10;\n            __n = iVar3 - (int)param_2;\nLAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);\n            if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }\n            pvVar6 = memrchr(param_2,iVar9,__n);\n            if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }\n            iVar10 = (int)pvVar8 - (int)param_2;\n          }" ({ "{") (if_statement "if (DAT_0004ca24 != 0) {\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }" (if "if") (parenthesized_expression "(DAT_0004ca24 != 0)" (( "(") (binary_expression "DAT_0004ca24 != 0" (identifier "DAT_0004ca24") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);\n              if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }\n              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);\n              while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }\n              iVar10 = FUN_0001ec80(iVar3,pvVar8);\n              local_30 = (void *)(iVar3 + iVar10);\n              pvVar6 = (void *)((int)local_30 + 1);\n              goto LAB_0001910c;\n            }" ({ "{") (expression_statement "pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);" (assignment_expression "pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30)" (identifier "pvVar2") (= "=") (call_expression "memrchr(local_30,iVar9,iVar3 - (int)local_30)" (identifier "memrchr") (argument_list "(local_30,iVar9,iVar3 - (int)local_30)" (( "(") (identifier "local_30") (, ",") (identifier "iVar9") (, ",") (binary_expression "iVar3 - (int)local_30" (identifier "iVar3") (- "-") (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30"))) () ")")))) (; ";")) (if_statement "if (pvVar2 != (void *)0x0) {\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }" (if "if") (parenthesized_expression "(pvVar2 != (void *)0x0)" (( "(") (binary_expression "pvVar2 != (void *)0x0" (identifier "pvVar2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                pvVar6 = (void *)((int)pvVar2 + 1);\n                local_30 = pvVar6;\n              }" ({ "{") (expression_statement "pvVar6 = (void *)((int)pvVar2 + 1);" (assignment_expression "pvVar6 = (void *)((int)pvVar2 + 1)" (identifier "pvVar6") (= "=") (cast_expression "(void *)((int)pvVar2 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar2 + 1)" (( "(") (binary_expression "(int)pvVar2 + 1" (cast_expression "(int)pvVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar2")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "local_30 = pvVar6;" (assignment_expression "local_30 = pvVar6" (identifier "local_30") (= "=") (identifier "pvVar6")) (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);" (assignment_expression "iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8)" (identifier "iVar4") (= "=") (call_expression "FUN_0001ecb0(pvVar6,iVar3,pvVar8)" (identifier "FUN_0001ecb0") (argument_list "(pvVar6,iVar3,pvVar8)" (( "(") (identifier "pvVar6") (, ",") (identifier "iVar3") (, ",") (identifier "pvVar8") () ")")))) (; ";")) (while_statement "while (iVar4 == 0) {\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }" (while "while") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                iVar4 = iVar3 + iVar10;\n                iVar5 = FUN_0001eca0(iVar4,pvVar8);\n                if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }\n                if (iVar10 == 0) break;\n                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);\n                iVar10 = local_24;\n              }" ({ "{") (expression_statement "iVar4 = iVar3 + iVar10;" (assignment_expression "iVar4 = iVar3 + iVar10" (identifier "iVar4") (= "=") (binary_expression "iVar3 + iVar10" (identifier "iVar3") (+ "+") (identifier "iVar10"))) (; ";")) (expression_statement "iVar5 = FUN_0001eca0(iVar4,pvVar8);" (assignment_expression "iVar5 = FUN_0001eca0(iVar4,pvVar8)" (identifier "iVar5") (= "=") (call_expression "FUN_0001eca0(iVar4,pvVar8)" (identifier "FUN_0001eca0") (argument_list "(iVar4,pvVar8)" (( "(") (identifier "iVar4") (, ",") (identifier "pvVar8") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                  __n = iVar3 - (int)param_2;\n                  if (param_5 != (void *)0x0) goto LAB_00019207;\n                  goto LAB_0001925e;\n                }" ({ "{") (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" (identifier "__n") (= "=") (binary_expression "iVar3 - (int)param_2" (identifier "iVar3") (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (if_statement "if (param_5 != (void *)0x0) goto LAB_00019207;" (if "if") (parenthesized_expression "(param_5 != (void *)0x0)" (( "(") (binary_expression "param_5 != (void *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00019207;" (goto "goto") (statement_identifier "LAB_00019207") (; ";"))) (goto_statement "goto LAB_0001925e;" (goto "goto") (statement_identifier "LAB_0001925e") (; ";")) (} "}"))) (if_statement "if (iVar10 == 0) break;" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);" (assignment_expression "iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1)" (identifier "iVar4") (= "=") (call_expression "FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1)" (identifier "FUN_0001dec0") (argument_list "(uVar1,iVar3,iVar10 + -1,local_2c,1)" (( "(") (identifier "uVar1") (, ",") (identifier "iVar3") (, ",") (binary_expression "iVar10 + -1" (identifier "iVar10") (+ "+") (number_literal "-1")) (, ",") (identifier "local_2c") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "iVar10 = local_24;" (assignment_expression "iVar10 = local_24" (identifier "iVar10") (= "=") (identifier "local_24")) (; ";")) (} "}"))) (expression_statement "iVar10 = FUN_0001ec80(iVar3,pvVar8);" (assignment_expression "iVar10 = FUN_0001ec80(iVar3,pvVar8)" (identifier "iVar10") (= "=") (call_expression "FUN_0001ec80(iVar3,pvVar8)" (identifier "FUN_0001ec80") (argument_list "(iVar3,pvVar8)" (( "(") (identifier "iVar3") (, ",") (identifier "pvVar8") () ")")))) (; ";")) (expression_statement "local_30 = (void *)(iVar3 + iVar10);" (assignment_expression "local_30 = (void *)(iVar3 + iVar10)" (identifier "local_30") (= "=") (cast_expression "(void *)(iVar3 + iVar10)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar10)" (( "(") (binary_expression "iVar3 + iVar10" (identifier "iVar3") (+ "+") (identifier "iVar10")) () ")")))) (; ";")) (expression_statement "pvVar6 = (void *)((int)local_30 + 1);" (assignment_expression "pvVar6 = (void *)((int)local_30 + 1)" (identifier "pvVar6") (= "=") (cast_expression "(void *)((int)local_30 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_30 + 1)" (( "(") (binary_expression "(int)local_30 + 1" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (goto_statement "goto LAB_0001910c;" (goto "goto") (statement_identifier "LAB_0001910c") (; ";")) (} "}"))) (expression_statement "iVar4 = iVar3 + iVar10;" (assignment_expression "iVar4 = iVar3 + iVar10" (identifier "iVar4") (= "=") (binary_expression "iVar3 + iVar10" (identifier "iVar3") (+ "+") (identifier "iVar10"))) (; ";")) (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" (identifier "__n") (= "=") (binary_expression "iVar3 - (int)param_2" (identifier "iVar3") (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (labeled_statement "LAB_0001925e:\n            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);" (statement_identifier "LAB_0001925e") (: ":") (expression_statement "iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);" (assignment_expression "iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4)" (identifier "iVar3") (= "=") (call_expression "FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4)" (identifier "FUN_00036f10") (argument_list "(iVar4,iVar9,(int)pvVar8 - iVar4)" (( "(") (identifier "iVar4") (, ",") (identifier "iVar9") (, ",") (binary_expression "(int)pvVar8 - iVar4" (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8")) (- "-") (identifier "iVar4")) () ")")))) (; ";"))) (if_statement "if (iVar3 != 0) {\n              pvVar8 = (void *)(iVar3 + 1);\n            }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              pvVar8 = (void *)(iVar3 + 1);\n            }" ({ "{") (expression_statement "pvVar8 = (void *)(iVar3 + 1);" (assignment_expression "pvVar8 = (void *)(iVar3 + 1)" (identifier "pvVar8") (= "=") (cast_expression "(void *)(iVar3 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 1)" (( "(") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}"))) (expression_statement "pvVar6 = memrchr(param_2,iVar9,__n);" (assignment_expression "pvVar6 = memrchr(param_2,iVar9,__n)" (identifier "pvVar6") (= "=") (call_expression "memrchr(param_2,iVar9,__n)" (identifier "memrchr") (argument_list "(param_2,iVar9,__n)" (( "(") (identifier "param_2") (, ",") (identifier "iVar9") (, ",") (identifier "__n") () ")")))) (; ";")) (if_statement "if (pvVar6 == (void *)0x0) {\n              __n = 0;\n            }\n            else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }" (if "if") (parenthesized_expression "(pvVar6 == (void *)0x0)" (( "(") (binary_expression "pvVar6 == (void *)0x0" (identifier "pvVar6") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              __n = 0;\n            }" ({ "{") (expression_statement "__n = 0;" (assignment_expression "__n = 0" (identifier "__n") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }" (else "else") (compound_statement "{\n              __n = ((int)pvVar6 + 1) - (int)param_2;\n              param_2 = (void *)((int)pvVar6 + 1);\n            }" ({ "{") (expression_statement "__n = ((int)pvVar6 + 1) - (int)param_2;" (assignment_expression "__n = ((int)pvVar6 + 1) - (int)param_2" (identifier "__n") (= "=") (binary_expression "((int)pvVar6 + 1) - (int)param_2" (parenthesized_expression "((int)pvVar6 + 1)" (( "(") (binary_expression "(int)pvVar6 + 1" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "1")) () ")")) (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (expression_statement "param_2 = (void *)((int)pvVar6 + 1);" (assignment_expression "param_2 = (void *)((int)pvVar6 + 1)" (identifier "param_2") (= "=") (cast_expression "(void *)((int)pvVar6 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + 1)" (( "(") (binary_expression "(int)pvVar6 + 1" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")))) (expression_statement "iVar10 = (int)pvVar8 - (int)param_2;" (assignment_expression "iVar10 = (int)pvVar8 - (int)param_2" (identifier "iVar10") (= "=") (binary_expression "(int)pvVar8 - (int)param_2" (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8")) (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (} "}")) (else_clause "else {\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }" (else "else") (compound_statement "{\n            __n = iVar3 - (int)param_2;\n            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;\n          }" ({ "{") (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" (identifier "__n") (= "=") (binary_expression "iVar3 - (int)param_2" (identifier "iVar3") (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (expression_statement "iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;" (assignment_expression "iVar10 = (uint)(param_5 == (void *)0x0) + iVar10" (identifier "iVar10") (= "=") (binary_expression "(uint)(param_5 == (void *)0x0) + iVar10" (call_expression "(uint)(param_5 == (void *)0x0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_5 == (void *)0x0)" (( "(") (binary_expression "param_5 == (void *)0x0" (identifier "param_5") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) (+ "+") (identifier "iVar10"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n          __n = iVar3 - (int)param_2;\n        }" (else "else") (compound_statement "{\n          __n = iVar3 - (int)param_2;\n        }" ({ "{") (expression_statement "__n = iVar3 - (int)param_2;" (assignment_expression "__n = iVar3 - (int)param_2" (identifier "__n") (= "=") (binary_expression "iVar3 - (int)param_2" (identifier "iVar3") (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (} "}")))) (labeled_statement "LAB_00019207:\n        *param_4 = iVar10;" (statement_identifier "LAB_00019207") (: ":") (expression_statement "*param_4 = iVar10;" (assignment_expression "*param_4 = iVar10" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar10")) (; ";"))) (goto_statement "goto LAB_0001920d;" (goto "goto") (statement_identifier "LAB_0001920d") (; ";")) (} "}"))) (labeled_statement "LAB_0001910c:" (statement_identifier "LAB_0001910c") (: ":") (expression_statement "" (; ""))) (} "}")) (while "while") (parenthesized_expression "(pvVar6 <= pvVar8)" (( "(") (binary_expression "pvVar6 <= pvVar8" (identifier "pvVar6") (<= "<=") (identifier "pvVar8")) () ")")) (; ";")) (} "}"))) (expression_statement "__n = 0xffffffff;" (assignment_expression "__n = 0xffffffff" (identifier "__n") (= "=") (number_literal "0xffffffff")) (; ";")) (labeled_statement "LAB_0001920d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }" (statement_identifier "LAB_0001920d") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __n;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (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    return __n;\n  }" ({ "{") (return_statement "return __n;" (return "return") (identifier "__n") (; ";")) (} "}")))) (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" (identifier "FUN_00038830") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

size_t function_1(void *vcp,char *var_4,size_t var_5,size_t *match_size,char *var_2)

{
  int var_26;
  type_1 kwset;
  type_2 _Var2;
  type_2 var_15;
  type_2 var_14;
  void *var_10;
  ptrdiff_t var_9;
  char *var_6;
  type_2 longest;
  char *var_21;
  size_t var_20;
  char *var_7;
  int __c;
  ptrdiff_t apVar9 [1];
  int var_1;
  char *var_24;
  type_3 type_3;
  
  var_14 = var_17;
  var_15 = localeinfo.using_utf8;
  _Var2 = localeinfo.multibyte;
  var_26 = *(int *)(var_1 + 0x14);
                    /* WARNING: Load size is inaccurate */
  kwset = *vcp;
  if (var_17) {
    longest = false;
  }
  else {
    longest = var_2 != (char *)0x0 ||
              (!localeinfo.using_utf8 && localeinfo.multibyte || var_3);
  }
  var_6 = var_4;
  if (var_2 != (char *)0x0) {
    var_6 = var_2;
  }
  var_7 = var_4 + var_5;
  var_24 = var_6;
  if (var_6 <= var_7) {
    __c = (int)eolbyte;
    do {
      var_9 = var_8(kwset,var_6 + -(type_4)var_17,
                      (ptrdiff_t)(var_7 + ((type_4)var_17 - (int)var_6)),&type_3,longest);
      if (var_9 < 0) break;
      apVar9[0] = type_3.var_5[0] + (type_4)var_17 * -2;
      if (*(int *)((int)vcp + 4) <= type_3.index) {
        var_10 = *(void **)((int)vcp + 0x10);
        if (var_10 == (void *)0x0) {
          var_11((char **)((int)vcp + 8),(size_t *)((int)vcp + 0xc));
          var_10 = var_12(*(char **)((int)vcp + 8),*(size_t *)((int)vcp + 0xc),0x10a46);
          *(void **)((int)vcp + 0x10) = var_10;
        }
        var_20 = var_13(var_10,var_4,var_5,match_size,var_2);
        goto LAB_0001920d;
      }
      var_21 = var_6 + var_9;
      if ((var_14 || (var_15 || !_Var2)) ||
         (var_9 = var_16(&var_24,var_21,var_7), var_6 = var_24, var_9 == 0)) {
        var_6 = var_24;
        if ((var_2 == (char *)0x0) || (var_3 == true)) {
          if (var_17 == false) {
            if (var_3 != false) {
              var_10 = var_18(var_24,__c,(int)var_21 - (int)var_24);
              if (var_10 != (void *)0x0) {
                var_6 = (char *)((int)var_10 + 1);
                var_24 = var_6;
              }
              var_20 = var_19(var_6,var_21,var_7);
              while (var_20 == 0) {
                var_6 = var_21 + apVar9[0];
                var_20 = var_22(var_6,var_7);
                if (var_20 == 0) {
                  var_20 = (int)var_21 - (int)var_4;
                  if (var_2 != (char *)0x0) goto LAB_00019207;
                  goto LAB_0001925e;
                }
                if (apVar9[0] == 0) break;
                var_20 = var_8(kwset,var_21,apVar9[0] - 1,&type_3,true);
                apVar9[0] = type_3.var_5[0];
              }
              var_20 = var_23(var_21,var_7);
              var_24 = var_21 + var_20;
              var_6 = var_24 + 1;
              goto LAB_0001910c;
            }
            var_6 = var_21 + apVar9[0];
            var_20 = (int)var_21 - (int)var_4;
LAB_0001925e:
            var_10 = var_25(var_6,__c,(int)var_7 - (int)var_6);
            if (var_10 != (void *)0x0) {
              var_7 = (char *)((int)var_10 + 1);
            }
            var_10 = var_18(var_4,__c,var_20);
            if (var_10 == (void *)0x0) {
              var_20 = 0;
            }
            else {
              var_20 = ((int)var_10 + 1) - (int)var_4;
              var_4 = (char *)((int)var_10 + 1);
            }
            apVar9[0] = (int)var_7 - (int)var_4;
          }
          else {
            var_20 = (int)var_21 - (int)var_4;
            apVar9[0] = (type_4)(var_2 == (char *)0x0) + apVar9[0];
          }
        }
        else {
          var_20 = (int)var_21 - (int)var_4;
        }
LAB_00019207:
        *match_size = apVar9[0];
        goto LAB_0001920d;
      }
LAB_0001910c:
    } while (var_6 <= var_7);
  }
  var_20 = 0xffffffff;
LAB_0001920d:
  if (var_26 == *(int *)(var_1 + 0x14)) {
    return var_20;
  }
                    /* WARNING: Subroutine does not return */
  var_27();
}


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

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

size_t MASKED(undefined4 *param_1,void *param_2,int param_3,int *param_4,void *param_5)

{
  undefined4 uVar1;
  void *pvVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  void *pvVar6;
  byte bVar7;
  size_t __n;
  void *pvVar8;
  int iVar9;
  int iVar10;
  int in_GS_OFFSET;
  byte local_4d;
  void *local_30;
  int local_2c [2];
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x18fa9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = *param_1;
  if (DAT_0004ca25 == 0) {
    local_4d = (DAT_0004c521 ^ 1) & DAT_0004c520;
    bVar7 = param_5 != (void *)0x0 | local_4d | DAT_0004ca24;
  }
  else {
    bVar7 = 0;
    local_4d = 0;
  }
  pvVar6 = param_2;
  if (param_5 != (void *)0x0) {
    pvVar6 = param_5;
  }
  pvVar8 = (void *)((int)param_2 + param_3);
  local_30 = pvVar6;
  if (pvVar6 <= pvVar8) {
    iVar9 = (int)DAT_0004c500;
    do {
      iVar3 = FUN_0001dec0(uVar1,(int)pvVar6 - (uint)DAT_0004ca25,
                           (int)pvVar8 + ((uint)DAT_0004ca25 - (int)pvVar6),local_2c,bVar7);
      if (iVar3 < 0) break;
      iVar10 = local_24 + (uint)DAT_0004ca25 * -2;
      if ((int)param_1[1] <= local_2c[0]) {
        iVar9 = param_1[4];
        if (iVar9 == 0) {
          FUN_00018a90(param_1 + 2,param_1 + 3);
          iVar9 = FUN_00014450(param_1[2],param_1[3],0x10a46);
          param_1[4] = iVar9;
        }
        __n = FUN_00014a20(iVar9,param_2,param_3,param_4,param_5);
        goto LAB_0001920d;
      }
      iVar3 = (int)pvVar6 + iVar3;
      if ((local_4d == 0) ||
         (iVar4 = FUN_0001eab0(&local_30,iVar3,pvVar8), pvVar6 = local_30, iVar4 == 0)) {
        pvVar6 = local_30;
        if ((param_5 == (void *)0x0) || (DAT_0004ca24 == 1)) {
          if (DAT_0004ca25 == 0) {
            if (DAT_0004ca24 != 0) {
              pvVar2 = memrchr(local_30,iVar9,iVar3 - (int)local_30);
              if (pvVar2 != (void *)0x0) {
                pvVar6 = (void *)((int)pvVar2 + 1);
                local_30 = pvVar6;
              }
              iVar4 = FUN_0001ecb0(pvVar6,iVar3,pvVar8);
              while (iVar4 == 0) {
                iVar4 = iVar3 + iVar10;
                iVar5 = FUN_0001eca0(iVar4,pvVar8);
                if (iVar5 == 0) {
                  __n = iVar3 - (int)param_2;
                  if (param_5 != (void *)0x0) goto LAB_00019207;
                  goto LAB_0001925e;
                }
                if (iVar10 == 0) break;
                iVar4 = FUN_0001dec0(uVar1,iVar3,iVar10 + -1,local_2c,1);
                iVar10 = local_24;
              }
              iVar10 = FUN_0001ec80(iVar3,pvVar8);
              local_30 = (void *)(iVar3 + iVar10);
              pvVar6 = (void *)((int)local_30 + 1);
              goto LAB_0001910c;
            }
            iVar4 = iVar3 + iVar10;
            __n = iVar3 - (int)param_2;
LAB_0001925e:
            iVar3 = FUN_00036f10(iVar4,iVar9,(int)pvVar8 - iVar4);
            if (iVar3 != 0) {
              pvVar8 = (void *)(iVar3 + 1);
            }
            pvVar6 = memrchr(param_2,iVar9,__n);
            if (pvVar6 == (void *)0x0) {
              __n = 0;
            }
            else {
              __n = ((int)pvVar6 + 1) - (int)param_2;
              param_2 = (void *)((int)pvVar6 + 1);
            }
            iVar10 = (int)pvVar8 - (int)param_2;
          }
          else {
            __n = iVar3 - (int)param_2;
            iVar10 = (uint)(param_5 == (void *)0x0) + iVar10;
          }
        }
        else {
          __n = iVar3 - (int)param_2;
        }
LAB_00019207:
        *param_4 = iVar10;
        goto LAB_0001920d;
      }
LAB_0001910c:
    } while (pvVar6 <= pvVar8);
  }
  __n = 0xffffffff;
LAB_0001920d:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return __n;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00038830();
}

