
_Bool knuth_morris_pratt(uchar *haystack,uchar *needle,size_t needle_len,uchar **resultp)

{
  _Bool _Var1;
  uint uVar2;
  void *pvVar3;
  uint extraout_ECX;
  int iVar4;
  char *pcVar5;
  char cVar6;
  uchar **ppuVar7;
  uchar **ppuVar8;
  char *pcVar9;
  int unaff_EDI;
  char *pcVar10;
  int in_GS_OFFSET;
  undefined8 uVar11;
  uchar *local_3c;
  int local_38;
  uint local_34;
  char *local_30 [4];
  int local_20;
  
  uVar11 = __x86_get_pc_thunk_di();
  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);
  pcVar10 = (char *)uVar11;
  local_34 = extraout_ECX;
  local_38 = unaff_EDI + 0x8947;
  local_3c = haystack;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = extraout_ECX * 4;
  ppuVar7 = &local_3c;
  if ((-1 < (int)uVar2) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {
    if (uVar2 < 0xfb1) {
      iVar4 = -(uVar2 + 0x2a & 0xfffffff0);
      ppuVar8 = (uchar **)((int)&local_3c + iVar4);
      ppuVar7 = (uchar **)((int)&local_3c + iVar4);
      pvVar3 = (void *)((int)local_30 + iVar4);
    }
    else {
      local_30[0] = pcVar5;
      pvVar3 = mmalloca(uVar2);
      ppuVar8 = &local_3c;
      ppuVar7 = &local_3c;
      pcVar5 = local_30[0];
    }
    if (pvVar3 != (void *)0x0) {
      iVar4 = 0;
      *(undefined4 *)((int)pvVar3 + 4) = 1;
      if (2 < local_34) {
        local_30[0] = pcVar10;
        uVar2 = 2;
        do {
          cVar6 = pcVar5[iVar4];
          while (pcVar5[uVar2 - 1] != cVar6) {
            if (iVar4 == 0) {
              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;
              iVar4 = 0;
              goto LAB_00016765;
            }
            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);
            cVar6 = pcVar5[iVar4];
          }
          iVar4 = iVar4 + 1;
          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;
LAB_00016765:
          uVar2 = uVar2 + 1;
        } while (local_34 != uVar2);
      }
      uVar2 = 0;
      local_3c[0] = '\0';
      local_3c[1] = '\0';
      local_3c[2] = '\0';
      local_3c[3] = '\0';
      cVar6 = *pcVar10;
      pcVar9 = pcVar10;
      while (cVar6 != '\0') {
        if (pcVar5[uVar2] == cVar6) {
          uVar2 = uVar2 + 1;
          local_30[0] = pcVar9 + 1;
          if (local_34 == uVar2) {
            *(char **)local_3c = pcVar10;
            break;
          }
          cVar6 = pcVar9[1];
          pcVar9 = local_30[0];
        }
        else if (uVar2 == 0) {
          cVar6 = pcVar9[1];
          pcVar10 = pcVar10 + 1;
          uVar2 = 0;
          pcVar9 = pcVar9 + 1;
        }
        else {
          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);
          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);
        }
      }
      *(void **)((int)ppuVar8 + -0x10) = pvVar3;
      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;
      freea(*(void **)((int)ppuVar8 + -0x10));
      _Var1 = true;
      goto LAB_000167ab;
    }
  }
  ppuVar8 = ppuVar7;
  _Var1 = false;
LAB_000167ab:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;
    __stack_chk_fail_local();
  }
  return _Var1;
}



undefined4 FUN_000166b0(undefined4 *param_1)

{
  uint uVar1;
  undefined4 uVar2;
  int iVar3;
  uint extraout_ECX;
  int iVar4;
  char *pcVar5;
  char cVar6;
  undefined4 **ppuVar7;
  undefined4 **ppuVar8;
  char *pcVar9;
  int unaff_EDI;
  char *pcVar10;
  int in_GS_OFFSET;
  undefined8 uVar11;
  undefined4 *local_3c;
  int local_38;
  uint local_34;
  char *local_30 [4];
  int local_20;
  
  uVar11 = FUN_0001826e();
  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);
  pcVar10 = (char *)uVar11;
  local_38 = unaff_EDI + 0x8947;
  local_3c = param_1;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = extraout_ECX * 4;
  ppuVar7 = &local_3c;
  if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {
    local_34 = extraout_ECX;
    if (uVar1 < 0xfb1) {
      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);
      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);
      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);
      iVar3 = (int)local_30 + iVar3;
    }
    else {
      local_30[0] = pcVar5;
      iVar3 = FUN_00018850(uVar1);
      ppuVar8 = &local_3c;
      ppuVar7 = &local_3c;
      pcVar5 = local_30[0];
    }
    if (iVar3 != 0) {
      iVar4 = 0;
      *(undefined4 *)(iVar3 + 4) = 1;
      if (2 < local_34) {
        uVar1 = 2;
        do {
          cVar6 = pcVar5[iVar4];
          while (pcVar5[uVar1 - 1] != cVar6) {
            if (iVar4 == 0) {
              *(uint *)(iVar3 + uVar1 * 4) = uVar1;
              iVar4 = 0;
              goto LAB_00016765;
            }
            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);
            cVar6 = pcVar5[iVar4];
          }
          iVar4 = iVar4 + 1;
          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;
LAB_00016765:
          uVar1 = uVar1 + 1;
          local_30[0] = pcVar10;
        } while (local_34 != uVar1);
      }
      uVar1 = 0;
      *local_3c = 0;
      cVar6 = *pcVar10;
      pcVar9 = pcVar10;
      while (cVar6 != '\0') {
        if (pcVar5[uVar1] == cVar6) {
          local_30[0] = pcVar9 + 1;
          uVar1 = uVar1 + 1;
          if (local_34 == uVar1) {
            *local_3c = pcVar10;
            break;
          }
          cVar6 = pcVar9[1];
          pcVar9 = local_30[0];
        }
        else if (uVar1 == 0) {
          cVar6 = pcVar9[1];
          pcVar10 = pcVar10 + 1;
          uVar1 = 0;
          pcVar9 = pcVar9 + 1;
        }
        else {
          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);
          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);
        }
      }
      *(int *)((int)ppuVar8 + -0x10) = iVar3;
      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;
      FUN_000188a0();
      uVar2 = 1;
      goto LAB_000167ab;
    }
  }
  ppuVar8 = ppuVar7;
  uVar2 = 0;
LAB_000167ab:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;
    FUN_000190c0();
  }
  return uVar2;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x0001826e
ADD EDI,0x8947
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV ESI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x30],ECX
MOV dword ptr [EBP + -0x34],EDI
MOV EDI,EAX
MOV EAX,ECX
MOV dword ptr [EBP + -0x38],ESI
MOV ESI,dword ptr GS:[0x14]
MOV dword ptr [EBP + -0x1c],ESI
XOR ESI,ESI
MOV ESI,ECX
SHR ESI,0x1e
SETNZ CL
SHL EAX,0x2
JS 0x000167e0
MOVZX ECX,CL
TEST ECX,ECX
JNZ 0x000167e0
CMP EAX,0xfb0
JA 0x000167bf
ADD EAX,0x2a
AND EAX,0xfffffff0
SUB ESP,EAX
LEA EAX,[ESP + 0xf]
AND EAX,0xfffffff0
TEST EAX,EAX
JZ 0x000167e0
XOR ECX,ECX
CMP dword ptr [EBP + -0x30],0x2
MOV dword ptr [EAX + 0x4],0x1
MOV ESI,0x2
JBE 0x0001676f
MOV dword ptr [EBP + -0x2c],EDI
MOV EDI,dword ptr [EBP + -0x30]
LEA ESI,[ESI]
NOP
MOVZX EBX,byte ptr [EDX + ESI*0x1 + -0x1]
CMP BL,byte ptr [EDX + ECX*0x1]
JNZ 0x0001675c
JMP 0x00016810
SUB ECX,dword ptr [EAX + ECX*0x4]
CMP byte ptr [EDX + ECX*0x1],BL
JZ 0x00016810
TEST ECX,ECX
JNZ 0x00016750
MOV dword ptr [EAX + ESI*0x4],ESI
XOR ECX,ECX
ADD ESI,0x1
CMP EDI,ESI
JNZ 0x00016740
MOV EDI,dword ptr [EBP + -0x2c]
MOV ESI,dword ptr [EBP + -0x38]
XOR ECX,ECX
MOV dword ptr [ESI],0x0
MOVZX EBX,byte ptr [EDI]
MOV ESI,EDI
NOP
TEST BL,BL
JZ 0x00016797
CMP byte ptr [EDX + ECX*0x1],BL
JZ 0x000167e8
TEST ECX,ECX
JZ 0x00016800
ADD EDI,dword ptr [EAX + ECX*0x4]
SUB ECX,dword ptr [EAX + ECX*0x4]
TEST BL,BL
JNZ 0x00016784
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x34]
PUSH EAX
CALL 0x000188a0
ADD ESP,0x10
MOV EAX,0x1
MOV EDI,dword ptr [EBP + -0x1c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x00016829
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x34]
MOV dword ptr [EBP + -0x2c],EDX
PUSH EAX
CALL 0x00018850
ADD ESP,0x10
MOV EDX,dword ptr [EBP + -0x2c]
TEST EAX,EAX
JNZ 0x0001671e
LEA ESI,[ESI]
XOR EAX,EAX
JMP 0x000167ab
LEA EBX,[ESI + 0x1]
ADD ECX,0x1
MOV dword ptr [EBP + -0x2c],EBX
CMP dword ptr [EBP + -0x30],ECX
JZ 0x0001681f
MOVZX EBX,byte ptr [ESI + 0x1]
MOV ESI,dword ptr [EBP + -0x2c]
JMP 0x00016780
MOVZX EBX,byte ptr [ESI + 0x1]
ADD EDI,0x1
ADD ESI,0x1
JMP 0x00016780
ADD ECX,0x1
MOV EBX,ESI
SUB EBX,ECX
MOV dword ptr [EAX + ESI*0x4],EBX
JMP 0x00016765
MOV ESI,dword ptr [EBP + -0x38]
MOV dword ptr [ESI],EDI
JMP 0x00016797
CALL 0x000190c0
(translation_unit "undefined4 FUN_000166b0(undefined4 *param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint extraout_ECX;\n  int iVar4;\n  char *pcVar5;\n  char cVar6;\n  undefined4 **ppuVar7;\n  undefined4 **ppuVar8;\n  char *pcVar9;\n  int unaff_EDI;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  undefined8 uVar11;\n  undefined4 *local_3c;\n  int local_38;\n  uint local_34;\n  char *local_30 [4];\n  int local_20;\n  \n  uVar11 = FUN_0001826e();\n  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);\n  pcVar10 = (char *)uVar11;\n  local_38 = unaff_EDI + 0x8947;\n  local_3c = param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = extraout_ECX * 4;\n  ppuVar7 = &local_3c;\n  if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }\n  ppuVar8 = ppuVar7;\n  uVar2 = 0;\nLAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_000166b0(undefined4 *param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint extraout_ECX;\n  int iVar4;\n  char *pcVar5;\n  char cVar6;\n  undefined4 **ppuVar7;\n  undefined4 **ppuVar8;\n  char *pcVar9;\n  int unaff_EDI;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  undefined8 uVar11;\n  undefined4 *local_3c;\n  int local_38;\n  uint local_34;\n  char *local_30 [4];\n  int local_20;\n  \n  uVar11 = FUN_0001826e();\n  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);\n  pcVar10 = (char *)uVar11;\n  local_38 = unaff_EDI + 0x8947;\n  local_3c = param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = extraout_ECX * 4;\n  ppuVar7 = &local_3c;\n  if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }\n  ppuVar8 = ppuVar7;\n  uVar2 = 0;\nLAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000166b0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint extraout_ECX;\n  int iVar4;\n  char *pcVar5;\n  char cVar6;\n  undefined4 **ppuVar7;\n  undefined4 **ppuVar8;\n  char *pcVar9;\n  int unaff_EDI;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  undefined8 uVar11;\n  undefined4 *local_3c;\n  int local_38;\n  uint local_34;\n  char *local_30 [4];\n  int local_20;\n  \n  uVar11 = FUN_0001826e();\n  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);\n  pcVar10 = (char *)uVar11;\n  local_38 = unaff_EDI + 0x8947;\n  local_3c = param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = extraout_ECX * 4;\n  ppuVar7 = &local_3c;\n  if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }\n  ppuVar8 = ppuVar7;\n  uVar2 = 0;\nLAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "undefined4 **ppuVar7;" type_identifier (pointer_declarator "**ppuVar7" * (pointer_declarator "*ppuVar7" * identifier)) ;) (declaration "undefined4 **ppuVar8;" type_identifier (pointer_declarator "**ppuVar8" * (pointer_declarator "*ppuVar8" * identifier)) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar11;" type_identifier identifier ;) (declaration "undefined4 *local_3c;" type_identifier (pointer_declarator "*local_3c" * identifier) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "char *local_30 [4];" primitive_type (pointer_declarator "*local_30 [4]" * (array_declarator "local_30 [4]" identifier [ number_literal ])) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar11 = FUN_0001826e();" (assignment_expression "uVar11 = FUN_0001826e()" identifier = (call_expression "FUN_0001826e()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);" (assignment_expression "pcVar5 = (char *)((ulonglong)uVar11 >> 0x20)" identifier = (cast_expression "(char *)((ulonglong)uVar11 >> 0x20)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar11 >> 0x20)" ( (binary_expression "(ulonglong)uVar11 >> 0x20" (cast_expression "(ulonglong)uVar11" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pcVar10 = (char *)uVar11;" (assignment_expression "pcVar10 = (char *)uVar11" identifier = (cast_expression "(char *)uVar11" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_38 = unaff_EDI + 0x8947;" (assignment_expression "local_38 = unaff_EDI + 0x8947" identifier = (binary_expression "unaff_EDI + 0x8947" identifier + number_literal)) ;) (expression_statement "local_3c = param_1;" (assignment_expression "local_3c = param_1" identifier = identifier) ;) (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 = extraout_ECX * 4;" (assignment_expression "uVar1 = extraout_ECX * 4" identifier = (binary_expression "extraout_ECX * 4" identifier * number_literal)) ;) (expression_statement "ppuVar7 = &local_3c;" (assignment_expression "ppuVar7 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) ;) (if_statement "if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }" if (parenthesized_expression "((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0))" ( (binary_expression "(-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)" (parenthesized_expression "(-1 < (int)uVar1)" ( (binary_expression "-1 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)" ( (comma_expression "ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0" (assignment_expression "ppuVar7 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) , (binary_expression "extraout_ECX >> 0x1e == 0" (binary_expression "extraout_ECX >> 0x1e" identifier >> number_literal) == number_literal)) ))) )) (compound_statement "{\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }" { (expression_statement "local_34 = extraout_ECX;" (assignment_expression "local_34 = extraout_ECX" identifier = identifier) ;) (if_statement "if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" if (parenthesized_expression "(uVar1 < 0xfb1)" ( (binary_expression "uVar1 < 0xfb1" identifier < number_literal) )) (compound_statement "{\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }" { (expression_statement "iVar3 = -(uVar1 + 0x2a & 0xfffffff0);" (assignment_expression "iVar3 = -(uVar1 + 0x2a & 0xfffffff0)" identifier = (unary_expression "-(uVar1 + 0x2a & 0xfffffff0)" - (parenthesized_expression "(uVar1 + 0x2a & 0xfffffff0)" ( (binary_expression "uVar1 + 0x2a & 0xfffffff0" (binary_expression "uVar1 + 0x2a" identifier + number_literal) & number_literal) )))) ;) (expression_statement "ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);" (assignment_expression "ppuVar8 = (undefined4 **)((int)&local_3c + iVar3)" identifier = (cast_expression "(undefined4 **)((int)&local_3c + iVar3)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&local_3c + iVar3)" ( (binary_expression "(int)&local_3c + iVar3" (cast_expression "(int)&local_3c" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_3c" & identifier)) + identifier) )))) ;) (expression_statement "ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);" (assignment_expression "ppuVar7 = (undefined4 **)((int)&local_3c + iVar3)" identifier = (cast_expression "(undefined4 **)((int)&local_3c + iVar3)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&local_3c + iVar3)" ( (binary_expression "(int)&local_3c + iVar3" (cast_expression "(int)&local_3c" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_3c" & identifier)) + identifier) )))) ;) (expression_statement "iVar3 = (int)local_30 + iVar3;" (assignment_expression "iVar3 = (int)local_30 + iVar3" identifier = (binary_expression "(int)local_30 + iVar3" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) }) (else_clause "else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" else (compound_statement "{\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" { (expression_statement "local_30[0] = pcVar5;" (assignment_expression "local_30[0] = pcVar5" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = FUN_00018850(uVar1);" (assignment_expression "iVar3 = FUN_00018850(uVar1)" identifier = (call_expression "FUN_00018850(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "ppuVar8 = &local_3c;" (assignment_expression "ppuVar8 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) ;) (expression_statement "ppuVar7 = &local_3c;" (assignment_expression "ppuVar7 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) ;) (expression_statement "pcVar5 = local_30[0];" (assignment_expression "pcVar5 = local_30[0]" identifier = (subscript_expression "local_30[0]" identifier [ number_literal ])) ;) }))) (if_statement "if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }" if (parenthesized_expression "(2 < local_34)" ( (binary_expression "2 < local_34" number_literal < identifier) )) (compound_statement "{\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }" { (expression_statement "uVar1 = 2;" (assignment_expression "uVar1 = 2" identifier = number_literal) ;) (do_statement "do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);" do (compound_statement "{\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        }" { (expression_statement "cVar6 = pcVar5[iVar4];" (assignment_expression "cVar6 = pcVar5[iVar4]" identifier = (subscript_expression "pcVar5[iVar4]" identifier [ identifier ])) ;) (while_statement "while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }" while (parenthesized_expression "(pcVar5[uVar1 - 1] != cVar6)" ( (binary_expression "pcVar5[uVar1 - 1] != cVar6" (subscript_expression "pcVar5[uVar1 - 1]" identifier [ (binary_expression "uVar1 - 1" identifier - number_literal) ]) != identifier) )) (compound_statement "{\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }" { (if_statement "if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }" { (expression_statement "*(uint *)(iVar3 + uVar1 * 4) = uVar1;" (assignment_expression "*(uint *)(iVar3 + uVar1 * 4) = uVar1" (pointer_expression "*(uint *)(iVar3 + uVar1 * 4)" * (cast_expression "(uint *)(iVar3 + uVar1 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar1 * 4)" ( (binary_expression "iVar3 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00016765;" goto statement_identifier ;) })) (expression_statement "iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);" (assignment_expression "iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4)" identifier = (binary_expression "iVar4 - *(int *)(iVar3 + iVar4 * 4)" identifier - (pointer_expression "*(int *)(iVar3 + iVar4 * 4)" * (cast_expression "(int *)(iVar3 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar4 * 4)" ( (binary_expression "iVar3 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))))) ;) (expression_statement "cVar6 = pcVar5[iVar4];" (assignment_expression "cVar6 = pcVar5[iVar4]" identifier = (subscript_expression "pcVar5[iVar4]" identifier [ identifier ])) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;" (assignment_expression "*(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4" (pointer_expression "*(uint *)(iVar3 + uVar1 * 4)" * (cast_expression "(uint *)(iVar3 + uVar1 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar1 * 4)" ( (binary_expression "iVar3 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) = (binary_expression "uVar1 - iVar4" identifier - identifier)) ;) (labeled_statement "LAB_00016765:\n          uVar1 = uVar1 + 1;" statement_identifier : (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;)) (expression_statement "local_30[0] = pcVar10;" (assignment_expression "local_30[0] = pcVar10" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(local_34 != uVar1)" ( (binary_expression "local_34 != uVar1" identifier != identifier) )) ;) })) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "*local_3c = 0;" (assignment_expression "*local_3c = 0" (pointer_expression "*local_3c" * identifier) = number_literal) ;) (expression_statement "cVar6 = *pcVar10;" (assignment_expression "cVar6 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (expression_statement "pcVar9 = pcVar10;" (assignment_expression "pcVar9 = pcVar10" identifier = identifier) ;) (while_statement "while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }" while (parenthesized_expression "(cVar6 != '\0')" ( (binary_expression "cVar6 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }" { (if_statement "if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" if (parenthesized_expression "(pcVar5[uVar1] == cVar6)" ( (binary_expression "pcVar5[uVar1] == cVar6" (subscript_expression "pcVar5[uVar1]" identifier [ identifier ]) == identifier) )) (compound_statement "{\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }" { (expression_statement "local_30[0] = pcVar9 + 1;" (assignment_expression "local_30[0] = pcVar9 + 1" (subscript_expression "local_30[0]" identifier [ number_literal ]) = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (if_statement "if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }" if (parenthesized_expression "(local_34 == uVar1)" ( (binary_expression "local_34 == uVar1" identifier == identifier) )) (compound_statement "{\n            *local_3c = pcVar10;\n            break;\n          }" { (expression_statement "*local_3c = pcVar10;" (assignment_expression "*local_3c = pcVar10" (pointer_expression "*local_3c" * identifier) = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "cVar6 = pcVar9[1];" (assignment_expression "cVar6 = pcVar9[1]" identifier = (subscript_expression "pcVar9[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar9 = local_30[0];" (assignment_expression "pcVar9 = local_30[0]" identifier = (subscript_expression "local_30[0]" identifier [ number_literal ])) ;) }) (else_clause "else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" else (if_statement "if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }" { (expression_statement "cVar6 = pcVar9[1];" (assignment_expression "cVar6 = pcVar9[1]" identifier = (subscript_expression "pcVar9[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar10 = pcVar10 + 1;" (assignment_expression "pcVar10 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "pcVar9 = pcVar9 + 1;" (assignment_expression "pcVar9 = pcVar9 + 1" identifier = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" else (compound_statement "{\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" { (expression_statement "pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);" (assignment_expression "pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4)" identifier = (binary_expression "pcVar10 + *(int *)(iVar3 + uVar1 * 4)" identifier + (pointer_expression "*(int *)(iVar3 + uVar1 * 4)" * (cast_expression "(int *)(iVar3 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar1 * 4)" ( (binary_expression "iVar3 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))))) ;) (expression_statement "uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);" (assignment_expression "uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4)" identifier = (binary_expression "uVar1 - *(int *)(iVar3 + uVar1 * 4)" identifier - (pointer_expression "*(int *)(iVar3 + uVar1 * 4)" * (cast_expression "(int *)(iVar3 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar1 * 4)" ( (binary_expression "iVar3 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))))) ;) }))))) })) (expression_statement "*(int *)((int)ppuVar8 + -0x10) = iVar3;" (assignment_expression "*(int *)((int)ppuVar8 + -0x10) = iVar3" (pointer_expression "*(int *)((int)ppuVar8 + -0x10)" * (cast_expression "(int *)((int)ppuVar8 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar8 + -0x10)" ( (binary_expression "(int)ppuVar8 + -0x10" (cast_expression "(int)ppuVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;" (assignment_expression "*(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3" (pointer_expression "*(undefined4 *)((int)ppuVar8 + -0x14)" * (cast_expression "(undefined4 *)((int)ppuVar8 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar8 + -0x14)" ( (binary_expression "(int)ppuVar8 + -0x14" (cast_expression "(int)ppuVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000188a0();" (call_expression "FUN_000188a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000167ab;" goto statement_identifier ;) })) })) (expression_statement "ppuVar8 = ppuVar7;" (assignment_expression "ppuVar8 = ppuVar7" identifier = identifier) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\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                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }" { comment (expression_statement "*(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;" (assignment_expression "*(undefined4 *)((int)ppuVar8 + -4) = 0x1682e" (pointer_expression "*(undefined4 *)((int)ppuVar8 + -4)" * (cast_expression "(undefined4 *)((int)ppuVar8 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar8 + -4)" ( (binary_expression "(int)ppuVar8 + -4" (cast_expression "(int)ppuVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000190c0();" (call_expression "FUN_000190c0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "_Bool knuth_morris_pratt(uchar *haystack,uchar *needle,size_t needle_len,uchar **resultp)\n\n{\n  _Bool _Var1;\n  uint uVar2;\n  void *pvVar3;\n  uint extraout_ECX;\n  int iVar4;\n  char *pcVar5;\n  char cVar6;\n  uchar **ppuVar7;\n  uchar **ppuVar8;\n  char *pcVar9;\n  int unaff_EDI;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  undefined8 uVar11;\n  uchar *local_3c;\n  int local_38;\n  uint local_34;\n  char *local_30 [4];\n  int local_20;\n  \n  uVar11 = __x86_get_pc_thunk_di();\n  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);\n  pcVar10 = (char *)uVar11;\n  local_34 = extraout_ECX;\n  local_38 = unaff_EDI + 0x8947;\n  local_3c = haystack;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = extraout_ECX * 4;\n  ppuVar7 = &local_3c;\n  if ((-1 < (int)uVar2) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    if (uVar2 < 0xfb1) {\n      iVar4 = -(uVar2 + 0x2a & 0xfffffff0);\n      ppuVar8 = (uchar **)((int)&local_3c + iVar4);\n      ppuVar7 = (uchar **)((int)&local_3c + iVar4);\n      pvVar3 = (void *)((int)local_30 + iVar4);\n    }\n    else {\n      local_30[0] = pcVar5;\n      pvVar3 = mmalloca(uVar2);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (pvVar3 != (void *)0x0) {\n      iVar4 = 0;\n      *(undefined4 *)((int)pvVar3 + 4) = 1;\n      if (2 < local_34) {\n        local_30[0] = pcVar10;\n        uVar2 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;\nLAB_00016765:\n          uVar2 = uVar2 + 1;\n        } while (local_34 != uVar2);\n      }\n      uVar2 = 0;\n      local_3c[0] = '\0';\n      local_3c[1] = '\0';\n      local_3c[2] = '\0';\n      local_3c[3] = '\0';\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar2] == cVar6) {\n          uVar2 = uVar2 + 1;\n          local_30[0] = pcVar9 + 1;\n          if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }\n      }\n      *(void **)((int)ppuVar8 + -0x10) = pvVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      freea(*(void **)((int)ppuVar8 + -0x10));\n      _Var1 = true;\n      goto LAB_000167ab;\n    }\n  }\n  ppuVar8 = ppuVar7;\n  _Var1 = false;\nLAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    __stack_chk_fail_local();\n  }\n  return _Var1;\n}\n\n" (function_definition "_Bool knuth_morris_pratt(uchar *haystack,uchar *needle,size_t needle_len,uchar **resultp)\n\n{\n  _Bool _Var1;\n  uint uVar2;\n  void *pvVar3;\n  uint extraout_ECX;\n  int iVar4;\n  char *pcVar5;\n  char cVar6;\n  uchar **ppuVar7;\n  uchar **ppuVar8;\n  char *pcVar9;\n  int unaff_EDI;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  undefined8 uVar11;\n  uchar *local_3c;\n  int local_38;\n  uint local_34;\n  char *local_30 [4];\n  int local_20;\n  \n  uVar11 = __x86_get_pc_thunk_di();\n  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);\n  pcVar10 = (char *)uVar11;\n  local_34 = extraout_ECX;\n  local_38 = unaff_EDI + 0x8947;\n  local_3c = haystack;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = extraout_ECX * 4;\n  ppuVar7 = &local_3c;\n  if ((-1 < (int)uVar2) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    if (uVar2 < 0xfb1) {\n      iVar4 = -(uVar2 + 0x2a & 0xfffffff0);\n      ppuVar8 = (uchar **)((int)&local_3c + iVar4);\n      ppuVar7 = (uchar **)((int)&local_3c + iVar4);\n      pvVar3 = (void *)((int)local_30 + iVar4);\n    }\n    else {\n      local_30[0] = pcVar5;\n      pvVar3 = mmalloca(uVar2);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (pvVar3 != (void *)0x0) {\n      iVar4 = 0;\n      *(undefined4 *)((int)pvVar3 + 4) = 1;\n      if (2 < local_34) {\n        local_30[0] = pcVar10;\n        uVar2 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;\nLAB_00016765:\n          uVar2 = uVar2 + 1;\n        } while (local_34 != uVar2);\n      }\n      uVar2 = 0;\n      local_3c[0] = '\0';\n      local_3c[1] = '\0';\n      local_3c[2] = '\0';\n      local_3c[3] = '\0';\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar2] == cVar6) {\n          uVar2 = uVar2 + 1;\n          local_30[0] = pcVar9 + 1;\n          if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }\n      }\n      *(void **)((int)ppuVar8 + -0x10) = pvVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      freea(*(void **)((int)ppuVar8 + -0x10));\n      _Var1 = true;\n      goto LAB_000167ab;\n    }\n  }\n  ppuVar8 = ppuVar7;\n  _Var1 = false;\nLAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    __stack_chk_fail_local();\n  }\n  return _Var1;\n}" type_identifier (function_declarator "knuth_morris_pratt(uchar *haystack,uchar *needle,size_t needle_len,uchar **resultp)" identifier (parameter_list "(uchar *haystack,uchar *needle,size_t needle_len,uchar **resultp)" ( (parameter_declaration "uchar *haystack" type_identifier (pointer_declarator "*haystack" * identifier)) , (parameter_declaration "uchar *needle" type_identifier (pointer_declarator "*needle" * identifier)) , (parameter_declaration "size_t needle_len" primitive_type identifier) , (parameter_declaration "uchar **resultp" type_identifier (pointer_declarator "**resultp" * (pointer_declarator "*resultp" * identifier))) ))) (compound_statement "{\n  _Bool _Var1;\n  uint uVar2;\n  void *pvVar3;\n  uint extraout_ECX;\n  int iVar4;\n  char *pcVar5;\n  char cVar6;\n  uchar **ppuVar7;\n  uchar **ppuVar8;\n  char *pcVar9;\n  int unaff_EDI;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  undefined8 uVar11;\n  uchar *local_3c;\n  int local_38;\n  uint local_34;\n  char *local_30 [4];\n  int local_20;\n  \n  uVar11 = __x86_get_pc_thunk_di();\n  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);\n  pcVar10 = (char *)uVar11;\n  local_34 = extraout_ECX;\n  local_38 = unaff_EDI + 0x8947;\n  local_3c = haystack;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = extraout_ECX * 4;\n  ppuVar7 = &local_3c;\n  if ((-1 < (int)uVar2) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    if (uVar2 < 0xfb1) {\n      iVar4 = -(uVar2 + 0x2a & 0xfffffff0);\n      ppuVar8 = (uchar **)((int)&local_3c + iVar4);\n      ppuVar7 = (uchar **)((int)&local_3c + iVar4);\n      pvVar3 = (void *)((int)local_30 + iVar4);\n    }\n    else {\n      local_30[0] = pcVar5;\n      pvVar3 = mmalloca(uVar2);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (pvVar3 != (void *)0x0) {\n      iVar4 = 0;\n      *(undefined4 *)((int)pvVar3 + 4) = 1;\n      if (2 < local_34) {\n        local_30[0] = pcVar10;\n        uVar2 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;\nLAB_00016765:\n          uVar2 = uVar2 + 1;\n        } while (local_34 != uVar2);\n      }\n      uVar2 = 0;\n      local_3c[0] = '\0';\n      local_3c[1] = '\0';\n      local_3c[2] = '\0';\n      local_3c[3] = '\0';\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar2] == cVar6) {\n          uVar2 = uVar2 + 1;\n          local_30[0] = pcVar9 + 1;\n          if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }\n      }\n      *(void **)((int)ppuVar8 + -0x10) = pvVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      freea(*(void **)((int)ppuVar8 + -0x10));\n      _Var1 = true;\n      goto LAB_000167ab;\n    }\n  }\n  ppuVar8 = ppuVar7;\n  _Var1 = false;\nLAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    __stack_chk_fail_local();\n  }\n  return _Var1;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "uchar **ppuVar7;" type_identifier (pointer_declarator "**ppuVar7" * (pointer_declarator "*ppuVar7" * identifier)) ;) (declaration "uchar **ppuVar8;" type_identifier (pointer_declarator "**ppuVar8" * (pointer_declarator "*ppuVar8" * identifier)) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar11;" type_identifier identifier ;) (declaration "uchar *local_3c;" type_identifier (pointer_declarator "*local_3c" * identifier) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "char *local_30 [4];" primitive_type (pointer_declarator "*local_30 [4]" * (array_declarator "local_30 [4]" identifier [ number_literal ])) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar11 = __x86_get_pc_thunk_di();" (assignment_expression "uVar11 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);" (assignment_expression "pcVar5 = (char *)((ulonglong)uVar11 >> 0x20)" identifier = (cast_expression "(char *)((ulonglong)uVar11 >> 0x20)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar11 >> 0x20)" ( (binary_expression "(ulonglong)uVar11 >> 0x20" (cast_expression "(ulonglong)uVar11" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pcVar10 = (char *)uVar11;" (assignment_expression "pcVar10 = (char *)uVar11" identifier = (cast_expression "(char *)uVar11" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_34 = extraout_ECX;" (assignment_expression "local_34 = extraout_ECX" identifier = identifier) ;) (expression_statement "local_38 = unaff_EDI + 0x8947;" (assignment_expression "local_38 = unaff_EDI + 0x8947" identifier = (binary_expression "unaff_EDI + 0x8947" identifier + number_literal)) ;) (expression_statement "local_3c = haystack;" (assignment_expression "local_3c = haystack" identifier = identifier) ;) (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 "uVar2 = extraout_ECX * 4;" (assignment_expression "uVar2 = extraout_ECX * 4" identifier = (binary_expression "extraout_ECX * 4" identifier * number_literal)) ;) (expression_statement "ppuVar7 = &local_3c;" (assignment_expression "ppuVar7 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) ;) (if_statement "if ((-1 < (int)uVar2) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    if (uVar2 < 0xfb1) {\n      iVar4 = -(uVar2 + 0x2a & 0xfffffff0);\n      ppuVar8 = (uchar **)((int)&local_3c + iVar4);\n      ppuVar7 = (uchar **)((int)&local_3c + iVar4);\n      pvVar3 = (void *)((int)local_30 + iVar4);\n    }\n    else {\n      local_30[0] = pcVar5;\n      pvVar3 = mmalloca(uVar2);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (pvVar3 != (void *)0x0) {\n      iVar4 = 0;\n      *(undefined4 *)((int)pvVar3 + 4) = 1;\n      if (2 < local_34) {\n        local_30[0] = pcVar10;\n        uVar2 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;\nLAB_00016765:\n          uVar2 = uVar2 + 1;\n        } while (local_34 != uVar2);\n      }\n      uVar2 = 0;\n      local_3c[0] = '\0';\n      local_3c[1] = '\0';\n      local_3c[2] = '\0';\n      local_3c[3] = '\0';\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar2] == cVar6) {\n          uVar2 = uVar2 + 1;\n          local_30[0] = pcVar9 + 1;\n          if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }\n      }\n      *(void **)((int)ppuVar8 + -0x10) = pvVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      freea(*(void **)((int)ppuVar8 + -0x10));\n      _Var1 = true;\n      goto LAB_000167ab;\n    }\n  }" if (parenthesized_expression "((-1 < (int)uVar2) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0))" ( (binary_expression "(-1 < (int)uVar2) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)" (parenthesized_expression "(-1 < (int)uVar2)" ( (binary_expression "-1 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)" ( (comma_expression "ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0" (assignment_expression "ppuVar7 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) , (binary_expression "extraout_ECX >> 0x1e == 0" (binary_expression "extraout_ECX >> 0x1e" identifier >> number_literal) == number_literal)) ))) )) (compound_statement "{\n    if (uVar2 < 0xfb1) {\n      iVar4 = -(uVar2 + 0x2a & 0xfffffff0);\n      ppuVar8 = (uchar **)((int)&local_3c + iVar4);\n      ppuVar7 = (uchar **)((int)&local_3c + iVar4);\n      pvVar3 = (void *)((int)local_30 + iVar4);\n    }\n    else {\n      local_30[0] = pcVar5;\n      pvVar3 = mmalloca(uVar2);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (pvVar3 != (void *)0x0) {\n      iVar4 = 0;\n      *(undefined4 *)((int)pvVar3 + 4) = 1;\n      if (2 < local_34) {\n        local_30[0] = pcVar10;\n        uVar2 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;\nLAB_00016765:\n          uVar2 = uVar2 + 1;\n        } while (local_34 != uVar2);\n      }\n      uVar2 = 0;\n      local_3c[0] = '\0';\n      local_3c[1] = '\0';\n      local_3c[2] = '\0';\n      local_3c[3] = '\0';\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar2] == cVar6) {\n          uVar2 = uVar2 + 1;\n          local_30[0] = pcVar9 + 1;\n          if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }\n      }\n      *(void **)((int)ppuVar8 + -0x10) = pvVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      freea(*(void **)((int)ppuVar8 + -0x10));\n      _Var1 = true;\n      goto LAB_000167ab;\n    }\n  }" { (if_statement "if (uVar2 < 0xfb1) {\n      iVar4 = -(uVar2 + 0x2a & 0xfffffff0);\n      ppuVar8 = (uchar **)((int)&local_3c + iVar4);\n      ppuVar7 = (uchar **)((int)&local_3c + iVar4);\n      pvVar3 = (void *)((int)local_30 + iVar4);\n    }\n    else {\n      local_30[0] = pcVar5;\n      pvVar3 = mmalloca(uVar2);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" if (parenthesized_expression "(uVar2 < 0xfb1)" ( (binary_expression "uVar2 < 0xfb1" identifier < number_literal) )) (compound_statement "{\n      iVar4 = -(uVar2 + 0x2a & 0xfffffff0);\n      ppuVar8 = (uchar **)((int)&local_3c + iVar4);\n      ppuVar7 = (uchar **)((int)&local_3c + iVar4);\n      pvVar3 = (void *)((int)local_30 + iVar4);\n    }" { (expression_statement "iVar4 = -(uVar2 + 0x2a & 0xfffffff0);" (assignment_expression "iVar4 = -(uVar2 + 0x2a & 0xfffffff0)" identifier = (unary_expression "-(uVar2 + 0x2a & 0xfffffff0)" - (parenthesized_expression "(uVar2 + 0x2a & 0xfffffff0)" ( (binary_expression "uVar2 + 0x2a & 0xfffffff0" (binary_expression "uVar2 + 0x2a" identifier + number_literal) & number_literal) )))) ;) (expression_statement "ppuVar8 = (uchar **)((int)&local_3c + iVar4);" (assignment_expression "ppuVar8 = (uchar **)((int)&local_3c + iVar4)" identifier = (cast_expression "(uchar **)((int)&local_3c + iVar4)" ( (type_descriptor "uchar **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&local_3c + iVar4)" ( (binary_expression "(int)&local_3c + iVar4" (cast_expression "(int)&local_3c" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_3c" & identifier)) + identifier) )))) ;) (expression_statement "ppuVar7 = (uchar **)((int)&local_3c + iVar4);" (assignment_expression "ppuVar7 = (uchar **)((int)&local_3c + iVar4)" identifier = (cast_expression "(uchar **)((int)&local_3c + iVar4)" ( (type_descriptor "uchar **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&local_3c + iVar4)" ( (binary_expression "(int)&local_3c + iVar4" (cast_expression "(int)&local_3c" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_3c" & identifier)) + identifier) )))) ;) (expression_statement "pvVar3 = (void *)((int)local_30 + iVar4);" (assignment_expression "pvVar3 = (void *)((int)local_30 + iVar4)" identifier = (cast_expression "(void *)((int)local_30 + iVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + iVar4)" ( (binary_expression "(int)local_30 + iVar4" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) }) (else_clause "else {\n      local_30[0] = pcVar5;\n      pvVar3 = mmalloca(uVar2);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" else (compound_statement "{\n      local_30[0] = pcVar5;\n      pvVar3 = mmalloca(uVar2);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" { (expression_statement "local_30[0] = pcVar5;" (assignment_expression "local_30[0] = pcVar5" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pvVar3 = mmalloca(uVar2);" (assignment_expression "pvVar3 = mmalloca(uVar2)" identifier = (call_expression "mmalloca(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "ppuVar8 = &local_3c;" (assignment_expression "ppuVar8 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) ;) (expression_statement "ppuVar7 = &local_3c;" (assignment_expression "ppuVar7 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) ;) (expression_statement "pcVar5 = local_30[0];" (assignment_expression "pcVar5 = local_30[0]" identifier = (subscript_expression "local_30[0]" identifier [ number_literal ])) ;) }))) (if_statement "if (pvVar3 != (void *)0x0) {\n      iVar4 = 0;\n      *(undefined4 *)((int)pvVar3 + 4) = 1;\n      if (2 < local_34) {\n        local_30[0] = pcVar10;\n        uVar2 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;\nLAB_00016765:\n          uVar2 = uVar2 + 1;\n        } while (local_34 != uVar2);\n      }\n      uVar2 = 0;\n      local_3c[0] = '\0';\n      local_3c[1] = '\0';\n      local_3c[2] = '\0';\n      local_3c[3] = '\0';\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar2] == cVar6) {\n          uVar2 = uVar2 + 1;\n          local_30[0] = pcVar9 + 1;\n          if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }\n      }\n      *(void **)((int)ppuVar8 + -0x10) = pvVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      freea(*(void **)((int)ppuVar8 + -0x10));\n      _Var1 = true;\n      goto LAB_000167ab;\n    }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar4 = 0;\n      *(undefined4 *)((int)pvVar3 + 4) = 1;\n      if (2 < local_34) {\n        local_30[0] = pcVar10;\n        uVar2 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;\nLAB_00016765:\n          uVar2 = uVar2 + 1;\n        } while (local_34 != uVar2);\n      }\n      uVar2 = 0;\n      local_3c[0] = '\0';\n      local_3c[1] = '\0';\n      local_3c[2] = '\0';\n      local_3c[3] = '\0';\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar2] == cVar6) {\n          uVar2 = uVar2 + 1;\n          local_30[0] = pcVar9 + 1;\n          if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }\n      }\n      *(void **)((int)ppuVar8 + -0x10) = pvVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      freea(*(void **)((int)ppuVar8 + -0x10));\n      _Var1 = true;\n      goto LAB_000167ab;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar3 + 4) = 1;" (assignment_expression "*(undefined4 *)((int)pvVar3 + 4) = 1" (pointer_expression "*(undefined4 *)((int)pvVar3 + 4)" * (cast_expression "(undefined4 *)((int)pvVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar3 + 4)" ( (binary_expression "(int)pvVar3 + 4" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (2 < local_34) {\n        local_30[0] = pcVar10;\n        uVar2 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;\nLAB_00016765:\n          uVar2 = uVar2 + 1;\n        } while (local_34 != uVar2);\n      }" if (parenthesized_expression "(2 < local_34)" ( (binary_expression "2 < local_34" number_literal < identifier) )) (compound_statement "{\n        local_30[0] = pcVar10;\n        uVar2 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;\nLAB_00016765:\n          uVar2 = uVar2 + 1;\n        } while (local_34 != uVar2);\n      }" { (expression_statement "local_30[0] = pcVar10;" (assignment_expression "local_30[0] = pcVar10" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) (do_statement "do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;\nLAB_00016765:\n          uVar2 = uVar2 + 1;\n        } while (local_34 != uVar2);" do (compound_statement "{\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;\nLAB_00016765:\n          uVar2 = uVar2 + 1;\n        }" { (expression_statement "cVar6 = pcVar5[iVar4];" (assignment_expression "cVar6 = pcVar5[iVar4]" identifier = (subscript_expression "pcVar5[iVar4]" identifier [ identifier ])) ;) (while_statement "while (pcVar5[uVar2 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }" while (parenthesized_expression "(pcVar5[uVar2 - 1] != cVar6)" ( (binary_expression "pcVar5[uVar2 - 1] != cVar6" (subscript_expression "pcVar5[uVar2 - 1]" identifier [ (binary_expression "uVar2 - 1" identifier - number_literal) ]) != identifier) )) (compound_statement "{\n            if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }" { (if_statement "if (iVar4 == 0) {\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n              *(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }" { (expression_statement "*(uint *)((int)pvVar3 + uVar2 * 4) = uVar2;" (assignment_expression "*(uint *)((int)pvVar3 + uVar2 * 4) = uVar2" (pointer_expression "*(uint *)((int)pvVar3 + uVar2 * 4)" * (cast_expression "(uint *)((int)pvVar3 + uVar2 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar3 + uVar2 * 4)" ( (binary_expression "(int)pvVar3 + uVar2 * 4" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00016765;" goto statement_identifier ;) })) (expression_statement "iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4);" (assignment_expression "iVar4 = iVar4 - *(int *)((int)pvVar3 + iVar4 * 4)" identifier = (binary_expression "iVar4 - *(int *)((int)pvVar3 + iVar4 * 4)" identifier - (pointer_expression "*(int *)((int)pvVar3 + iVar4 * 4)" * (cast_expression "(int *)((int)pvVar3 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar3 + iVar4 * 4)" ( (binary_expression "(int)pvVar3 + iVar4 * 4" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))))) ;) (expression_statement "cVar6 = pcVar5[iVar4];" (assignment_expression "cVar6 = pcVar5[iVar4]" identifier = (subscript_expression "pcVar5[iVar4]" identifier [ identifier ])) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4;" (assignment_expression "*(uint *)((int)pvVar3 + uVar2 * 4) = uVar2 - iVar4" (pointer_expression "*(uint *)((int)pvVar3 + uVar2 * 4)" * (cast_expression "(uint *)((int)pvVar3 + uVar2 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar3 + uVar2 * 4)" ( (binary_expression "(int)pvVar3 + uVar2 * 4" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) = (binary_expression "uVar2 - iVar4" identifier - identifier)) ;) (labeled_statement "LAB_00016765:\n          uVar2 = uVar2 + 1;" statement_identifier : (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;)) }) while (parenthesized_expression "(local_34 != uVar2)" ( (binary_expression "local_34 != uVar2" identifier != identifier) )) ;) })) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "local_3c[0] = '\0';" (assignment_expression "local_3c[0] = '\0'" (subscript_expression "local_3c[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_3c[1] = '\0';" (assignment_expression "local_3c[1] = '\0'" (subscript_expression "local_3c[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_3c[2] = '\0';" (assignment_expression "local_3c[2] = '\0'" (subscript_expression "local_3c[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_3c[3] = '\0';" (assignment_expression "local_3c[3] = '\0'" (subscript_expression "local_3c[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "cVar6 = *pcVar10;" (assignment_expression "cVar6 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (expression_statement "pcVar9 = pcVar10;" (assignment_expression "pcVar9 = pcVar10" identifier = identifier) ;) (while_statement "while (cVar6 != '\0') {\n        if (pcVar5[uVar2] == cVar6) {\n          uVar2 = uVar2 + 1;\n          local_30[0] = pcVar9 + 1;\n          if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }\n      }" while (parenthesized_expression "(cVar6 != '\0')" ( (binary_expression "cVar6 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (pcVar5[uVar2] == cVar6) {\n          uVar2 = uVar2 + 1;\n          local_30[0] = pcVar9 + 1;\n          if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }\n      }" { (if_statement "if (pcVar5[uVar2] == cVar6) {\n          uVar2 = uVar2 + 1;\n          local_30[0] = pcVar9 + 1;\n          if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }" if (parenthesized_expression "(pcVar5[uVar2] == cVar6)" ( (binary_expression "pcVar5[uVar2] == cVar6" (subscript_expression "pcVar5[uVar2]" identifier [ identifier ]) == identifier) )) (compound_statement "{\n          uVar2 = uVar2 + 1;\n          local_30[0] = pcVar9 + 1;\n          if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }" { (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "local_30[0] = pcVar9 + 1;" (assignment_expression "local_30[0] = pcVar9 + 1" (subscript_expression "local_30[0]" identifier [ number_literal ]) = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) (if_statement "if (local_34 == uVar2) {\n            *(char **)local_3c = pcVar10;\n            break;\n          }" if (parenthesized_expression "(local_34 == uVar2)" ( (binary_expression "local_34 == uVar2" identifier == identifier) )) (compound_statement "{\n            *(char **)local_3c = pcVar10;\n            break;\n          }" { (expression_statement "*(char **)local_3c = pcVar10;" (assignment_expression "*(char **)local_3c = pcVar10" (pointer_expression "*(char **)local_3c" * (cast_expression "(char **)local_3c" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "cVar6 = pcVar9[1];" (assignment_expression "cVar6 = pcVar9[1]" identifier = (subscript_expression "pcVar9[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar9 = local_30[0];" (assignment_expression "pcVar9 = local_30[0]" identifier = (subscript_expression "local_30[0]" identifier [ number_literal ])) ;) }) (else_clause "else if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }" else (if_statement "if (uVar2 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar2 = 0;\n          pcVar9 = pcVar9 + 1;\n        }" { (expression_statement "cVar6 = pcVar9[1];" (assignment_expression "cVar6 = pcVar9[1]" identifier = (subscript_expression "pcVar9[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar10 = pcVar10 + 1;" (assignment_expression "pcVar10 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "pcVar9 = pcVar9 + 1;" (assignment_expression "pcVar9 = pcVar9 + 1" identifier = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }" else (compound_statement "{\n          pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);\n          uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);\n        }" { (expression_statement "pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4);" (assignment_expression "pcVar10 = pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4)" identifier = (binary_expression "pcVar10 + *(int *)((int)pvVar3 + uVar2 * 4)" identifier + (pointer_expression "*(int *)((int)pvVar3 + uVar2 * 4)" * (cast_expression "(int *)((int)pvVar3 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar3 + uVar2 * 4)" ( (binary_expression "(int)pvVar3 + uVar2 * 4" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar2 * 4" identifier * number_literal)) )))))) ;) (expression_statement "uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4);" (assignment_expression "uVar2 = uVar2 - *(int *)((int)pvVar3 + uVar2 * 4)" identifier = (binary_expression "uVar2 - *(int *)((int)pvVar3 + uVar2 * 4)" identifier - (pointer_expression "*(int *)((int)pvVar3 + uVar2 * 4)" * (cast_expression "(int *)((int)pvVar3 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar3 + uVar2 * 4)" ( (binary_expression "(int)pvVar3 + uVar2 * 4" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar2 * 4" identifier * number_literal)) )))))) ;) }))))) })) (expression_statement "*(void **)((int)ppuVar8 + -0x10) = pvVar3;" (assignment_expression "*(void **)((int)ppuVar8 + -0x10) = pvVar3" (pointer_expression "*(void **)((int)ppuVar8 + -0x10)" * (cast_expression "(void **)((int)ppuVar8 + -0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppuVar8 + -0x10)" ( (binary_expression "(int)ppuVar8 + -0x10" (cast_expression "(int)ppuVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;" (assignment_expression "*(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3" (pointer_expression "*(undefined4 *)((int)ppuVar8 + -0x14)" * (cast_expression "(undefined4 *)((int)ppuVar8 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar8 + -0x14)" ( (binary_expression "(int)ppuVar8 + -0x14" (cast_expression "(int)ppuVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "freea(*(void **)((int)ppuVar8 + -0x10));" (call_expression "freea(*(void **)((int)ppuVar8 + -0x10))" identifier (argument_list "(*(void **)((int)ppuVar8 + -0x10))" ( (pointer_expression "*(void **)((int)ppuVar8 + -0x10)" * (cast_expression "(void **)((int)ppuVar8 + -0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppuVar8 + -0x10)" ( (binary_expression "(int)ppuVar8 + -0x10" (cast_expression "(int)ppuVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "_Var1 = true;" (assignment_expression "_Var1 = true" identifier = true) ;) (goto_statement "goto LAB_000167ab;" goto statement_identifier ;) })) })) (expression_statement "ppuVar8 = ppuVar7;" (assignment_expression "ppuVar8 = ppuVar7" identifier = identifier) ;) (expression_statement "_Var1 = false;" (assignment_expression "_Var1 = false" identifier = false) ;) (labeled_statement "LAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    __stack_chk_fail_local();\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                    /* WARNING: Subroutine does not return */\n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "*(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;" (assignment_expression "*(undefined4 *)((int)ppuVar8 + -4) = 0x1682e" (pointer_expression "*(undefined4 *)((int)ppuVar8 + -4)" * (cast_expression "(undefined4 *)((int)ppuVar8 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar8 + -4)" ( (binary_expression "(int)ppuVar8 + -4" (cast_expression "(int)ppuVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return _Var1;" return identifier ;) })))
(translation_unit "undefined4 FUN_000166b0(undefined4 *param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint extraout_ECX;\n  int iVar4;\n  char *pcVar5;\n  char cVar6;\n  undefined4 **ppuVar7;\n  undefined4 **ppuVar8;\n  char *pcVar9;\n  int unaff_EDI;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  undefined8 uVar11;\n  undefined4 *local_3c;\n  int local_38;\n  uint local_34;\n  char *local_30 [4];\n  int local_20;\n  \n  uVar11 = FUN_0001826e();\n  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);\n  pcVar10 = (char *)uVar11;\n  local_38 = unaff_EDI + 0x8947;\n  local_3c = param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = extraout_ECX * 4;\n  ppuVar7 = &local_3c;\n  if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }\n  ppuVar8 = ppuVar7;\n  uVar2 = 0;\nLAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_000166b0(undefined4 *param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint extraout_ECX;\n  int iVar4;\n  char *pcVar5;\n  char cVar6;\n  undefined4 **ppuVar7;\n  undefined4 **ppuVar8;\n  char *pcVar9;\n  int unaff_EDI;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  undefined8 uVar11;\n  undefined4 *local_3c;\n  int local_38;\n  uint local_34;\n  char *local_30 [4];\n  int local_20;\n  \n  uVar11 = FUN_0001826e();\n  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);\n  pcVar10 = (char *)uVar11;\n  local_38 = unaff_EDI + 0x8947;\n  local_3c = param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = extraout_ECX * 4;\n  ppuVar7 = &local_3c;\n  if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }\n  ppuVar8 = ppuVar7;\n  uVar2 = 0;\nLAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000166b0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint extraout_ECX;\n  int iVar4;\n  char *pcVar5;\n  char cVar6;\n  undefined4 **ppuVar7;\n  undefined4 **ppuVar8;\n  char *pcVar9;\n  int unaff_EDI;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  undefined8 uVar11;\n  undefined4 *local_3c;\n  int local_38;\n  uint local_34;\n  char *local_30 [4];\n  int local_20;\n  \n  uVar11 = FUN_0001826e();\n  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);\n  pcVar10 = (char *)uVar11;\n  local_38 = unaff_EDI + 0x8947;\n  local_3c = param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = extraout_ECX * 4;\n  ppuVar7 = &local_3c;\n  if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }\n  ppuVar8 = ppuVar7;\n  uVar2 = 0;\nLAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "undefined4 **ppuVar7;" type_identifier (pointer_declarator "**ppuVar7" * (pointer_declarator "*ppuVar7" * identifier)) ;) (declaration "undefined4 **ppuVar8;" type_identifier (pointer_declarator "**ppuVar8" * (pointer_declarator "*ppuVar8" * identifier)) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar11;" type_identifier identifier ;) (declaration "undefined4 *local_3c;" type_identifier (pointer_declarator "*local_3c" * identifier) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "char *local_30 [4];" primitive_type (pointer_declarator "*local_30 [4]" * (array_declarator "local_30 [4]" identifier [ number_literal ])) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar11 = FUN_0001826e();" (assignment_expression "uVar11 = FUN_0001826e()" identifier = (call_expression "FUN_0001826e()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);" (assignment_expression "pcVar5 = (char *)((ulonglong)uVar11 >> 0x20)" identifier = (cast_expression "(char *)((ulonglong)uVar11 >> 0x20)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar11 >> 0x20)" ( (binary_expression "(ulonglong)uVar11 >> 0x20" (cast_expression "(ulonglong)uVar11" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pcVar10 = (char *)uVar11;" (assignment_expression "pcVar10 = (char *)uVar11" identifier = (cast_expression "(char *)uVar11" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_38 = unaff_EDI + 0x8947;" (assignment_expression "local_38 = unaff_EDI + 0x8947" identifier = (binary_expression "unaff_EDI + 0x8947" identifier + number_literal)) ;) (expression_statement "local_3c = param_1;" (assignment_expression "local_3c = param_1" identifier = identifier) ;) (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 = extraout_ECX * 4;" (assignment_expression "uVar1 = extraout_ECX * 4" identifier = (binary_expression "extraout_ECX * 4" identifier * number_literal)) ;) (expression_statement "ppuVar7 = &local_3c;" (assignment_expression "ppuVar7 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) ;) (if_statement "if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }" if (parenthesized_expression "((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0))" ( (binary_expression "(-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)" (parenthesized_expression "(-1 < (int)uVar1)" ( (binary_expression "-1 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)" ( (comma_expression "ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0" (assignment_expression "ppuVar7 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) , (binary_expression "extraout_ECX >> 0x1e == 0" (binary_expression "extraout_ECX >> 0x1e" identifier >> number_literal) == number_literal)) ))) )) (compound_statement "{\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }" { (expression_statement "local_34 = extraout_ECX;" (assignment_expression "local_34 = extraout_ECX" identifier = identifier) ;) (if_statement "if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" if (parenthesized_expression "(uVar1 < 0xfb1)" ( (binary_expression "uVar1 < 0xfb1" identifier < number_literal) )) (compound_statement "{\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }" { (expression_statement "iVar3 = -(uVar1 + 0x2a & 0xfffffff0);" (assignment_expression "iVar3 = -(uVar1 + 0x2a & 0xfffffff0)" identifier = (unary_expression "-(uVar1 + 0x2a & 0xfffffff0)" - (parenthesized_expression "(uVar1 + 0x2a & 0xfffffff0)" ( (binary_expression "uVar1 + 0x2a & 0xfffffff0" (binary_expression "uVar1 + 0x2a" identifier + number_literal) & number_literal) )))) ;) (expression_statement "ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);" (assignment_expression "ppuVar8 = (undefined4 **)((int)&local_3c + iVar3)" identifier = (cast_expression "(undefined4 **)((int)&local_3c + iVar3)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&local_3c + iVar3)" ( (binary_expression "(int)&local_3c + iVar3" (cast_expression "(int)&local_3c" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_3c" & identifier)) + identifier) )))) ;) (expression_statement "ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);" (assignment_expression "ppuVar7 = (undefined4 **)((int)&local_3c + iVar3)" identifier = (cast_expression "(undefined4 **)((int)&local_3c + iVar3)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&local_3c + iVar3)" ( (binary_expression "(int)&local_3c + iVar3" (cast_expression "(int)&local_3c" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_3c" & identifier)) + identifier) )))) ;) (expression_statement "iVar3 = (int)local_30 + iVar3;" (assignment_expression "iVar3 = (int)local_30 + iVar3" identifier = (binary_expression "(int)local_30 + iVar3" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) }) (else_clause "else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" else (compound_statement "{\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" { (expression_statement "local_30[0] = pcVar5;" (assignment_expression "local_30[0] = pcVar5" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = FUN_00018850(uVar1);" (assignment_expression "iVar3 = FUN_00018850(uVar1)" identifier = (call_expression "FUN_00018850(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "ppuVar8 = &local_3c;" (assignment_expression "ppuVar8 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) ;) (expression_statement "ppuVar7 = &local_3c;" (assignment_expression "ppuVar7 = &local_3c" identifier = (pointer_expression "&local_3c" & identifier)) ;) (expression_statement "pcVar5 = local_30[0];" (assignment_expression "pcVar5 = local_30[0]" identifier = (subscript_expression "local_30[0]" identifier [ number_literal ])) ;) }))) (if_statement "if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }" if (parenthesized_expression "(2 < local_34)" ( (binary_expression "2 < local_34" number_literal < identifier) )) (compound_statement "{\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }" { (expression_statement "uVar1 = 2;" (assignment_expression "uVar1 = 2" identifier = number_literal) ;) (do_statement "do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);" do (compound_statement "{\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        }" { (expression_statement "cVar6 = pcVar5[iVar4];" (assignment_expression "cVar6 = pcVar5[iVar4]" identifier = (subscript_expression "pcVar5[iVar4]" identifier [ identifier ])) ;) (while_statement "while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }" while (parenthesized_expression "(pcVar5[uVar1 - 1] != cVar6)" ( (binary_expression "pcVar5[uVar1 - 1] != cVar6" (subscript_expression "pcVar5[uVar1 - 1]" identifier [ (binary_expression "uVar1 - 1" identifier - number_literal) ]) != identifier) )) (compound_statement "{\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }" { (if_statement "if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }" { (expression_statement "*(uint *)(iVar3 + uVar1 * 4) = uVar1;" (assignment_expression "*(uint *)(iVar3 + uVar1 * 4) = uVar1" (pointer_expression "*(uint *)(iVar3 + uVar1 * 4)" * (cast_expression "(uint *)(iVar3 + uVar1 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar1 * 4)" ( (binary_expression "iVar3 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00016765;" goto statement_identifier ;) })) (expression_statement "iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);" (assignment_expression "iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4)" identifier = (binary_expression "iVar4 - *(int *)(iVar3 + iVar4 * 4)" identifier - (pointer_expression "*(int *)(iVar3 + iVar4 * 4)" * (cast_expression "(int *)(iVar3 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar4 * 4)" ( (binary_expression "iVar3 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))))) ;) (expression_statement "cVar6 = pcVar5[iVar4];" (assignment_expression "cVar6 = pcVar5[iVar4]" identifier = (subscript_expression "pcVar5[iVar4]" identifier [ identifier ])) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;" (assignment_expression "*(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4" (pointer_expression "*(uint *)(iVar3 + uVar1 * 4)" * (cast_expression "(uint *)(iVar3 + uVar1 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar1 * 4)" ( (binary_expression "iVar3 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) = (binary_expression "uVar1 - iVar4" identifier - identifier)) ;) (labeled_statement "LAB_00016765:\n          uVar1 = uVar1 + 1;" statement_identifier : (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;)) (expression_statement "local_30[0] = pcVar10;" (assignment_expression "local_30[0] = pcVar10" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(local_34 != uVar1)" ( (binary_expression "local_34 != uVar1" identifier != identifier) )) ;) })) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "*local_3c = 0;" (assignment_expression "*local_3c = 0" (pointer_expression "*local_3c" * identifier) = number_literal) ;) (expression_statement "cVar6 = *pcVar10;" (assignment_expression "cVar6 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (expression_statement "pcVar9 = pcVar10;" (assignment_expression "pcVar9 = pcVar10" identifier = identifier) ;) (while_statement "while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }" while (parenthesized_expression "(cVar6 != '\0')" ( (binary_expression "cVar6 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }" { (if_statement "if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" if (parenthesized_expression "(pcVar5[uVar1] == cVar6)" ( (binary_expression "pcVar5[uVar1] == cVar6" (subscript_expression "pcVar5[uVar1]" identifier [ identifier ]) == identifier) )) (compound_statement "{\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }" { (expression_statement "local_30[0] = pcVar9 + 1;" (assignment_expression "local_30[0] = pcVar9 + 1" (subscript_expression "local_30[0]" identifier [ number_literal ]) = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (if_statement "if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }" if (parenthesized_expression "(local_34 == uVar1)" ( (binary_expression "local_34 == uVar1" identifier == identifier) )) (compound_statement "{\n            *local_3c = pcVar10;\n            break;\n          }" { (expression_statement "*local_3c = pcVar10;" (assignment_expression "*local_3c = pcVar10" (pointer_expression "*local_3c" * identifier) = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "cVar6 = pcVar9[1];" (assignment_expression "cVar6 = pcVar9[1]" identifier = (subscript_expression "pcVar9[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar9 = local_30[0];" (assignment_expression "pcVar9 = local_30[0]" identifier = (subscript_expression "local_30[0]" identifier [ number_literal ])) ;) }) (else_clause "else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" else (if_statement "if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }" { (expression_statement "cVar6 = pcVar9[1];" (assignment_expression "cVar6 = pcVar9[1]" identifier = (subscript_expression "pcVar9[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar10 = pcVar10 + 1;" (assignment_expression "pcVar10 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "pcVar9 = pcVar9 + 1;" (assignment_expression "pcVar9 = pcVar9 + 1" identifier = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" else (compound_statement "{\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" { (expression_statement "pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);" (assignment_expression "pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4)" identifier = (binary_expression "pcVar10 + *(int *)(iVar3 + uVar1 * 4)" identifier + (pointer_expression "*(int *)(iVar3 + uVar1 * 4)" * (cast_expression "(int *)(iVar3 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar1 * 4)" ( (binary_expression "iVar3 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))))) ;) (expression_statement "uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);" (assignment_expression "uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4)" identifier = (binary_expression "uVar1 - *(int *)(iVar3 + uVar1 * 4)" identifier - (pointer_expression "*(int *)(iVar3 + uVar1 * 4)" * (cast_expression "(int *)(iVar3 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar1 * 4)" ( (binary_expression "iVar3 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))))) ;) }))))) })) (expression_statement "*(int *)((int)ppuVar8 + -0x10) = iVar3;" (assignment_expression "*(int *)((int)ppuVar8 + -0x10) = iVar3" (pointer_expression "*(int *)((int)ppuVar8 + -0x10)" * (cast_expression "(int *)((int)ppuVar8 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar8 + -0x10)" ( (binary_expression "(int)ppuVar8 + -0x10" (cast_expression "(int)ppuVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;" (assignment_expression "*(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3" (pointer_expression "*(undefined4 *)((int)ppuVar8 + -0x14)" * (cast_expression "(undefined4 *)((int)ppuVar8 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar8 + -0x14)" ( (binary_expression "(int)ppuVar8 + -0x14" (cast_expression "(int)ppuVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000188a0();" (call_expression "FUN_000188a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000167ab;" goto statement_identifier ;) })) })) (expression_statement "ppuVar8 = ppuVar7;" (assignment_expression "ppuVar8 = ppuVar7" identifier = identifier) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\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                    \n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }" { (expression_statement "*(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;" (assignment_expression "*(undefined4 *)((int)ppuVar8 + -4) = 0x1682e" (pointer_expression "*(undefined4 *)((int)ppuVar8 + -4)" * (cast_expression "(undefined4 *)((int)ppuVar8 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar8 + -4)" ( (binary_expression "(int)ppuVar8 + -4" (cast_expression "(int)ppuVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000190c0();" (call_expression "FUN_000190c0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * 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 (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression & IDENT)) , (binary_expression (binary_expression IDENT >> LIT) == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (while_statement while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = (binary_expression IDENT - IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))))) ;) }))))) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_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 { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000166b0(undefined4 *param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint extraout_ECX;\n  int iVar4;\n  char *pcVar5;\n  char cVar6;\n  undefined4 **ppuVar7;\n  undefined4 **ppuVar8;\n  char *pcVar9;\n  int unaff_EDI;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  undefined8 uVar11;\n  undefined4 *local_3c;\n  int local_38;\n  uint local_34;\n  char *local_30 [4];\n  int local_20;\n  \n  uVar11 = FUN_0001826e();\n  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);\n  pcVar10 = (char *)uVar11;\n  local_38 = unaff_EDI + 0x8947;\n  local_3c = param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = extraout_ECX * 4;\n  ppuVar7 = &local_3c;\n  if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }\n  ppuVar8 = ppuVar7;\n  uVar2 = 0;\nLAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_000166b0(undefined4 *param_1)" (identifier "FUN_000166b0") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint extraout_ECX;\n  int iVar4;\n  char *pcVar5;\n  char cVar6;\n  undefined4 **ppuVar7;\n  undefined4 **ppuVar8;\n  char *pcVar9;\n  int unaff_EDI;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  undefined8 uVar11;\n  undefined4 *local_3c;\n  int local_38;\n  uint local_34;\n  char *local_30 [4];\n  int local_20;\n  \n  uVar11 = FUN_0001826e();\n  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);\n  pcVar10 = (char *)uVar11;\n  local_38 = unaff_EDI + 0x8947;\n  local_3c = param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = extraout_ECX * 4;\n  ppuVar7 = &local_3c;\n  if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }\n  ppuVar8 = ppuVar7;\n  uVar2 = 0;\nLAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }\n  return uVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint extraout_ECX;" (type_identifier "uint") (identifier "extraout_ECX") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char cVar6;" (primitive_type "char") (identifier "cVar6") (; ";")) (declaration "undefined4 **ppuVar7;" (type_identifier "undefined4") (pointer_declarator "**ppuVar7" (* "*") (pointer_declarator "*ppuVar7" (* "*") (identifier "ppuVar7"))) (; ";")) (declaration "undefined4 **ppuVar8;" (type_identifier "undefined4") (pointer_declarator "**ppuVar8" (* "*") (pointer_declarator "*ppuVar8" (* "*") (identifier "ppuVar8"))) (; ";")) (declaration "char *pcVar9;" (primitive_type "char") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined8 uVar11;" (type_identifier "undefined8") (identifier "uVar11") (; ";")) (declaration "undefined4 *local_3c;" (type_identifier "undefined4") (pointer_declarator "*local_3c" (* "*") (identifier "local_3c")) (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "uint local_34;" (type_identifier "uint") (identifier "local_34") (; ";")) (declaration "char *local_30 [4];" (primitive_type "char") (pointer_declarator "*local_30 [4]" (* "*") (array_declarator "local_30 [4]" (identifier "local_30") ([ "[") (number_literal "4") (] "]"))) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "uVar11 = FUN_0001826e();" (assignment_expression "uVar11 = FUN_0001826e()" (identifier "uVar11") (= "=") (call_expression "FUN_0001826e()" (identifier "FUN_0001826e") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);" (assignment_expression "pcVar5 = (char *)((ulonglong)uVar11 >> 0x20)" (identifier "pcVar5") (= "=") (cast_expression "(char *)((ulonglong)uVar11 >> 0x20)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulonglong)uVar11 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar11 >> 0x20" (cast_expression "(ulonglong)uVar11" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar11")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "pcVar10 = (char *)uVar11;" (assignment_expression "pcVar10 = (char *)uVar11" (identifier "pcVar10") (= "=") (cast_expression "(char *)uVar11" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar11"))) (; ";")) (expression_statement "local_38 = unaff_EDI + 0x8947;" (assignment_expression "local_38 = unaff_EDI + 0x8947" (identifier "local_38") (= "=") (binary_expression "unaff_EDI + 0x8947" (identifier "unaff_EDI") (+ "+") (number_literal "0x8947"))) (; ";")) (expression_statement "local_3c = param_1;" (assignment_expression "local_3c = param_1" (identifier "local_3c") (= "=") (identifier "param_1")) (; ";")) (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 = extraout_ECX * 4;" (assignment_expression "uVar1 = extraout_ECX * 4" (identifier "uVar1") (= "=") (binary_expression "extraout_ECX * 4" (identifier "extraout_ECX") (* "*") (number_literal "4"))) (; ";")) (expression_statement "ppuVar7 = &local_3c;" (assignment_expression "ppuVar7 = &local_3c" (identifier "ppuVar7") (= "=") (pointer_expression "&local_3c" (& "&") (identifier "local_3c"))) (; ";")) (if_statement "if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }" (if "if") (parenthesized_expression "((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0))" (( "(") (binary_expression "(-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)" (parenthesized_expression "(-1 < (int)uVar1)" (( "(") (binary_expression "-1 < (int)uVar1" (number_literal "-1") (< "<") (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1"))) () ")")) (&& "&&") (parenthesized_expression "(ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)" (( "(") (comma_expression "ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0" (assignment_expression "ppuVar7 = &local_3c" (identifier "ppuVar7") (= "=") (pointer_expression "&local_3c" (& "&") (identifier "local_3c"))) (, ",") (binary_expression "extraout_ECX >> 0x1e == 0" (binary_expression "extraout_ECX >> 0x1e" (identifier "extraout_ECX") (>> ">>") (number_literal "0x1e")) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    local_34 = extraout_ECX;\n    if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }\n    if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }\n  }" ({ "{") (expression_statement "local_34 = extraout_ECX;" (assignment_expression "local_34 = extraout_ECX" (identifier "local_34") (= "=") (identifier "extraout_ECX")) (; ";")) (if_statement "if (uVar1 < 0xfb1) {\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }\n    else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" (if "if") (parenthesized_expression "(uVar1 < 0xfb1)" (( "(") (binary_expression "uVar1 < 0xfb1" (identifier "uVar1") (< "<") (number_literal "0xfb1")) () ")")) (compound_statement "{\n      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);\n      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);\n      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);\n      iVar3 = (int)local_30 + iVar3;\n    }" ({ "{") (expression_statement "iVar3 = -(uVar1 + 0x2a & 0xfffffff0);" (assignment_expression "iVar3 = -(uVar1 + 0x2a & 0xfffffff0)" (identifier "iVar3") (= "=") (unary_expression "-(uVar1 + 0x2a & 0xfffffff0)" (- "-") (parenthesized_expression "(uVar1 + 0x2a & 0xfffffff0)" (( "(") (binary_expression "uVar1 + 0x2a & 0xfffffff0" (binary_expression "uVar1 + 0x2a" (identifier "uVar1") (+ "+") (number_literal "0x2a")) (& "&") (number_literal "0xfffffff0")) () ")")))) (; ";")) (expression_statement "ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);" (assignment_expression "ppuVar8 = (undefined4 **)((int)&local_3c + iVar3)" (identifier "ppuVar8") (= "=") (cast_expression "(undefined4 **)((int)&local_3c + iVar3)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)&local_3c + iVar3)" (( "(") (binary_expression "(int)&local_3c + iVar3" (cast_expression "(int)&local_3c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&local_3c" (& "&") (identifier "local_3c"))) (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (expression_statement "ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);" (assignment_expression "ppuVar7 = (undefined4 **)((int)&local_3c + iVar3)" (identifier "ppuVar7") (= "=") (cast_expression "(undefined4 **)((int)&local_3c + iVar3)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)&local_3c + iVar3)" (( "(") (binary_expression "(int)&local_3c + iVar3" (cast_expression "(int)&local_3c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&local_3c" (& "&") (identifier "local_3c"))) (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (expression_statement "iVar3 = (int)local_30 + iVar3;" (assignment_expression "iVar3 = (int)local_30 + iVar3" (identifier "iVar3") (= "=") (binary_expression "(int)local_30 + iVar3" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (identifier "iVar3"))) (; ";")) (} "}")) (else_clause "else {\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" (else "else") (compound_statement "{\n      local_30[0] = pcVar5;\n      iVar3 = FUN_00018850(uVar1);\n      ppuVar8 = &local_3c;\n      ppuVar7 = &local_3c;\n      pcVar5 = local_30[0];\n    }" ({ "{") (expression_statement "local_30[0] = pcVar5;" (assignment_expression "local_30[0] = pcVar5" (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "pcVar5")) (; ";")) (expression_statement "iVar3 = FUN_00018850(uVar1);" (assignment_expression "iVar3 = FUN_00018850(uVar1)" (identifier "iVar3") (= "=") (call_expression "FUN_00018850(uVar1)" (identifier "FUN_00018850") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "ppuVar8 = &local_3c;" (assignment_expression "ppuVar8 = &local_3c" (identifier "ppuVar8") (= "=") (pointer_expression "&local_3c" (& "&") (identifier "local_3c"))) (; ";")) (expression_statement "ppuVar7 = &local_3c;" (assignment_expression "ppuVar7 = &local_3c" (identifier "ppuVar7") (= "=") (pointer_expression "&local_3c" (& "&") (identifier "local_3c"))) (; ";")) (expression_statement "pcVar5 = local_30[0];" (assignment_expression "pcVar5 = local_30[0]" (identifier "pcVar5") (= "=") (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")))) (if_statement "if (iVar3 != 0) {\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = 0;\n      *(undefined4 *)(iVar3 + 4) = 1;\n      if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }\n      uVar1 = 0;\n      *local_3c = 0;\n      cVar6 = *pcVar10;\n      pcVar9 = pcVar10;\n      while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }\n      *(int *)((int)ppuVar8 + -0x10) = iVar3;\n      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;\n      FUN_000188a0();\n      uVar2 = 1;\n      goto LAB_000167ab;\n    }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if (2 < local_34) {\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }" (if "if") (parenthesized_expression "(2 < local_34)" (( "(") (binary_expression "2 < local_34" (number_literal "2") (< "<") (identifier "local_34")) () ")")) (compound_statement "{\n        uVar1 = 2;\n        do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);\n      }" ({ "{") (expression_statement "uVar1 = 2;" (assignment_expression "uVar1 = 2" (identifier "uVar1") (= "=") (number_literal "2")) (; ";")) (do_statement "do {\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        } while (local_34 != uVar1);" (do "do") (compound_statement "{\n          cVar6 = pcVar5[iVar4];\n          while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }\n          iVar4 = iVar4 + 1;\n          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;\nLAB_00016765:\n          uVar1 = uVar1 + 1;\n          local_30[0] = pcVar10;\n        }" ({ "{") (expression_statement "cVar6 = pcVar5[iVar4];" (assignment_expression "cVar6 = pcVar5[iVar4]" (identifier "cVar6") (= "=") (subscript_expression "pcVar5[iVar4]" (identifier "pcVar5") ([ "[") (identifier "iVar4") (] "]"))) (; ";")) (while_statement "while (pcVar5[uVar1 - 1] != cVar6) {\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }" (while "while") (parenthesized_expression "(pcVar5[uVar1 - 1] != cVar6)" (( "(") (binary_expression "pcVar5[uVar1 - 1] != cVar6" (subscript_expression "pcVar5[uVar1 - 1]" (identifier "pcVar5") ([ "[") (binary_expression "uVar1 - 1" (identifier "uVar1") (- "-") (number_literal "1")) (] "]")) (!= "!=") (identifier "cVar6")) () ")")) (compound_statement "{\n            if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }\n            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);\n            cVar6 = pcVar5[iVar4];\n          }" ({ "{") (if_statement "if (iVar4 == 0) {\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              *(uint *)(iVar3 + uVar1 * 4) = uVar1;\n              iVar4 = 0;\n              goto LAB_00016765;\n            }" ({ "{") (expression_statement "*(uint *)(iVar3 + uVar1 * 4) = uVar1;" (assignment_expression "*(uint *)(iVar3 + uVar1 * 4) = uVar1" (pointer_expression "*(uint *)(iVar3 + uVar1 * 4)" (* "*") (cast_expression "(uint *)(iVar3 + uVar1 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + uVar1 * 4)" (( "(") (binary_expression "iVar3 + uVar1 * 4" (identifier "iVar3") (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00016765;" (goto "goto") (statement_identifier "LAB_00016765") (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);" (assignment_expression "iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4)" (identifier "iVar4") (= "=") (binary_expression "iVar4 - *(int *)(iVar3 + iVar4 * 4)" (identifier "iVar4") (- "-") (pointer_expression "*(int *)(iVar3 + iVar4 * 4)" (* "*") (cast_expression "(int *)(iVar3 + iVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar4 * 4)" (( "(") (binary_expression "iVar3 + iVar4 * 4" (identifier "iVar3") (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (expression_statement "cVar6 = pcVar5[iVar4];" (assignment_expression "cVar6 = pcVar5[iVar4]" (identifier "cVar6") (= "=") (subscript_expression "pcVar5[iVar4]" (identifier "pcVar5") ([ "[") (identifier "iVar4") (] "]"))) (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;" (assignment_expression "*(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4" (pointer_expression "*(uint *)(iVar3 + uVar1 * 4)" (* "*") (cast_expression "(uint *)(iVar3 + uVar1 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + uVar1 * 4)" (( "(") (binary_expression "iVar3 + uVar1 * 4" (identifier "iVar3") (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (binary_expression "uVar1 - iVar4" (identifier "uVar1") (- "-") (identifier "iVar4"))) (; ";")) (labeled_statement "LAB_00016765:\n          uVar1 = uVar1 + 1;" (statement_identifier "LAB_00016765") (: ":") (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "local_30[0] = pcVar10;" (assignment_expression "local_30[0] = pcVar10" (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "pcVar10")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_34 != uVar1)" (( "(") (binary_expression "local_34 != uVar1" (identifier "local_34") (!= "!=") (identifier "uVar1")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "*local_3c = 0;" (assignment_expression "*local_3c = 0" (pointer_expression "*local_3c" (* "*") (identifier "local_3c")) (= "=") (number_literal "0")) (; ";")) (expression_statement "cVar6 = *pcVar10;" (assignment_expression "cVar6 = *pcVar10" (identifier "cVar6") (= "=") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10"))) (; ";")) (expression_statement "pcVar9 = pcVar10;" (assignment_expression "pcVar9 = pcVar10" (identifier "pcVar9") (= "=") (identifier "pcVar10")) (; ";")) (while_statement "while (cVar6 != '\0') {\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }" (while "while") (parenthesized_expression "(cVar6 != '\0')" (( "(") (binary_expression "cVar6 != '\0'" (identifier "cVar6") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }\n      }" ({ "{") (if_statement "if (pcVar5[uVar1] == cVar6) {\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }\n        else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" (if "if") (parenthesized_expression "(pcVar5[uVar1] == cVar6)" (( "(") (binary_expression "pcVar5[uVar1] == cVar6" (subscript_expression "pcVar5[uVar1]" (identifier "pcVar5") ([ "[") (identifier "uVar1") (] "]")) (== "==") (identifier "cVar6")) () ")")) (compound_statement "{\n          local_30[0] = pcVar9 + 1;\n          uVar1 = uVar1 + 1;\n          if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }\n          cVar6 = pcVar9[1];\n          pcVar9 = local_30[0];\n        }" ({ "{") (expression_statement "local_30[0] = pcVar9 + 1;" (assignment_expression "local_30[0] = pcVar9 + 1" (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "pcVar9 + 1" (identifier "pcVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (local_34 == uVar1) {\n            *local_3c = pcVar10;\n            break;\n          }" (if "if") (parenthesized_expression "(local_34 == uVar1)" (( "(") (binary_expression "local_34 == uVar1" (identifier "local_34") (== "==") (identifier "uVar1")) () ")")) (compound_statement "{\n            *local_3c = pcVar10;\n            break;\n          }" ({ "{") (expression_statement "*local_3c = pcVar10;" (assignment_expression "*local_3c = pcVar10" (pointer_expression "*local_3c" (* "*") (identifier "local_3c")) (= "=") (identifier "pcVar10")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "cVar6 = pcVar9[1];" (assignment_expression "cVar6 = pcVar9[1]" (identifier "cVar6") (= "=") (subscript_expression "pcVar9[1]" (identifier "pcVar9") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pcVar9 = local_30[0];" (assignment_expression "pcVar9 = local_30[0]" (identifier "pcVar9") (= "=") (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")) (else_clause "else if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" (else "else") (if_statement "if (uVar1 == 0) {\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }\n        else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          cVar6 = pcVar9[1];\n          pcVar10 = pcVar10 + 1;\n          uVar1 = 0;\n          pcVar9 = pcVar9 + 1;\n        }" ({ "{") (expression_statement "cVar6 = pcVar9[1];" (assignment_expression "cVar6 = pcVar9[1]" (identifier "cVar6") (= "=") (subscript_expression "pcVar9[1]" (identifier "pcVar9") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pcVar10 = pcVar10 + 1;" (assignment_expression "pcVar10 = pcVar10 + 1" (identifier "pcVar10") (= "=") (binary_expression "pcVar10 + 1" (identifier "pcVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar9 = pcVar9 + 1;" (assignment_expression "pcVar9 = pcVar9 + 1" (identifier "pcVar9") (= "=") (binary_expression "pcVar9 + 1" (identifier "pcVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" (else "else") (compound_statement "{\n          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);\n          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);\n        }" ({ "{") (expression_statement "pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);" (assignment_expression "pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4)" (identifier "pcVar10") (= "=") (binary_expression "pcVar10 + *(int *)(iVar3 + uVar1 * 4)" (identifier "pcVar10") (+ "+") (pointer_expression "*(int *)(iVar3 + uVar1 * 4)" (* "*") (cast_expression "(int *)(iVar3 + uVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + uVar1 * 4)" (( "(") (binary_expression "iVar3 + uVar1 * 4" (identifier "iVar3") (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (expression_statement "uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);" (assignment_expression "uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4)" (identifier "uVar1") (= "=") (binary_expression "uVar1 - *(int *)(iVar3 + uVar1 * 4)" (identifier "uVar1") (- "-") (pointer_expression "*(int *)(iVar3 + uVar1 * 4)" (* "*") (cast_expression "(int *)(iVar3 + uVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + uVar1 * 4)" (( "(") (binary_expression "iVar3 + uVar1 * 4" (identifier "iVar3") (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (} "}")))))) (} "}"))) (expression_statement "*(int *)((int)ppuVar8 + -0x10) = iVar3;" (assignment_expression "*(int *)((int)ppuVar8 + -0x10) = iVar3" (pointer_expression "*(int *)((int)ppuVar8 + -0x10)" (* "*") (cast_expression "(int *)((int)ppuVar8 + -0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)ppuVar8 + -0x10)" (( "(") (binary_expression "(int)ppuVar8 + -0x10" (cast_expression "(int)ppuVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuVar8")) (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;" (assignment_expression "*(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3" (pointer_expression "*(undefined4 *)((int)ppuVar8 + -0x14)" (* "*") (cast_expression "(undefined4 *)((int)ppuVar8 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)ppuVar8 + -0x14)" (( "(") (binary_expression "(int)ppuVar8 + -0x14" (cast_expression "(int)ppuVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuVar8")) (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x167a3")) (; ";")) (expression_statement "FUN_000188a0();" (call_expression "FUN_000188a0()" (identifier "FUN_000188a0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_000167ab;" (goto "goto") (statement_identifier "LAB_000167ab") (; ";")) (} "}"))) (} "}"))) (expression_statement "ppuVar8 = ppuVar7;" (assignment_expression "ppuVar8 = ppuVar7" (identifier "ppuVar8") (= "=") (identifier "ppuVar7")) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000167ab:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }" (statement_identifier "LAB_000167ab") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\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                    \n    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;\n    FUN_000190c0();\n  }" ({ "{") (expression_statement "*(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;" (assignment_expression "*(undefined4 *)((int)ppuVar8 + -4) = 0x1682e" (pointer_expression "*(undefined4 *)((int)ppuVar8 + -4)" (* "*") (cast_expression "(undefined4 *)((int)ppuVar8 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)ppuVar8 + -4)" (( "(") (binary_expression "(int)ppuVar8 + -4" (cast_expression "(int)ppuVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuVar8")) (+ "+") (number_literal "-4")) () ")")))) (= "=") (number_literal "0x1682e")) (; ";")) (expression_statement "FUN_000190c0();" (call_expression "FUN_000190c0()" (identifier "FUN_000190c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

type_1 function_1(type_2 *haystack,type_2 *needle,size_t needle_len,type_2 **resultp)

{
  type_1 _Var1;
  type_3 var_5;
  void *var_8;
  type_3 var_4;
  int var_6;
  char *pcVar5;
  char var_10;
  type_2 **ppuVar7;
  type_2 **ppuVar8;
  char *var_11;
  int var_2;
  char *var_12;
  int var_3;
  type_4 uVar11;
  type_2 *local_3c;
  int local_38;
  type_3 var_9;
  char *local_30 [4];
  int var_14;
  
  uVar11 = var_1();
  pcVar5 = (char *)((type_5)uVar11 >> 0x20);
  var_12 = (char *)uVar11;
  var_9 = var_4;
  local_38 = var_2 + 0x8947;
  local_3c = haystack;
  var_14 = *(int *)(var_3 + 0x14);
  var_5 = var_4 * 4;
  ppuVar7 = &local_3c;
  if ((-1 < (int)var_5) && (ppuVar7 = &local_3c, var_4 >> 0x1e == 0)) {
    if (var_5 < 0xfb1) {
      var_6 = -(var_5 + 0x2a & 0xfffffff0);
      ppuVar8 = (type_2 **)((int)&local_3c + var_6);
      ppuVar7 = (type_2 **)((int)&local_3c + var_6);
      var_8 = (void *)((int)local_30 + var_6);
    }
    else {
      local_30[0] = pcVar5;
      var_8 = var_7(var_5);
      ppuVar8 = &local_3c;
      ppuVar7 = &local_3c;
      pcVar5 = local_30[0];
    }
    if (var_8 != (void *)0x0) {
      var_6 = 0;
      *(type_6 *)((int)var_8 + 4) = 1;
      if (2 < var_9) {
        local_30[0] = var_12;
        var_5 = 2;
        do {
          var_10 = pcVar5[var_6];
          while (pcVar5[var_5 - 1] != var_10) {
            if (var_6 == 0) {
              *(type_3 *)((int)var_8 + var_5 * 4) = var_5;
              var_6 = 0;
              goto LAB_00016765;
            }
            var_6 = var_6 - *(int *)((int)var_8 + var_6 * 4);
            var_10 = pcVar5[var_6];
          }
          var_6 = var_6 + 1;
          *(type_3 *)((int)var_8 + var_5 * 4) = var_5 - var_6;
LAB_00016765:
          var_5 = var_5 + 1;
        } while (var_9 != var_5);
      }
      var_5 = 0;
      local_3c[0] = '\0';
      local_3c[1] = '\0';
      local_3c[2] = '\0';
      local_3c[3] = '\0';
      var_10 = *var_12;
      var_11 = var_12;
      while (var_10 != '\0') {
        if (pcVar5[var_5] == var_10) {
          var_5 = var_5 + 1;
          local_30[0] = var_11 + 1;
          if (var_9 == var_5) {
            *(char **)local_3c = var_12;
            break;
          }
          var_10 = var_11[1];
          var_11 = local_30[0];
        }
        else if (var_5 == 0) {
          var_10 = var_11[1];
          var_12 = var_12 + 1;
          var_5 = 0;
          var_11 = var_11 + 1;
        }
        else {
          var_12 = var_12 + *(int *)((int)var_8 + var_5 * 4);
          var_5 = var_5 - *(int *)((int)var_8 + var_5 * 4);
        }
      }
      *(void **)((int)ppuVar8 + -0x10) = var_8;
      *(type_6 *)((int)ppuVar8 + -0x14) = 0x167a3;
      var_13(*(void **)((int)ppuVar8 + -0x10));
      _Var1 = true;
      goto LAB_000167ab;
    }
  }
  ppuVar8 = ppuVar7;
  _Var1 = false;
LAB_000167ab:
  if (var_14 != *(int *)(var_3 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    *(type_6 *)((int)ppuVar8 + -4) = 0x1682e;
    var_15();
  }
  return _Var1;
}


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

undefined4 MASKED(undefined4 *param_1)

{
  uint uVar1;
  undefined4 uVar2;
  int iVar3;
  uint extraout_ECX;
  int iVar4;
  char *pcVar5;
  char cVar6;
  undefined4 **ppuVar7;
  undefined4 **ppuVar8;
  char *pcVar9;
  int unaff_EDI;
  char *pcVar10;
  int in_GS_OFFSET;
  undefined8 uVar11;
  undefined4 *local_3c;
  int local_38;
  uint local_34;
  char *local_30 [4];
  int local_20;
  
  uVar11 = FUN_0001826e();
  pcVar5 = (char *)((ulonglong)uVar11 >> 0x20);
  pcVar10 = (char *)uVar11;
  local_38 = unaff_EDI + 0x8947;
  local_3c = param_1;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = extraout_ECX * 4;
  ppuVar7 = &local_3c;
  if ((-1 < (int)uVar1) && (ppuVar7 = &local_3c, extraout_ECX >> 0x1e == 0)) {
    local_34 = extraout_ECX;
    if (uVar1 < 0xfb1) {
      iVar3 = -(uVar1 + 0x2a & 0xfffffff0);
      ppuVar8 = (undefined4 **)((int)&local_3c + iVar3);
      ppuVar7 = (undefined4 **)((int)&local_3c + iVar3);
      iVar3 = (int)local_30 + iVar3;
    }
    else {
      local_30[0] = pcVar5;
      iVar3 = FUN_00018850(uVar1);
      ppuVar8 = &local_3c;
      ppuVar7 = &local_3c;
      pcVar5 = local_30[0];
    }
    if (iVar3 != 0) {
      iVar4 = 0;
      *(undefined4 *)(iVar3 + 4) = 1;
      if (2 < local_34) {
        uVar1 = 2;
        do {
          cVar6 = pcVar5[iVar4];
          while (pcVar5[uVar1 - 1] != cVar6) {
            if (iVar4 == 0) {
              *(uint *)(iVar3 + uVar1 * 4) = uVar1;
              iVar4 = 0;
              goto LAB_00016765;
            }
            iVar4 = iVar4 - *(int *)(iVar3 + iVar4 * 4);
            cVar6 = pcVar5[iVar4];
          }
          iVar4 = iVar4 + 1;
          *(uint *)(iVar3 + uVar1 * 4) = uVar1 - iVar4;
LAB_00016765:
          uVar1 = uVar1 + 1;
          local_30[0] = pcVar10;
        } while (local_34 != uVar1);
      }
      uVar1 = 0;
      *local_3c = 0;
      cVar6 = *pcVar10;
      pcVar9 = pcVar10;
      while (cVar6 != '\0') {
        if (pcVar5[uVar1] == cVar6) {
          local_30[0] = pcVar9 + 1;
          uVar1 = uVar1 + 1;
          if (local_34 == uVar1) {
            *local_3c = pcVar10;
            break;
          }
          cVar6 = pcVar9[1];
          pcVar9 = local_30[0];
        }
        else if (uVar1 == 0) {
          cVar6 = pcVar9[1];
          pcVar10 = pcVar10 + 1;
          uVar1 = 0;
          pcVar9 = pcVar9 + 1;
        }
        else {
          pcVar10 = pcVar10 + *(int *)(iVar3 + uVar1 * 4);
          uVar1 = uVar1 - *(int *)(iVar3 + uVar1 * 4);
        }
      }
      *(int *)((int)ppuVar8 + -0x10) = iVar3;
      *(undefined4 *)((int)ppuVar8 + -0x14) = 0x167a3;
      FUN_000188a0();
      uVar2 = 1;
      goto LAB_000167ab;
    }
  }
  ppuVar8 = ppuVar7;
  uVar2 = 0;
LAB_000167ab:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    *(undefined4 *)((int)ppuVar8 + -4) = 0x1682e;
    FUN_000190c0();
  }
  return uVar2;
}

