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

int __regparm3 match_upattern(char *string,char *pat,int mtype,char **sp,char **ep)

{
  size_t sVar1;
  size_t sVar2;
  char *pcVar3;
  char *pcVar4;
  int iVar5;
  char *pcVar6;
  char cVar7;
  int iVar8;
  size_t local_28;
  char *local_20;
  
  cVar7 = *pat;
  if (cVar7 == '\0') {
    sVar2 = 3;
LAB_000708a7:
    pcVar3 = (char *)xmalloc(sVar2);
    cVar7 = *pat;
    pcVar4 = pcVar3;
    pcVar6 = pat;
    if (mtype == 1) {
      if (cVar7 != '\0') goto LAB_000708e8;
LAB_000708ff:
      if (pcVar6[-1] == '*') {
        if (pcVar6[-2] != '\\') goto LAB_0007090f;
        if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {
          iVar5 = 1;
          pcVar6 = pcVar6 + -4;
          do {
            iVar5 = 1 - iVar5;
            if (pat + -1 == pcVar6) break;
            cVar7 = *pcVar6;
            pcVar6 = pcVar6 + -1;
          } while (cVar7 == '\\');
          if (iVar5 == 0) goto LAB_0007090f;
        }
      }
      *pcVar4 = '*';
      pcVar4 = pcVar4 + 1;
    }
    else {
      if ((cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0)))) {
        *pcVar3 = '*';
        cVar7 = *pat;
        goto joined_r0x000708d9;
      }
LAB_000708e8:
      do {
        pcVar6 = pcVar6 + 1;
        *pcVar4 = cVar7;
        cVar7 = *pcVar6;
joined_r0x000708d9:
        pcVar4 = pcVar4 + 1;
      } while (cVar7 != '\0');
      if (mtype != 2) goto LAB_000708ff;
    }
LAB_0007090f:
    *pcVar4 = '\0';
LAB_00070912:
    iVar5 = 0x10;
    iVar8 = extended_glob;
    if (extended_glob != 0) {
      iVar5 = 0x30;
      iVar8 = 0x20;
    }
    if (match_ignore_case == 0) {
      iVar5 = iVar8;
    }
    iVar5 = strmatch(pcVar3,string,iVar5);
    if (pcVar3 != pat) {
      free(pcVar3);
    }
  }
  else {
    pcVar3 = pat;
    if (pat[1] == '\0') {
      if (cVar7 != '*') {
        sVar2 = 4;
        goto LAB_000708a7;
      }
      goto LAB_00070912;
    }
    sVar1 = 2;
    if (pat[2] != '\0') {
      sVar1 = strlen(pat);
    }
    if (cVar7 != '*') {
LAB_00070885:
      sVar2 = sVar1 + 3;
      goto LAB_000708a7;
    }
    if (pat[1] != '(') {
      if (pat[sVar1 - 1] == '*') goto LAB_00070912;
      goto LAB_00070885;
    }
    if ((extended_glob != 0) || (pat[sVar1 - 1] != '*')) {
      sVar2 = sVar1 + 3;
      goto LAB_000708a7;
    }
    if (match_ignore_case == 0) {
      iVar5 = strmatch(pat,string,0);
    }
    else {
      iVar5 = strmatch(pat,string,0x10);
    }
  }
  if (iVar5 == 1) {
    return 0;
  }
  if ((string == (char *)0x0) || (*string == '\0')) {
    local_28 = umatchlen(pat,0);
    local_20 = string;
    if (mtype == 1) goto LAB_00070c12;
    if (mtype == 2) {
      sVar2 = 0;
      goto LAB_00070b42;
    }
    if (mtype != 0) {
      return 0;
    }
  }
  else {
    sVar2 = 1;
    if ((string[1] != '\0') && (sVar2 = 2, string[2] != '\0')) {
      sVar2 = strlen(string);
    }
    local_20 = string + sVar2;
    local_28 = umatchlen(pat,sVar2);
    if (mtype == 1) {
LAB_00070c12:
      iVar5 = match_ignore_case;
      if (match_ignore_case != 0) {
        iVar5 = 0x10;
      }
      iVar5 = match_pattern_char(pat,string,iVar5);
      if (iVar5 == 0) {
        return 0;
      }
      if (local_28 != 0xffffffff) {
        local_20 = string + local_28;
      }
      while( true ) {
        if (local_20 < string) {
          return 0;
        }
        cVar7 = *local_20;
        *local_20 = '\0';
        iVar5 = 0x10;
        iVar8 = extended_glob;
        if (extended_glob != 0) {
          iVar5 = 0x30;
          iVar8 = 0x20;
        }
        if (match_ignore_case == 0) {
          iVar5 = iVar8;
        }
        iVar5 = strmatch(pat,string,iVar5);
        if (iVar5 == 0) break;
        *local_20 = cVar7;
        if (local_28 != 0xffffffff) {
          return 0;
        }
        local_20 = local_20 + -1;
      }
      *local_20 = cVar7;
      *sp = string;
      *ep = local_20;
      return 1;
    }
    if (mtype == 2) {
LAB_00070b42:
      if (local_28 != 0xffffffff) {
        sVar2 = local_28;
      }
      pcVar3 = local_20 + -sVar2;
      while( true ) {
        if (local_20 < pcVar3) {
          return 0;
        }
        iVar5 = 0x10;
        iVar8 = extended_glob;
        if (extended_glob != 0) {
          iVar5 = 0x30;
          iVar8 = 0x20;
        }
        if (match_ignore_case == 0) {
          iVar5 = iVar8;
        }
        iVar5 = strmatch(pat,pcVar3,iVar5);
        if (iVar5 == 0) break;
        if (local_28 != 0xffffffff) {
          return 0;
        }
        pcVar3 = pcVar3 + 1;
      }
      *sp = pcVar3;
      *ep = local_20;
      return 1;
    }
    if (mtype != 0) {
      return 0;
    }
    if (local_20 < string) {
      return 0;
    }
  }
  do {
    iVar5 = match_ignore_case;
    if (match_ignore_case != 0) {
      iVar5 = 0x10;
    }
    iVar5 = match_pattern_char(pat,string,iVar5);
    if (iVar5 != 0) {
      pcVar3 = local_20;
      if ((local_28 != 0xffffffff) && (pcVar3 = string + local_28, local_20 < string + local_28)) {
        return 0;
      }
      for (; string <= pcVar3; pcVar3 = pcVar3 + -1) {
        cVar7 = *pcVar3;
        *pcVar3 = '\0';
        iVar5 = 0x10;
        iVar8 = extended_glob;
        if (extended_glob != 0) {
          iVar5 = 0x30;
          iVar8 = 0x20;
        }
        if (match_ignore_case == 0) {
          iVar5 = iVar8;
        }
        iVar5 = strmatch(pat,string,iVar5);
        if (iVar5 == 0) {
          *pcVar3 = cVar7;
          *sp = string;
          *ep = pcVar3;
          return 1;
        }
        *pcVar3 = cVar7;
        if (local_28 != 0xffffffff) break;
      }
    }
    string = string + 1;
    if (local_20 < string) {
      return 0;
    }
  } while( true );
}



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

undefined4 __regparm3
FUN_00070820(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)

{
  size_t sVar1;
  int iVar2;
  char *pcVar3;
  char *pcVar4;
  char *pcVar5;
  char cVar6;
  int iVar7;
  size_t local_28;
  char *local_20;
  
  cVar6 = *param_2;
  if (cVar6 == '\0') {
    iVar2 = 3;
LAB_000708a7:
    pcVar3 = (char *)xmalloc(iVar2);
    cVar6 = *param_2;
    pcVar4 = pcVar3;
    pcVar5 = param_2;
    if (param_3 == 1) {
      if (cVar6 != '\0') goto LAB_000708e8;
LAB_000708ff:
      if (pcVar5[-1] == '*') {
        if (pcVar5[-2] != '\\') goto LAB_0007090f;
        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {
          iVar2 = 1;
          pcVar5 = pcVar5 + -4;
          do {
            iVar2 = 1 - iVar2;
            if (param_2 + -1 == pcVar5) break;
            cVar6 = *pcVar5;
            pcVar5 = pcVar5 + -1;
          } while (cVar6 == '\\');
          if (iVar2 == 0) goto LAB_0007090f;
        }
      }
      *pcVar4 = '*';
      pcVar4 = pcVar4 + 1;
    }
    else {
      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {
        *pcVar3 = '*';
        cVar6 = *param_2;
        goto joined_r0x000708d9;
      }
LAB_000708e8:
      do {
        pcVar5 = pcVar5 + 1;
        *pcVar4 = cVar6;
        cVar6 = *pcVar5;
joined_r0x000708d9:
        pcVar4 = pcVar4 + 1;
      } while (cVar6 != '\0');
      if (param_3 != 2) goto LAB_000708ff;
    }
LAB_0007090f:
    *pcVar4 = '\0';
LAB_00070912:
    iVar2 = 0x10;
    iVar7 = extended_glob;
    if (extended_glob != 0) {
      iVar2 = 0x30;
      iVar7 = 0x20;
    }
    if (match_ignore_case == 0) {
      iVar2 = iVar7;
    }
    iVar2 = strmatch(pcVar3,param_1,iVar2);
    if (pcVar3 != param_2) {
      free(pcVar3);
    }
  }
  else {
    pcVar3 = param_2;
    if (param_2[1] == '\0') {
      if (cVar6 != '*') {
        iVar2 = 4;
        goto LAB_000708a7;
      }
      goto LAB_00070912;
    }
    sVar1 = 2;
    if (param_2[2] != '\0') {
      sVar1 = strlen(param_2);
    }
    if (cVar6 != '*') {
LAB_00070885:
      iVar2 = sVar1 + 3;
      goto LAB_000708a7;
    }
    if (param_2[1] != '(') {
      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;
      goto LAB_00070885;
    }
    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {
      iVar2 = sVar1 + 3;
      goto LAB_000708a7;
    }
    if (match_ignore_case == 0) {
      iVar2 = strmatch(param_2,param_1,0);
    }
    else {
      iVar2 = strmatch(param_2,param_1,0x10);
    }
  }
  if (iVar2 == 1) {
    return 0;
  }
  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {
    local_28 = umatchlen(param_2,0);
    local_20 = param_1;
    if (param_3 == 1) goto LAB_00070c12;
    if (param_3 == 2) {
      sVar1 = 0;
      goto LAB_00070b42;
    }
    if (param_3 != 0) {
      return 0;
    }
  }
  else {
    sVar1 = 1;
    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {
      sVar1 = strlen(param_1);
    }
    local_20 = param_1 + sVar1;
    local_28 = umatchlen(param_2,sVar1);
    if (param_3 == 1) {
LAB_00070c12:
      iVar2 = match_ignore_case;
      if (match_ignore_case != 0) {
        iVar2 = 0x10;
      }
      iVar2 = match_pattern_char(param_2,param_1,iVar2);
      if (iVar2 == 0) {
        return 0;
      }
      if (local_28 != 0xffffffff) {
        local_20 = param_1 + local_28;
      }
      while( true ) {
        if (local_20 < param_1) {
          return 0;
        }
        cVar6 = *local_20;
        *local_20 = '\0';
        iVar2 = 0x10;
        iVar7 = extended_glob;
        if (extended_glob != 0) {
          iVar2 = 0x30;
          iVar7 = 0x20;
        }
        if (match_ignore_case == 0) {
          iVar2 = iVar7;
        }
        iVar2 = strmatch(param_2,param_1,iVar2);
        if (iVar2 == 0) break;
        *local_20 = cVar6;
        if (local_28 != 0xffffffff) {
          return 0;
        }
        local_20 = local_20 + -1;
      }
      *local_20 = cVar6;
      *param_4 = param_1;
      *param_5 = local_20;
      return 1;
    }
    if (param_3 == 2) {
LAB_00070b42:
      if (local_28 != 0xffffffff) {
        sVar1 = local_28;
      }
      pcVar3 = local_20 + -sVar1;
      while( true ) {
        if (local_20 < pcVar3) {
          return 0;
        }
        iVar2 = 0x10;
        iVar7 = extended_glob;
        if (extended_glob != 0) {
          iVar2 = 0x30;
          iVar7 = 0x20;
        }
        if (match_ignore_case == 0) {
          iVar2 = iVar7;
        }
        iVar2 = strmatch(param_2,pcVar3,iVar2);
        if (iVar2 == 0) break;
        if (local_28 != 0xffffffff) {
          return 0;
        }
        pcVar3 = pcVar3 + 1;
      }
      *param_4 = pcVar3;
      *param_5 = local_20;
      return 1;
    }
    if (param_3 != 0) {
      return 0;
    }
    if (local_20 < param_1) {
      return 0;
    }
  }
  do {
    iVar2 = match_ignore_case;
    if (match_ignore_case != 0) {
      iVar2 = 0x10;
    }
    iVar2 = match_pattern_char(param_2,param_1,iVar2);
    if (iVar2 != 0) {
      pcVar3 = local_20;
      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))
      {
        return 0;
      }
      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {
        cVar6 = *pcVar3;
        *pcVar3 = '\0';
        iVar2 = 0x10;
        iVar7 = extended_glob;
        if (extended_glob != 0) {
          iVar2 = 0x30;
          iVar7 = 0x20;
        }
        if (match_ignore_case == 0) {
          iVar2 = iVar7;
        }
        iVar2 = strmatch(param_2,param_1,iVar2);
        if (iVar2 == 0) {
          *pcVar3 = cVar6;
          *param_4 = param_1;
          *param_5 = pcVar3;
          return 1;
        }
        *pcVar3 = cVar6;
        if (local_28 != 0xffffffff) break;
      }
    }
    param_1 = param_1 + 1;
    if (local_20 < param_1) {
      return 0;
    }
  } while( true );
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000312b0
ADD EBX,0x1017d3
SUB ESP,0x2c
MOVZX EDX,byte ptr [EDX]
MOV dword ptr [ESP + 0x18],ECX
TEST DL,DL
JZ 0x00070898
CMP byte ptr [EBP + 0x1],0x0
JZ 0x00070b20
CMP byte ptr [EBP + 0x2],0x0
MOV EAX,0x2
JZ 0x0007086b
MOV byte ptr [ESP + 0xc],DL
SUB ESP,0xc
PUSH EBP
CALL 0x0002e760
ADD ESP,0x10
MOVZX EDX,byte ptr [ESP + 0xc]
CMP DL,0x2a
JNZ 0x00070885
CMP byte ptr [EBP + 0x1],0x28
JZ 0x00070d38
CMP byte ptr [EBP + EAX*0x1 + -0x1],0x2a
JZ 0x00070b29
LEA EDI,[EBX + 0x72b4]
ADD EAX,0x3
MOV dword ptr [ESP + 0x10],EDI
JMP 0x000708a7
LEA EDI,[EBX + 0x72b4]
MOV EAX,0x3
MOV dword ptr [ESP + 0x10],EDI
SUB ESP,0xc
PUSH EAX
CALL 0x000ad700
ADD ESP,0x10
MOVZX EDX,byte ptr [EBP]
CMP dword ptr [ESP + 0x18],0x1
MOV EDI,EAX
JZ 0x00070af0
CMP DL,0x2a
JZ 0x00070b00
MOV byte ptr [EDI],0x2a
MOVZX EDX,byte ptr [EBP]
LEA EAX,[EDI + 0x1]
TEST DL,DL
JZ 0x00070bf7
MOV ECX,EBP
LEA ESI,[ESI]
ADD ECX,0x1
ADD EAX,0x1
MOV byte ptr [EAX + -0x1],DL
MOVZX EDX,byte ptr [ECX]
TEST DL,DL
JNZ 0x000708e8
CMP dword ptr [ESP + 0x18],0x2
JZ 0x0007090f
CMP byte ptr [ECX + -0x1],0x2a
JZ 0x00070cd0
MOV byte ptr [EAX],0x2a
ADD EAX,0x1
MOV byte ptr [EAX],0x0
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EAX]
MOV EAX,0x10
TEST EDX,EDX
JZ 0x0007092b
MOV EAX,0x30
MOV EDX,0x20
LEA ECX,[EBX + 0x5cb0]
MOV dword ptr [ESP + 0xc],ECX
MOV ECX,dword ptr [ECX]
TEST ECX,ECX
CMOVZ EAX,EDX
SUB ESP,0x4
PUSH EAX
PUSH ESI
PUSH EDI
CALL 0x000ce670
ADD ESP,0x10
CMP EDI,EBP
JZ 0x00070962
MOV dword ptr [ESP + 0x14],EAX
SUB ESP,0xc
PUSH EDI
CALL 0x0002e200
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x14]
CMP EAX,0x1
JZ 0x000709d0
TEST ESI,ESI
JZ 0x000709e0
CMP byte ptr [ESI],0x0
JZ 0x000709e0
CMP byte ptr [ESI + 0x1],0x0
MOV EDX,0x1
JZ 0x00070994
CMP byte ptr [ESI + 0x2],0x0
MOV EDX,0x2
JZ 0x00070994
SUB ESP,0xc
PUSH ESI
CALL 0x0002e760
ADD ESP,0x10
MOV EDX,EAX
SUB ESP,0x8
LEA EDI,[ESI + EDX*0x1]
PUSH EDX
MOV dword ptr [ESP + 0x28],EDX
PUSH EBP
CALL 0x000d4250
MOV dword ptr [ESP + 0x24],EAX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x18]
CMP EAX,0x1
JZ 0x00070c12
CMP EAX,0x2
MOV EDX,dword ptr [ESP + 0x1c]
JZ 0x00070b40
TEST EAX,EAX
JZ 0x00070be0
NOP
XOR EAX,EAX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x000d4250
MOV dword ptr [ESP + 0x24],EAX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x18]
CMP EAX,0x1
JZ 0x00070c10
CMP EAX,0x2
JZ 0x00070d60
TEST EAX,EAX
JNZ 0x000709d0
MOV EAX,EBP
MOV dword ptr [ESP + 0x1c],ESI
MOV EBP,ESI
MOV ESI,EAX
JMP 0x00070a29
ADD EBP,0x1
CMP EBP,dword ptr [ESP + 0x1c]
JA 0x000709d0
MOV EAX,dword ptr [ESP + 0xc]
MOV ECX,0x10
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
CMOVNZ EAX,ECX
SUB ESP,0x4
PUSH EAX
PUSH EBP
PUSH ESI
CALL 0x000d40a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00070a20
CMP dword ptr [ESP + 0x14],-0x1
JZ 0x00070d70
MOV EAX,dword ptr [ESP + 0x14]
LEA EDI,[EBP + EAX*0x1]
CMP EDI,dword ptr [ESP + 0x1c]
JA 0x000709d0
CMP EDI,EBP
JC 0x00070a20
MOV dword ptr [ESP + 0x18],ESI
MOV ESI,EDI
JMP 0x00070a90
CMP dword ptr [ESP + 0x14],-0x1
MOV byte ptr [ESI],AL
JNZ 0x00070c00
SUB ESI,0x1
CMP ESI,EBP
JC 0x00070c00
MOV EAX,dword ptr [ESP + 0x10]
MOVZX EDI,byte ptr [ESI]
MOV byte ptr [ESI],0x0
MOV ECX,dword ptr [EAX]
MOV EAX,0x10
TEST ECX,ECX
JZ 0x00070aaf
MOV EAX,0x30
MOV ECX,0x20
MOV EDX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [EDX]
TEST EDX,EDX
CMOVZ EAX,ECX
SUB ESP,0x4
PUSH EAX
PUSH EBP
PUSH dword ptr [ESP + 0x24]
CALL 0x000ce670
ADD ESP,0x10
TEST EAX,EAX
MOV EAX,EDI
JNZ 0x00070a78
MOV EDX,ESI
MOV byte ptr [EDX],AL
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [EAX],EBP
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [EAX],EDX
ADD ESP,0x2c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,EBP
TEST DL,DL
JNZ 0x000708df
JMP 0x000708ff
CMP byte ptr [EBP + 0x1],0x28
JNZ 0x000708df
MOV EAX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x000708cd
MOV EAX,EDI
JMP 0x000708df
CMP DL,0x2a
JNZ 0x00070d79
LEA EAX,[EBX + 0x72b4]
MOV EDI,EBP
MOV dword ptr [ESP + 0x10],EAX
JMP 0x00070912
MOV ESI,EDI
MOV ECX,dword ptr [ESP + 0x14]
MOV EAX,EDX
NEG EAX
MOV EDI,ECX
NEG EDI
CMP ECX,-0x1
CMOVNZ EAX,EDI
LEA EDI,[ESI + EAX*0x1]
CMP EDI,ESI
JA 0x000709d0
MOV EAX,ESI
MOV ESI,EDI
MOV EDI,EAX
JMP 0x00070b86
CMP dword ptr [ESP + 0x14],-0x1
JNZ 0x000709d0
ADD ESI,0x1
CMP ESI,EDI
JA 0x000709d0
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [EAX]
MOV EAX,0x10
TEST ECX,ECX
JZ 0x00070b9f
MOV EAX,0x30
MOV ECX,0x20
MOV EDX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [EDX]
TEST EDX,EDX
CMOVZ EAX,ECX
SUB ESP,0x4
PUSH EAX
PUSH ESI
PUSH EBP
CALL 0x000ce670
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00070b70
MOV EAX,EDI
MOV EDI,ESI
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [EAX],EDI
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [EAX],ESI
MOV EAX,0x1
JMP 0x000709d2
CMP ESI,EDI
JA 0x000709d0
MOV EAX,EBP
MOV dword ptr [ESP + 0x1c],EDI
MOV EBP,ESI
MOV ESI,EAX
JMP 0x00070a29
MOV ECX,EBP
JMP 0x000708f8
MOV ESI,dword ptr [ESP + 0x18]
JMP 0x00070a20
MOV EDI,ESI
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,0x10
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
CMOVNZ EAX,EDX
SUB ESP,0x4
PUSH EAX
PUSH ESI
PUSH EBP
CALL 0x000d40a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000709d0
MOV ECX,dword ptr [ESP + 0x14]
LEA EAX,[ESI + ECX*0x1]
CMP ECX,-0x1
CMOVNZ EDI,EAX
CMP ESI,EDI
JA 0x000709d0
MOV dword ptr [ESP + 0x18],EBP
JMP 0x00070c72
MOV EAX,EBP
CMP dword ptr [ESP + 0x14],-0x1
MOV byte ptr [EDI],AL
JNZ 0x000709d0
SUB EDI,0x1
CMP ESI,EDI
JA 0x000709d0
MOV EAX,dword ptr [ESP + 0x10]
MOVZX EBP,byte ptr [EDI]
MOV byte ptr [EDI],0x0
MOV EDX,dword ptr [EAX]
MOV EAX,0x10
TEST EDX,EDX
JZ 0x00070c91
MOV EAX,0x30
MOV EDX,0x20
MOV ECX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ECX]
TEST ECX,ECX
CMOVZ EAX,EDX
SUB ESP,0x4
PUSH EAX
PUSH ESI
PUSH dword ptr [ESP + 0x24]
CALL 0x000ce670
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00070c58
MOV EAX,dword ptr [ESP + 0x40]
MOV ECX,EBP
MOV byte ptr [EDI],CL
MOV dword ptr [EAX],ESI
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [EAX],EDI
MOV EAX,0x1
JMP 0x000709d2
CMP byte ptr [ECX + -0x2],0x5c
JNZ 0x0007090f
LEA EDX,[ECX + -0x3]
CMP EBP,EDX
JA 0x00070909
CMP byte ptr [ECX + -0x3],0x5c
LEA EDX,[ECX + -0x4]
JNZ 0x00070909
MOV dword ptr [ESP + 0xc],EDI
MOV ECX,0x1
LEA EDI,[EBP + -0x1]
MOV dword ptr [ESP + 0x14],EAX
JMP 0x00070d11
SUB EDX,0x1
CMP byte ptr [EDX + 0x1],0x5c
JNZ 0x00070d1e
MOV EAX,0x1
SUB EAX,ECX
MOV ECX,EAX
CMP EDI,EDX
JNZ 0x00070d08
MOV EDI,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESP + 0x14]
TEST ECX,ECX
JZ 0x0007090f
JMP 0x00070909
LEA EDI,[EBX + 0x72b4]
MOV EDX,dword ptr [EDI]
MOV dword ptr [ESP + 0x10],EDI
TEST EDX,EDX
JNZ 0x00070d4f
CMP byte ptr [EBP + EAX*0x1 + -0x1],0x2a
JZ 0x00070d8d
ADD EAX,0x3
JMP 0x000708a7
XOR EDX,EDX
JMP 0x00070b42
MOV EDI,dword ptr [ESP + 0x1c]
JMP 0x00070a68
LEA EDI,[EBX + 0x72b4]
MOV EAX,0x4
MOV dword ptr [ESP + 0x10],EDI
JMP 0x000708a7
LEA EAX,[EBX + 0x5cb0]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x00070db1
SUB ESP,0x4
PUSH 0x0
PUSH ESI
PUSH EBP
CALL 0x000ce670
ADD ESP,0x10
JMP 0x00070962
SUB ESP,0x4
PUSH 0x10
PUSH ESI
PUSH EBP
CALL 0x000ce670
ADD ESP,0x10
JMP 0x00070962
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3\nFUN_00070820(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char cVar6;\n  int iVar7;\n  size_t local_28;\n  char *local_20;\n  \n  cVar6 = *param_2;\n  if (cVar6 == '\0') {\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }\n  if (iVar2 == 1) {\n    return 0;\n  }\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }\n  do {\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  } while( true );\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_00070820(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char cVar6;\n  int iVar7;\n  size_t local_28;\n  char *local_20;\n  \n  cVar6 = *param_2;\n  if (cVar6 == '\0') {\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }\n  if (iVar2 == 1) {\n    return 0;\n  }\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }\n  do {\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  } while( true );\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00070820(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)" identifier (parameter_list "(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char cVar6;\n  int iVar7;\n  size_t local_28;\n  char *local_20;\n  \n  cVar6 = *param_2;\n  if (cVar6 == '\0') {\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }\n  if (iVar2 == 1) {\n    return 0;\n  }\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }\n  do {\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "size_t local_28;" primitive_type identifier ;) (declaration "char *local_20;" primitive_type (pointer_declarator "*local_20" * identifier) ;) (expression_statement "cVar6 = *param_2;" (assignment_expression "cVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar6 == '\0') {\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }" if (parenthesized_expression "(cVar6 == '\0')" ( (binary_expression "cVar6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }" { (expression_statement "iVar2 = 3;" (assignment_expression "iVar2 = 3" identifier = number_literal) ;) (labeled_statement "LAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);" statement_identifier : (expression_statement "pcVar3 = (char *)xmalloc(iVar2);" (assignment_expression "pcVar3 = (char *)xmalloc(iVar2)" identifier = (cast_expression "(char *)xmalloc(iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))))) ;)) (expression_statement "cVar6 = *param_2;" (assignment_expression "cVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) (expression_statement "pcVar5 = param_2;" (assignment_expression "pcVar5 = param_2" identifier = identifier) ;) (if_statement "if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }" { (if_statement "if (cVar6 != '\0') goto LAB_000708e8;" if (parenthesized_expression "(cVar6 != '\0')" ( (binary_expression "cVar6 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000708e8;" goto statement_identifier ;)) (labeled_statement "LAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }" statement_identifier : (if_statement "if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }" if (parenthesized_expression "(pcVar5[-1] == '*')" ( (binary_expression "pcVar5[-1] == '*'" (subscript_expression "pcVar5[-1]" identifier [ number_literal ]) == (char_literal "'*'" ' character ')) )) (compound_statement "{\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }" { (if_statement "if (pcVar5[-2] != '\\') goto LAB_0007090f;" if (parenthesized_expression "(pcVar5[-2] != '\\')" ( (binary_expression "pcVar5[-2] != '\\'" (subscript_expression "pcVar5[-2]" identifier [ number_literal ]) != (char_literal "'\\'" ' escape_sequence ')) )) (goto_statement "goto LAB_0007090f;" goto statement_identifier ;)) (if_statement "if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }" if (parenthesized_expression "((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\'))" ( (binary_expression "(param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')" (parenthesized_expression "(param_2 <= pcVar5 + -3)" ( (binary_expression "param_2 <= pcVar5 + -3" identifier <= (binary_expression "pcVar5 + -3" identifier + number_literal)) )) && (parenthesized_expression "(pcVar5[-3] == '\\')" ( (binary_expression "pcVar5[-3] == '\\'" (subscript_expression "pcVar5[-3]" identifier [ number_literal ]) == (char_literal "'\\'" ' escape_sequence ')) ))) )) (compound_statement "{\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (expression_statement "pcVar5 = pcVar5 + -4;" (assignment_expression "pcVar5 = pcVar5 + -4" identifier = (binary_expression "pcVar5 + -4" identifier + number_literal)) ;) (do_statement "do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');" do (compound_statement "{\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          }" { (expression_statement "iVar2 = 1 - iVar2;" (assignment_expression "iVar2 = 1 - iVar2" identifier = (binary_expression "1 - iVar2" number_literal - identifier)) ;) (if_statement "if (param_2 + -1 == pcVar5) break;" if (parenthesized_expression "(param_2 + -1 == pcVar5)" ( (binary_expression "param_2 + -1 == pcVar5" (binary_expression "param_2 + -1" identifier + number_literal) == identifier) )) (break_statement "break;" break ;)) (expression_statement "cVar6 = *pcVar5;" (assignment_expression "cVar6 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + -1;" (assignment_expression "pcVar5 = pcVar5 + -1" identifier = (binary_expression "pcVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar6 == '\\')" ( (binary_expression "cVar6 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) ;) (if_statement "if (iVar2 == 0) goto LAB_0007090f;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007090f;" goto statement_identifier ;)) })) }))) (expression_statement "*pcVar4 = '*';" (assignment_expression "*pcVar4 = '*'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'*'" ' character ')) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }" else (compound_statement "{\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }" { (if_statement "if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }" if (parenthesized_expression "((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0))))" ( (binary_expression "(cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))" (parenthesized_expression "(cVar6 != '*')" ( (binary_expression "cVar6 != '*'" identifier != (char_literal "'*'" ' character ')) )) || (parenthesized_expression "((param_2[1] == '(' && (extended_glob != 0)))" ( (parenthesized_expression "(param_2[1] == '(' && (extended_glob != 0))" ( (binary_expression "param_2[1] == '(' && (extended_glob != 0)" (binary_expression "param_2[1] == '('" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'('" ' character ')) && (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) ))) )) ))) )) (compound_statement "{\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }" { (expression_statement "*pcVar3 = '*';" (assignment_expression "*pcVar3 = '*'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'*'" ' character ')) ;) (expression_statement "cVar6 = *param_2;" (assignment_expression "cVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (goto_statement "goto joined_r0x000708d9;" goto statement_identifier ;) })) (labeled_statement "LAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');" statement_identifier : (do_statement "do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');" do (compound_statement "{\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      }" { (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar4 = cVar6;" (assignment_expression "*pcVar4 = cVar6" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "cVar6 = *pcVar5;" (assignment_expression "cVar6 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (labeled_statement "joined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;" statement_identifier : (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;)) }) while (parenthesized_expression "(cVar6 != '\0')" ( (binary_expression "cVar6 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;)) (if_statement "if (param_3 != 2) goto LAB_000708ff;" if (parenthesized_expression "(param_3 != 2)" ( (binary_expression "param_3 != 2" identifier != number_literal) )) (goto_statement "goto LAB_000708ff;" goto statement_identifier ;)) }))) (labeled_statement "LAB_0007090f:\n    *pcVar4 = '\0';" statement_identifier : (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (labeled_statement "LAB_00070912:\n    iVar2 = 0x10;" statement_identifier : (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;)) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }" { (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" identifier = number_literal) ;) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = iVar7;\n    }" { (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = identifier) ;) })) (expression_statement "iVar2 = strmatch(pcVar3,param_1,iVar2);" (assignment_expression "iVar2 = strmatch(pcVar3,param_1,iVar2)" identifier = (call_expression "strmatch(pcVar3,param_1,iVar2)" identifier (argument_list "(pcVar3,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (pcVar3 != param_2) {\n      free(pcVar3);\n    }" if (parenthesized_expression "(pcVar3 != param_2)" ( (binary_expression "pcVar3 != param_2" identifier != identifier) )) (compound_statement "{\n      free(pcVar3);\n    }" { (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) })) }) (else_clause "else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }" else (compound_statement "{\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }" { (expression_statement "pcVar3 = param_2;" (assignment_expression "pcVar3 = param_2" identifier = identifier) ;) (if_statement "if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }" if (parenthesized_expression "(param_2[1] == '\0')" ( (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }" { (if_statement "if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }" if (parenthesized_expression "(cVar6 != '*')" ( (binary_expression "cVar6 != '*'" identifier != (char_literal "'*'" ' character ')) )) (compound_statement "{\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }" { (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_000708a7;" goto statement_identifier ;) })) (goto_statement "goto LAB_00070912;" goto statement_identifier ;) })) (expression_statement "sVar1 = 2;" (assignment_expression "sVar1 = 2" identifier = number_literal) ;) (if_statement "if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }" if (parenthesized_expression "(param_2[2] != '\0')" ( (binary_expression "param_2[2] != '\0'" (subscript_expression "param_2[2]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      sVar1 = strlen(param_2);\n    }" { (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) })) (if_statement "if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" if (parenthesized_expression "(cVar6 != '*')" ( (binary_expression "cVar6 != '*'" identifier != (char_literal "'*'" ' character ')) )) (compound_statement "{\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" { (labeled_statement "LAB_00070885:\n      iVar2 = sVar1 + 3;" statement_identifier : (expression_statement "iVar2 = sVar1 + 3;" (assignment_expression "iVar2 = sVar1 + 3" identifier = (binary_expression "sVar1 + 3" identifier + number_literal)) ;)) (goto_statement "goto LAB_000708a7;" goto statement_identifier ;) })) (if_statement "if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }" if (parenthesized_expression "(param_2[1] != '(')" ( (binary_expression "param_2[1] != '('" (subscript_expression "param_2[1]" identifier [ number_literal ]) != (char_literal "'('" ' character ')) )) (compound_statement "{\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }" { (if_statement "if (param_2[sVar1 - 1] == '*') goto LAB_00070912;" if (parenthesized_expression "(param_2[sVar1 - 1] == '*')" ( (binary_expression "param_2[sVar1 - 1] == '*'" (subscript_expression "param_2[sVar1 - 1]" identifier [ (binary_expression "sVar1 - 1" identifier - number_literal) ]) == (char_literal "'*'" ' character ')) )) (goto_statement "goto LAB_00070912;" goto statement_identifier ;)) (goto_statement "goto LAB_00070885;" goto statement_identifier ;) })) (if_statement "if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" if (parenthesized_expression "((extended_glob != 0) || (param_2[sVar1 - 1] != '*'))" ( (binary_expression "(extended_glob != 0) || (param_2[sVar1 - 1] != '*')" (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) || (parenthesized_expression "(param_2[sVar1 - 1] != '*')" ( (binary_expression "param_2[sVar1 - 1] != '*'" (subscript_expression "param_2[sVar1 - 1]" identifier [ (binary_expression "sVar1 - 1" identifier - number_literal) ]) != (char_literal "'*'" ' character ')) ))) )) (compound_statement "{\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" { (expression_statement "iVar2 = sVar1 + 3;" (assignment_expression "iVar2 = sVar1 + 3" identifier = (binary_expression "sVar1 + 3" identifier + number_literal)) ;) (goto_statement "goto LAB_000708a7;" goto statement_identifier ;) })) (if_statement "if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = strmatch(param_2,param_1,0);\n    }" { (expression_statement "iVar2 = strmatch(param_2,param_1,0);" (assignment_expression "iVar2 = strmatch(param_2,param_1,0)" identifier = (call_expression "strmatch(param_2,param_1,0)" identifier (argument_list "(param_2,param_1,0)" ( identifier , identifier , number_literal )))) ;) }) (else_clause "else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }" else (compound_statement "{\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }" { (expression_statement "iVar2 = strmatch(param_2,param_1,0x10);" (assignment_expression "iVar2 = strmatch(param_2,param_1,0x10)" identifier = (call_expression "strmatch(param_2,param_1,0x10)" identifier (argument_list "(param_2,param_1,0x10)" ( identifier , identifier , number_literal )))) ;) }))) }))) (if_statement "if (iVar2 == 1) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((param_1 == (char *)0x0) || (*param_1 == '\0'))" ( (binary_expression "(param_1 == (char *)0x0) || (*param_1 == '\0')" (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }" { (expression_statement "local_28 = umatchlen(param_2,0);" (assignment_expression "local_28 = umatchlen(param_2,0)" identifier = (call_expression "umatchlen(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal )))) ;) (expression_statement "local_20 = param_1;" (assignment_expression "local_20 = param_1" identifier = identifier) ;) (if_statement "if (param_3 == 1) goto LAB_00070c12;" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (goto_statement "goto LAB_00070c12;" goto statement_identifier ;)) (if_statement "if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }" { (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00070b42;" goto statement_identifier ;) })) (if_statement "if (param_3 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" { (expression_statement "sVar1 = 1;" (assignment_expression "sVar1 = 1" identifier = number_literal) ;) (if_statement "if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }" if (parenthesized_expression "((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0'))" ( (binary_expression "(param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')" (parenthesized_expression "(param_1[1] != '\0')" ( (binary_expression "param_1[1] != '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(sVar1 = 2, param_1[2] != '\0')" ( (comma_expression "sVar1 = 2, param_1[2] != '\0'" (assignment_expression "sVar1 = 2" identifier = number_literal) , (binary_expression "param_1[2] != '\0'" (subscript_expression "param_1[2]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n      sVar1 = strlen(param_1);\n    }" { (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) })) (expression_statement "local_20 = param_1 + sVar1;" (assignment_expression "local_20 = param_1 + sVar1" identifier = (binary_expression "param_1 + sVar1" identifier + identifier)) ;) (expression_statement "local_28 = umatchlen(param_2,sVar1);" (assignment_expression "local_28 = umatchlen(param_2,sVar1)" identifier = (call_expression "umatchlen(param_2,sVar1)" identifier (argument_list "(param_2,sVar1)" ( identifier , identifier )))) ;) (if_statement "if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }" { (labeled_statement "LAB_00070c12:\n      iVar2 = match_ignore_case;" statement_identifier : (expression_statement "iVar2 = match_ignore_case;" (assignment_expression "iVar2 = match_ignore_case" identifier = identifier) ;)) (if_statement "if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }" if (parenthesized_expression "(match_ignore_case != 0)" ( (binary_expression "match_ignore_case != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = 0x10;\n      }" { (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) })) (expression_statement "iVar2 = match_pattern_char(param_2,param_1,iVar2);" (assignment_expression "iVar2 = match_pattern_char(param_2,param_1,iVar2)" identifier = (call_expression "match_pattern_char(param_2,param_1,iVar2)" identifier (argument_list "(param_2,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n        local_20 = param_1 + local_28;\n      }" { (expression_statement "local_20 = param_1 + local_28;" (assignment_expression "local_20 = param_1 + local_28" identifier = (binary_expression "param_1 + local_28" identifier + identifier)) ;) })) (while_statement "while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }" { (if_statement "if (local_20 < param_1) {\n          return 0;\n        }" if (parenthesized_expression "(local_20 < param_1)" ( (binary_expression "local_20 < param_1" identifier < identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar6 = *local_20;" (assignment_expression "cVar6 = *local_20" identifier = (pointer_expression "*local_20" * identifier)) ;) (expression_statement "*local_20 = '\0';" (assignment_expression "*local_20 = '\0'" (pointer_expression "*local_20" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" { (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" identifier = number_literal) ;) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n          iVar2 = iVar7;\n        }" { (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = identifier) ;) })) (expression_statement "iVar2 = strmatch(param_2,param_1,iVar2);" (assignment_expression "iVar2 = strmatch(param_2,param_1,iVar2)" identifier = (call_expression "strmatch(param_2,param_1,iVar2)" identifier (argument_list "(param_2,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*local_20 = cVar6;" (assignment_expression "*local_20 = cVar6" (pointer_expression "*local_20" * identifier) = identifier) ;) (if_statement "if (local_28 != 0xffffffff) {\n          return 0;\n        }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_20 = local_20 + -1;" (assignment_expression "local_20 = local_20 + -1" identifier = (binary_expression "local_20 + -1" identifier + number_literal)) ;) })) (expression_statement "*local_20 = cVar6;" (assignment_expression "*local_20 = cVar6" (pointer_expression "*local_20" * identifier) = identifier) ;) (expression_statement "*param_4 = param_1;" (assignment_expression "*param_4 = param_1" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "*param_5 = local_20;" (assignment_expression "*param_5 = local_20" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }" { (labeled_statement "LAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }" statement_identifier : (if_statement "if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n        sVar1 = local_28;\n      }" { (expression_statement "sVar1 = local_28;" (assignment_expression "sVar1 = local_28" identifier = identifier) ;) }))) (expression_statement "pcVar3 = local_20 + -sVar1;" (assignment_expression "pcVar3 = local_20 + -sVar1" identifier = (binary_expression "local_20 + -sVar1" identifier + (unary_expression "-sVar1" - identifier))) ;) (while_statement "while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }" { (if_statement "if (local_20 < pcVar3) {\n          return 0;\n        }" if (parenthesized_expression "(local_20 < pcVar3)" ( (binary_expression "local_20 < pcVar3" identifier < identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" { (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" identifier = number_literal) ;) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n          iVar2 = iVar7;\n        }" { (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = identifier) ;) })) (expression_statement "iVar2 = strmatch(param_2,pcVar3,iVar2);" (assignment_expression "iVar2 = strmatch(param_2,pcVar3,iVar2)" identifier = (call_expression "strmatch(param_2,pcVar3,iVar2)" identifier (argument_list "(param_2,pcVar3,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (local_28 != 0xffffffff) {\n          return 0;\n        }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*param_4 = pcVar3;" (assignment_expression "*param_4 = pcVar3" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "*param_5 = local_20;" (assignment_expression "*param_5 = local_20" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (param_3 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_20 < param_1) {\n      return 0;\n    }" if (parenthesized_expression "(local_20 < param_1)" ( (binary_expression "local_20 < param_1" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (do_statement "do {\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" { (expression_statement "iVar2 = match_ignore_case;" (assignment_expression "iVar2 = match_ignore_case" identifier = identifier) ;) (if_statement "if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }" if (parenthesized_expression "(match_ignore_case != 0)" ( (binary_expression "match_ignore_case != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = 0x10;\n    }" { (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) })) (expression_statement "iVar2 = match_pattern_char(param_2,param_1,iVar2);" (assignment_expression "iVar2 = match_pattern_char(param_2,param_1,iVar2)" identifier = (call_expression "match_pattern_char(param_2,param_1,iVar2)" identifier (argument_list "(param_2,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }" { (expression_statement "pcVar3 = local_20;" (assignment_expression "pcVar3 = local_20" identifier = identifier) ;) (if_statement "if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }" if (parenthesized_expression "((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))" ( (binary_expression "(local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28)" (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) && (parenthesized_expression "(pcVar3 = param_1 + local_28, local_20 < param_1 + local_28)" ( (comma_expression "pcVar3 = param_1 + local_28, local_20 < param_1 + local_28" (assignment_expression "pcVar3 = param_1 + local_28" identifier = (binary_expression "param_1 + local_28" identifier + identifier)) , (binary_expression "local_20 < param_1 + local_28" identifier < (binary_expression "param_1 + local_28" identifier + identifier))) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (for_statement "for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }" for ( ; (binary_expression "param_1 <= pcVar3" identifier <= identifier) ; (assignment_expression "pcVar3 = pcVar3 + -1" identifier = (binary_expression "pcVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }" { (expression_statement "cVar6 = *pcVar3;" (assignment_expression "cVar6 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" { (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" identifier = number_literal) ;) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n          iVar2 = iVar7;\n        }" { (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = identifier) ;) })) (expression_statement "iVar2 = strmatch(param_2,param_1,iVar2);" (assignment_expression "iVar2 = strmatch(param_2,param_1,iVar2)" identifier = (call_expression "strmatch(param_2,param_1,iVar2)" identifier (argument_list "(param_2,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }" { (expression_statement "*pcVar3 = cVar6;" (assignment_expression "*pcVar3 = cVar6" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "*param_4 = param_1;" (assignment_expression "*param_4 = param_1" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "*param_5 = pcVar3;" (assignment_expression "*param_5 = pcVar3" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*pcVar3 = cVar6;" (assignment_expression "*pcVar3 = cVar6" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (if_statement "if (local_28 != 0xffffffff) break;" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (break_statement "break;" break ;)) })) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (local_20 < param_1) {\n      return 0;\n    }" if (parenthesized_expression "(local_20 < param_1)" ( (binary_expression "local_20 < param_1" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 match_upattern(char *string,char *pat,int mtype,char **sp,char **ep)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  char cVar7;\n  int iVar8;\n  size_t local_28;\n  char *local_20;\n  \n  cVar7 = *pat;\n  if (cVar7 == '\0') {\n    sVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(sVar2);\n    cVar7 = *pat;\n    pcVar4 = pcVar3;\n    pcVar6 = pat;\n    if (mtype == 1) {\n      if (cVar7 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar6[-1] == '*') {\n        if (pcVar6[-2] != '\\') goto LAB_0007090f;\n        if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar7 = *pat;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar6 = pcVar6 + 1;\n        *pcVar4 = cVar7;\n        cVar7 = *pcVar6;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar7 != '\0');\n      if (mtype != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar5 = 0x10;\n    iVar8 = extended_glob;\n    if (extended_glob != 0) {\n      iVar5 = 0x30;\n      iVar8 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar5 = iVar8;\n    }\n    iVar5 = strmatch(pcVar3,string,iVar5);\n    if (pcVar3 != pat) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = pat;\n    if (pat[1] == '\0') {\n      if (cVar7 != '*') {\n        sVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (pat[2] != '\0') {\n      sVar1 = strlen(pat);\n    }\n    if (cVar7 != '*') {\nLAB_00070885:\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (pat[1] != '(') {\n      if (pat[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (pat[sVar1 - 1] != '*')) {\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar5 = strmatch(pat,string,0);\n    }\n    else {\n      iVar5 = strmatch(pat,string,0x10);\n    }\n  }\n  if (iVar5 == 1) {\n    return 0;\n  }\n  if ((string == (char *)0x0) || (*string == '\0')) {\n    local_28 = umatchlen(pat,0);\n    local_20 = string;\n    if (mtype == 1) goto LAB_00070c12;\n    if (mtype == 2) {\n      sVar2 = 0;\n      goto LAB_00070b42;\n    }\n    if (mtype != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar2 = 1;\n    if ((string[1] != '\0') && (sVar2 = 2, string[2] != '\0')) {\n      sVar2 = strlen(string);\n    }\n    local_20 = string + sVar2;\n    local_28 = umatchlen(pat,sVar2);\n    if (mtype == 1) {\nLAB_00070c12:\n      iVar5 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar5 = 0x10;\n      }\n      iVar5 = match_pattern_char(pat,string,iVar5);\n      if (iVar5 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = string + local_28;\n      }\n      while( true ) {\n        if (local_20 < string) {\n          return 0;\n        }\n        cVar7 = *local_20;\n        *local_20 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) break;\n        *local_20 = cVar7;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar7;\n      *sp = string;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar2 = local_28;\n      }\n      pcVar3 = local_20 + -sVar2;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,pcVar3,iVar5);\n        if (iVar5 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *sp = pcVar3;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype != 0) {\n      return 0;\n    }\n    if (local_20 < string) {\n      return 0;\n    }\n  }\n  do {\n    iVar5 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar5 = 0x10;\n    }\n    iVar5 = match_pattern_char(pat,string,iVar5);\n    if (iVar5 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = string + local_28, local_20 < string + local_28)) {\n        return 0;\n      }\n      for (; string <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar7 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) {\n          *pcVar3 = cVar7;\n          *sp = string;\n          *ep = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar7;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    string = string + 1;\n    if (local_20 < string) {\n      return 0;\n    }\n  } while( true );\n}\n\n" comment (function_definition "int __regparm3 match_upattern(char *string,char *pat,int mtype,char **sp,char **ep)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  char cVar7;\n  int iVar8;\n  size_t local_28;\n  char *local_20;\n  \n  cVar7 = *pat;\n  if (cVar7 == '\0') {\n    sVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(sVar2);\n    cVar7 = *pat;\n    pcVar4 = pcVar3;\n    pcVar6 = pat;\n    if (mtype == 1) {\n      if (cVar7 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar6[-1] == '*') {\n        if (pcVar6[-2] != '\\') goto LAB_0007090f;\n        if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar7 = *pat;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar6 = pcVar6 + 1;\n        *pcVar4 = cVar7;\n        cVar7 = *pcVar6;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar7 != '\0');\n      if (mtype != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar5 = 0x10;\n    iVar8 = extended_glob;\n    if (extended_glob != 0) {\n      iVar5 = 0x30;\n      iVar8 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar5 = iVar8;\n    }\n    iVar5 = strmatch(pcVar3,string,iVar5);\n    if (pcVar3 != pat) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = pat;\n    if (pat[1] == '\0') {\n      if (cVar7 != '*') {\n        sVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (pat[2] != '\0') {\n      sVar1 = strlen(pat);\n    }\n    if (cVar7 != '*') {\nLAB_00070885:\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (pat[1] != '(') {\n      if (pat[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (pat[sVar1 - 1] != '*')) {\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar5 = strmatch(pat,string,0);\n    }\n    else {\n      iVar5 = strmatch(pat,string,0x10);\n    }\n  }\n  if (iVar5 == 1) {\n    return 0;\n  }\n  if ((string == (char *)0x0) || (*string == '\0')) {\n    local_28 = umatchlen(pat,0);\n    local_20 = string;\n    if (mtype == 1) goto LAB_00070c12;\n    if (mtype == 2) {\n      sVar2 = 0;\n      goto LAB_00070b42;\n    }\n    if (mtype != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar2 = 1;\n    if ((string[1] != '\0') && (sVar2 = 2, string[2] != '\0')) {\n      sVar2 = strlen(string);\n    }\n    local_20 = string + sVar2;\n    local_28 = umatchlen(pat,sVar2);\n    if (mtype == 1) {\nLAB_00070c12:\n      iVar5 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar5 = 0x10;\n      }\n      iVar5 = match_pattern_char(pat,string,iVar5);\n      if (iVar5 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = string + local_28;\n      }\n      while( true ) {\n        if (local_20 < string) {\n          return 0;\n        }\n        cVar7 = *local_20;\n        *local_20 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) break;\n        *local_20 = cVar7;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar7;\n      *sp = string;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar2 = local_28;\n      }\n      pcVar3 = local_20 + -sVar2;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,pcVar3,iVar5);\n        if (iVar5 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *sp = pcVar3;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype != 0) {\n      return 0;\n    }\n    if (local_20 < string) {\n      return 0;\n    }\n  }\n  do {\n    iVar5 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar5 = 0x10;\n    }\n    iVar5 = match_pattern_char(pat,string,iVar5);\n    if (iVar5 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = string + local_28, local_20 < string + local_28)) {\n        return 0;\n      }\n      for (; string <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar7 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) {\n          *pcVar3 = cVar7;\n          *sp = string;\n          *ep = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar7;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    string = string + 1;\n    if (local_20 < string) {\n      return 0;\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "match_upattern(char *string,char *pat,int mtype,char **sp,char **ep)" identifier (parameter_list "(char *string,char *pat,int mtype,char **sp,char **ep)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "char *pat" primitive_type (pointer_declarator "*pat" * identifier)) , (parameter_declaration "int mtype" primitive_type identifier) , (parameter_declaration "char **sp" primitive_type (pointer_declarator "**sp" * (pointer_declarator "*sp" * identifier))) , (parameter_declaration "char **ep" primitive_type (pointer_declarator "**ep" * (pointer_declarator "*ep" * identifier))) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  char cVar7;\n  int iVar8;\n  size_t local_28;\n  char *local_20;\n  \n  cVar7 = *pat;\n  if (cVar7 == '\0') {\n    sVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(sVar2);\n    cVar7 = *pat;\n    pcVar4 = pcVar3;\n    pcVar6 = pat;\n    if (mtype == 1) {\n      if (cVar7 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar6[-1] == '*') {\n        if (pcVar6[-2] != '\\') goto LAB_0007090f;\n        if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar7 = *pat;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar6 = pcVar6 + 1;\n        *pcVar4 = cVar7;\n        cVar7 = *pcVar6;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar7 != '\0');\n      if (mtype != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar5 = 0x10;\n    iVar8 = extended_glob;\n    if (extended_glob != 0) {\n      iVar5 = 0x30;\n      iVar8 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar5 = iVar8;\n    }\n    iVar5 = strmatch(pcVar3,string,iVar5);\n    if (pcVar3 != pat) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = pat;\n    if (pat[1] == '\0') {\n      if (cVar7 != '*') {\n        sVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (pat[2] != '\0') {\n      sVar1 = strlen(pat);\n    }\n    if (cVar7 != '*') {\nLAB_00070885:\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (pat[1] != '(') {\n      if (pat[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (pat[sVar1 - 1] != '*')) {\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar5 = strmatch(pat,string,0);\n    }\n    else {\n      iVar5 = strmatch(pat,string,0x10);\n    }\n  }\n  if (iVar5 == 1) {\n    return 0;\n  }\n  if ((string == (char *)0x0) || (*string == '\0')) {\n    local_28 = umatchlen(pat,0);\n    local_20 = string;\n    if (mtype == 1) goto LAB_00070c12;\n    if (mtype == 2) {\n      sVar2 = 0;\n      goto LAB_00070b42;\n    }\n    if (mtype != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar2 = 1;\n    if ((string[1] != '\0') && (sVar2 = 2, string[2] != '\0')) {\n      sVar2 = strlen(string);\n    }\n    local_20 = string + sVar2;\n    local_28 = umatchlen(pat,sVar2);\n    if (mtype == 1) {\nLAB_00070c12:\n      iVar5 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar5 = 0x10;\n      }\n      iVar5 = match_pattern_char(pat,string,iVar5);\n      if (iVar5 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = string + local_28;\n      }\n      while( true ) {\n        if (local_20 < string) {\n          return 0;\n        }\n        cVar7 = *local_20;\n        *local_20 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) break;\n        *local_20 = cVar7;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar7;\n      *sp = string;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar2 = local_28;\n      }\n      pcVar3 = local_20 + -sVar2;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,pcVar3,iVar5);\n        if (iVar5 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *sp = pcVar3;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype != 0) {\n      return 0;\n    }\n    if (local_20 < string) {\n      return 0;\n    }\n  }\n  do {\n    iVar5 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar5 = 0x10;\n    }\n    iVar5 = match_pattern_char(pat,string,iVar5);\n    if (iVar5 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = string + local_28, local_20 < string + local_28)) {\n        return 0;\n      }\n      for (; string <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar7 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) {\n          *pcVar3 = cVar7;\n          *sp = string;\n          *ep = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar7;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    string = string + 1;\n    if (local_20 < string) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char cVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "size_t local_28;" primitive_type identifier ;) (declaration "char *local_20;" primitive_type (pointer_declarator "*local_20" * identifier) ;) (expression_statement "cVar7 = *pat;" (assignment_expression "cVar7 = *pat" identifier = (pointer_expression "*pat" * identifier)) ;) (if_statement "if (cVar7 == '\0') {\n    sVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(sVar2);\n    cVar7 = *pat;\n    pcVar4 = pcVar3;\n    pcVar6 = pat;\n    if (mtype == 1) {\n      if (cVar7 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar6[-1] == '*') {\n        if (pcVar6[-2] != '\\') goto LAB_0007090f;\n        if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar7 = *pat;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar6 = pcVar6 + 1;\n        *pcVar4 = cVar7;\n        cVar7 = *pcVar6;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar7 != '\0');\n      if (mtype != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar5 = 0x10;\n    iVar8 = extended_glob;\n    if (extended_glob != 0) {\n      iVar5 = 0x30;\n      iVar8 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar5 = iVar8;\n    }\n    iVar5 = strmatch(pcVar3,string,iVar5);\n    if (pcVar3 != pat) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = pat;\n    if (pat[1] == '\0') {\n      if (cVar7 != '*') {\n        sVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (pat[2] != '\0') {\n      sVar1 = strlen(pat);\n    }\n    if (cVar7 != '*') {\nLAB_00070885:\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (pat[1] != '(') {\n      if (pat[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (pat[sVar1 - 1] != '*')) {\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar5 = strmatch(pat,string,0);\n    }\n    else {\n      iVar5 = strmatch(pat,string,0x10);\n    }\n  }" if (parenthesized_expression "(cVar7 == '\0')" ( (binary_expression "cVar7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(sVar2);\n    cVar7 = *pat;\n    pcVar4 = pcVar3;\n    pcVar6 = pat;\n    if (mtype == 1) {\n      if (cVar7 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar6[-1] == '*') {\n        if (pcVar6[-2] != '\\') goto LAB_0007090f;\n        if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar7 = *pat;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar6 = pcVar6 + 1;\n        *pcVar4 = cVar7;\n        cVar7 = *pcVar6;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar7 != '\0');\n      if (mtype != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar5 = 0x10;\n    iVar8 = extended_glob;\n    if (extended_glob != 0) {\n      iVar5 = 0x30;\n      iVar8 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar5 = iVar8;\n    }\n    iVar5 = strmatch(pcVar3,string,iVar5);\n    if (pcVar3 != pat) {\n      free(pcVar3);\n    }\n  }" { (expression_statement "sVar2 = 3;" (assignment_expression "sVar2 = 3" identifier = number_literal) ;) (labeled_statement "LAB_000708a7:\n    pcVar3 = (char *)xmalloc(sVar2);" statement_identifier : (expression_statement "pcVar3 = (char *)xmalloc(sVar2);" (assignment_expression "pcVar3 = (char *)xmalloc(sVar2)" identifier = (cast_expression "(char *)xmalloc(sVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2)" identifier (argument_list "(sVar2)" ( identifier ))))) ;)) (expression_statement "cVar7 = *pat;" (assignment_expression "cVar7 = *pat" identifier = (pointer_expression "*pat" * identifier)) ;) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) (expression_statement "pcVar6 = pat;" (assignment_expression "pcVar6 = pat" identifier = identifier) ;) (if_statement "if (mtype == 1) {\n      if (cVar7 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar6[-1] == '*') {\n        if (pcVar6[-2] != '\\') goto LAB_0007090f;\n        if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar7 = *pat;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar6 = pcVar6 + 1;\n        *pcVar4 = cVar7;\n        cVar7 = *pcVar6;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar7 != '\0');\n      if (mtype != 2) goto LAB_000708ff;\n    }" if (parenthesized_expression "(mtype == 1)" ( (binary_expression "mtype == 1" identifier == number_literal) )) (compound_statement "{\n      if (cVar7 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar6[-1] == '*') {\n        if (pcVar6[-2] != '\\') goto LAB_0007090f;\n        if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }" { (if_statement "if (cVar7 != '\0') goto LAB_000708e8;" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000708e8;" goto statement_identifier ;)) (labeled_statement "LAB_000708ff:\n      if (pcVar6[-1] == '*') {\n        if (pcVar6[-2] != '\\') goto LAB_0007090f;\n        if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }\n      }" statement_identifier : (if_statement "if (pcVar6[-1] == '*') {\n        if (pcVar6[-2] != '\\') goto LAB_0007090f;\n        if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }\n      }" if (parenthesized_expression "(pcVar6[-1] == '*')" ( (binary_expression "pcVar6[-1] == '*'" (subscript_expression "pcVar6[-1]" identifier [ number_literal ]) == (char_literal "'*'" ' character ')) )) (compound_statement "{\n        if (pcVar6[-2] != '\\') goto LAB_0007090f;\n        if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }\n      }" { (if_statement "if (pcVar6[-2] != '\\') goto LAB_0007090f;" if (parenthesized_expression "(pcVar6[-2] != '\\')" ( (binary_expression "pcVar6[-2] != '\\'" (subscript_expression "pcVar6[-2]" identifier [ number_literal ]) != (char_literal "'\\'" ' escape_sequence ')) )) (goto_statement "goto LAB_0007090f;" goto statement_identifier ;)) (if_statement "if ((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')) {\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }" if (parenthesized_expression "((pat <= pcVar6 + -3) && (pcVar6[-3] == '\\'))" ( (binary_expression "(pat <= pcVar6 + -3) && (pcVar6[-3] == '\\')" (parenthesized_expression "(pat <= pcVar6 + -3)" ( (binary_expression "pat <= pcVar6 + -3" identifier <= (binary_expression "pcVar6 + -3" identifier + number_literal)) )) && (parenthesized_expression "(pcVar6[-3] == '\\')" ( (binary_expression "pcVar6[-3] == '\\'" (subscript_expression "pcVar6[-3]" identifier [ number_literal ]) == (char_literal "'\\'" ' escape_sequence ')) ))) )) (compound_statement "{\n          iVar5 = 1;\n          pcVar6 = pcVar6 + -4;\n          do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');\n          if (iVar5 == 0) goto LAB_0007090f;\n        }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "pcVar6 = pcVar6 + -4;" (assignment_expression "pcVar6 = pcVar6 + -4" identifier = (binary_expression "pcVar6 + -4" identifier + number_literal)) ;) (do_statement "do {\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          } while (cVar7 == '\\');" do (compound_statement "{\n            iVar5 = 1 - iVar5;\n            if (pat + -1 == pcVar6) break;\n            cVar7 = *pcVar6;\n            pcVar6 = pcVar6 + -1;\n          }" { (expression_statement "iVar5 = 1 - iVar5;" (assignment_expression "iVar5 = 1 - iVar5" identifier = (binary_expression "1 - iVar5" number_literal - identifier)) ;) (if_statement "if (pat + -1 == pcVar6) break;" if (parenthesized_expression "(pat + -1 == pcVar6)" ( (binary_expression "pat + -1 == pcVar6" (binary_expression "pat + -1" identifier + number_literal) == identifier) )) (break_statement "break;" break ;)) (expression_statement "cVar7 = *pcVar6;" (assignment_expression "cVar7 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) (expression_statement "pcVar6 = pcVar6 + -1;" (assignment_expression "pcVar6 = pcVar6 + -1" identifier = (binary_expression "pcVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar7 == '\\')" ( (binary_expression "cVar7 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) ;) (if_statement "if (iVar5 == 0) goto LAB_0007090f;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007090f;" goto statement_identifier ;)) })) }))) (expression_statement "*pcVar4 = '*';" (assignment_expression "*pcVar4 = '*'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'*'" ' character ')) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n      if ((cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar7 = *pat;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar6 = pcVar6 + 1;\n        *pcVar4 = cVar7;\n        cVar7 = *pcVar6;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar7 != '\0');\n      if (mtype != 2) goto LAB_000708ff;\n    }" else (compound_statement "{\n      if ((cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar7 = *pat;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar6 = pcVar6 + 1;\n        *pcVar4 = cVar7;\n        cVar7 = *pcVar6;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar7 != '\0');\n      if (mtype != 2) goto LAB_000708ff;\n    }" { (if_statement "if ((cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar7 = *pat;\n        goto joined_r0x000708d9;\n      }" if (parenthesized_expression "((cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0))))" ( (binary_expression "(cVar7 != '*') || ((pat[1] == '(' && (extended_glob != 0)))" (parenthesized_expression "(cVar7 != '*')" ( (binary_expression "cVar7 != '*'" identifier != (char_literal "'*'" ' character ')) )) || (parenthesized_expression "((pat[1] == '(' && (extended_glob != 0)))" ( (parenthesized_expression "(pat[1] == '(' && (extended_glob != 0))" ( (binary_expression "pat[1] == '(' && (extended_glob != 0)" (binary_expression "pat[1] == '('" (subscript_expression "pat[1]" identifier [ number_literal ]) == (char_literal "'('" ' character ')) && (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) ))) )) ))) )) (compound_statement "{\n        *pcVar3 = '*';\n        cVar7 = *pat;\n        goto joined_r0x000708d9;\n      }" { (expression_statement "*pcVar3 = '*';" (assignment_expression "*pcVar3 = '*'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'*'" ' character ')) ;) (expression_statement "cVar7 = *pat;" (assignment_expression "cVar7 = *pat" identifier = (pointer_expression "*pat" * identifier)) ;) (goto_statement "goto joined_r0x000708d9;" goto statement_identifier ;) })) (labeled_statement "LAB_000708e8:\n      do {\n        pcVar6 = pcVar6 + 1;\n        *pcVar4 = cVar7;\n        cVar7 = *pcVar6;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar7 != '\0');" statement_identifier : (do_statement "do {\n        pcVar6 = pcVar6 + 1;\n        *pcVar4 = cVar7;\n        cVar7 = *pcVar6;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar7 != '\0');" do (compound_statement "{\n        pcVar6 = pcVar6 + 1;\n        *pcVar4 = cVar7;\n        cVar7 = *pcVar6;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      }" { (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar4 = cVar7;" (assignment_expression "*pcVar4 = cVar7" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "cVar7 = *pcVar6;" (assignment_expression "cVar7 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) (labeled_statement "joined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;" statement_identifier : (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;)) }) while (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;)) (if_statement "if (mtype != 2) goto LAB_000708ff;" if (parenthesized_expression "(mtype != 2)" ( (binary_expression "mtype != 2" identifier != number_literal) )) (goto_statement "goto LAB_000708ff;" goto statement_identifier ;)) }))) (labeled_statement "LAB_0007090f:\n    *pcVar4 = '\0';" statement_identifier : (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (labeled_statement "LAB_00070912:\n    iVar5 = 0x10;" statement_identifier : (expression_statement "iVar5 = 0x10;" (assignment_expression "iVar5 = 0x10" identifier = number_literal) ;)) (expression_statement "iVar8 = extended_glob;" (assignment_expression "iVar8 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n      iVar5 = 0x30;\n      iVar8 = 0x20;\n    }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n      iVar5 = 0x30;\n      iVar8 = 0x20;\n    }" { (expression_statement "iVar5 = 0x30;" (assignment_expression "iVar5 = 0x30" identifier = number_literal) ;) (expression_statement "iVar8 = 0x20;" (assignment_expression "iVar8 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n      iVar5 = iVar8;\n    }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = iVar8;\n    }" { (expression_statement "iVar5 = iVar8;" (assignment_expression "iVar5 = iVar8" identifier = identifier) ;) })) (expression_statement "iVar5 = strmatch(pcVar3,string,iVar5);" (assignment_expression "iVar5 = strmatch(pcVar3,string,iVar5)" identifier = (call_expression "strmatch(pcVar3,string,iVar5)" identifier (argument_list "(pcVar3,string,iVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (pcVar3 != pat) {\n      free(pcVar3);\n    }" if (parenthesized_expression "(pcVar3 != pat)" ( (binary_expression "pcVar3 != pat" identifier != identifier) )) (compound_statement "{\n      free(pcVar3);\n    }" { (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) })) }) (else_clause "else {\n    pcVar3 = pat;\n    if (pat[1] == '\0') {\n      if (cVar7 != '*') {\n        sVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (pat[2] != '\0') {\n      sVar1 = strlen(pat);\n    }\n    if (cVar7 != '*') {\nLAB_00070885:\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (pat[1] != '(') {\n      if (pat[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (pat[sVar1 - 1] != '*')) {\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar5 = strmatch(pat,string,0);\n    }\n    else {\n      iVar5 = strmatch(pat,string,0x10);\n    }\n  }" else (compound_statement "{\n    pcVar3 = pat;\n    if (pat[1] == '\0') {\n      if (cVar7 != '*') {\n        sVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (pat[2] != '\0') {\n      sVar1 = strlen(pat);\n    }\n    if (cVar7 != '*') {\nLAB_00070885:\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (pat[1] != '(') {\n      if (pat[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (pat[sVar1 - 1] != '*')) {\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar5 = strmatch(pat,string,0);\n    }\n    else {\n      iVar5 = strmatch(pat,string,0x10);\n    }\n  }" { (expression_statement "pcVar3 = pat;" (assignment_expression "pcVar3 = pat" identifier = identifier) ;) (if_statement "if (pat[1] == '\0') {\n      if (cVar7 != '*') {\n        sVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }" if (parenthesized_expression "(pat[1] == '\0')" ( (binary_expression "pat[1] == '\0'" (subscript_expression "pat[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (cVar7 != '*') {\n        sVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }" { (if_statement "if (cVar7 != '*') {\n        sVar2 = 4;\n        goto LAB_000708a7;\n      }" if (parenthesized_expression "(cVar7 != '*')" ( (binary_expression "cVar7 != '*'" identifier != (char_literal "'*'" ' character ')) )) (compound_statement "{\n        sVar2 = 4;\n        goto LAB_000708a7;\n      }" { (expression_statement "sVar2 = 4;" (assignment_expression "sVar2 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_000708a7;" goto statement_identifier ;) })) (goto_statement "goto LAB_00070912;" goto statement_identifier ;) })) (expression_statement "sVar1 = 2;" (assignment_expression "sVar1 = 2" identifier = number_literal) ;) (if_statement "if (pat[2] != '\0') {\n      sVar1 = strlen(pat);\n    }" if (parenthesized_expression "(pat[2] != '\0')" ( (binary_expression "pat[2] != '\0'" (subscript_expression "pat[2]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      sVar1 = strlen(pat);\n    }" { (expression_statement "sVar1 = strlen(pat);" (assignment_expression "sVar1 = strlen(pat)" identifier = (call_expression "strlen(pat)" identifier (argument_list "(pat)" ( identifier )))) ;) })) (if_statement "if (cVar7 != '*') {\nLAB_00070885:\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" if (parenthesized_expression "(cVar7 != '*')" ( (binary_expression "cVar7 != '*'" identifier != (char_literal "'*'" ' character ')) )) (compound_statement "{\nLAB_00070885:\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" { (labeled_statement "LAB_00070885:\n      sVar2 = sVar1 + 3;" statement_identifier : (expression_statement "sVar2 = sVar1 + 3;" (assignment_expression "sVar2 = sVar1 + 3" identifier = (binary_expression "sVar1 + 3" identifier + number_literal)) ;)) (goto_statement "goto LAB_000708a7;" goto statement_identifier ;) })) (if_statement "if (pat[1] != '(') {\n      if (pat[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }" if (parenthesized_expression "(pat[1] != '(')" ( (binary_expression "pat[1] != '('" (subscript_expression "pat[1]" identifier [ number_literal ]) != (char_literal "'('" ' character ')) )) (compound_statement "{\n      if (pat[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }" { (if_statement "if (pat[sVar1 - 1] == '*') goto LAB_00070912;" if (parenthesized_expression "(pat[sVar1 - 1] == '*')" ( (binary_expression "pat[sVar1 - 1] == '*'" (subscript_expression "pat[sVar1 - 1]" identifier [ (binary_expression "sVar1 - 1" identifier - number_literal) ]) == (char_literal "'*'" ' character ')) )) (goto_statement "goto LAB_00070912;" goto statement_identifier ;)) (goto_statement "goto LAB_00070885;" goto statement_identifier ;) })) (if_statement "if ((extended_glob != 0) || (pat[sVar1 - 1] != '*')) {\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" if (parenthesized_expression "((extended_glob != 0) || (pat[sVar1 - 1] != '*'))" ( (binary_expression "(extended_glob != 0) || (pat[sVar1 - 1] != '*')" (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) || (parenthesized_expression "(pat[sVar1 - 1] != '*')" ( (binary_expression "pat[sVar1 - 1] != '*'" (subscript_expression "pat[sVar1 - 1]" identifier [ (binary_expression "sVar1 - 1" identifier - number_literal) ]) != (char_literal "'*'" ' character ')) ))) )) (compound_statement "{\n      sVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" { (expression_statement "sVar2 = sVar1 + 3;" (assignment_expression "sVar2 = sVar1 + 3" identifier = (binary_expression "sVar1 + 3" identifier + number_literal)) ;) (goto_statement "goto LAB_000708a7;" goto statement_identifier ;) })) (if_statement "if (match_ignore_case == 0) {\n      iVar5 = strmatch(pat,string,0);\n    }\n    else {\n      iVar5 = strmatch(pat,string,0x10);\n    }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = strmatch(pat,string,0);\n    }" { (expression_statement "iVar5 = strmatch(pat,string,0);" (assignment_expression "iVar5 = strmatch(pat,string,0)" identifier = (call_expression "strmatch(pat,string,0)" identifier (argument_list "(pat,string,0)" ( identifier , identifier , number_literal )))) ;) }) (else_clause "else {\n      iVar5 = strmatch(pat,string,0x10);\n    }" else (compound_statement "{\n      iVar5 = strmatch(pat,string,0x10);\n    }" { (expression_statement "iVar5 = strmatch(pat,string,0x10);" (assignment_expression "iVar5 = strmatch(pat,string,0x10)" identifier = (call_expression "strmatch(pat,string,0x10)" identifier (argument_list "(pat,string,0x10)" ( identifier , identifier , number_literal )))) ;) }))) }))) (if_statement "if (iVar5 == 1) {\n    return 0;\n  }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((string == (char *)0x0) || (*string == '\0')) {\n    local_28 = umatchlen(pat,0);\n    local_20 = string;\n    if (mtype == 1) goto LAB_00070c12;\n    if (mtype == 2) {\n      sVar2 = 0;\n      goto LAB_00070b42;\n    }\n    if (mtype != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar2 = 1;\n    if ((string[1] != '\0') && (sVar2 = 2, string[2] != '\0')) {\n      sVar2 = strlen(string);\n    }\n    local_20 = string + sVar2;\n    local_28 = umatchlen(pat,sVar2);\n    if (mtype == 1) {\nLAB_00070c12:\n      iVar5 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar5 = 0x10;\n      }\n      iVar5 = match_pattern_char(pat,string,iVar5);\n      if (iVar5 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = string + local_28;\n      }\n      while( true ) {\n        if (local_20 < string) {\n          return 0;\n        }\n        cVar7 = *local_20;\n        *local_20 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) break;\n        *local_20 = cVar7;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar7;\n      *sp = string;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar2 = local_28;\n      }\n      pcVar3 = local_20 + -sVar2;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,pcVar3,iVar5);\n        if (iVar5 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *sp = pcVar3;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype != 0) {\n      return 0;\n    }\n    if (local_20 < string) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((string == (char *)0x0) || (*string == '\0'))" ( (binary_expression "(string == (char *)0x0) || (*string == '\0')" (parenthesized_expression "(string == (char *)0x0)" ( (binary_expression "string == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*string == '\0')" ( (binary_expression "*string == '\0'" (pointer_expression "*string" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    local_28 = umatchlen(pat,0);\n    local_20 = string;\n    if (mtype == 1) goto LAB_00070c12;\n    if (mtype == 2) {\n      sVar2 = 0;\n      goto LAB_00070b42;\n    }\n    if (mtype != 0) {\n      return 0;\n    }\n  }" { (expression_statement "local_28 = umatchlen(pat,0);" (assignment_expression "local_28 = umatchlen(pat,0)" identifier = (call_expression "umatchlen(pat,0)" identifier (argument_list "(pat,0)" ( identifier , number_literal )))) ;) (expression_statement "local_20 = string;" (assignment_expression "local_20 = string" identifier = identifier) ;) (if_statement "if (mtype == 1) goto LAB_00070c12;" if (parenthesized_expression "(mtype == 1)" ( (binary_expression "mtype == 1" identifier == number_literal) )) (goto_statement "goto LAB_00070c12;" goto statement_identifier ;)) (if_statement "if (mtype == 2) {\n      sVar2 = 0;\n      goto LAB_00070b42;\n    }" if (parenthesized_expression "(mtype == 2)" ( (binary_expression "mtype == 2" identifier == number_literal) )) (compound_statement "{\n      sVar2 = 0;\n      goto LAB_00070b42;\n    }" { (expression_statement "sVar2 = 0;" (assignment_expression "sVar2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00070b42;" goto statement_identifier ;) })) (if_statement "if (mtype != 0) {\n      return 0;\n    }" if (parenthesized_expression "(mtype != 0)" ( (binary_expression "mtype != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    sVar2 = 1;\n    if ((string[1] != '\0') && (sVar2 = 2, string[2] != '\0')) {\n      sVar2 = strlen(string);\n    }\n    local_20 = string + sVar2;\n    local_28 = umatchlen(pat,sVar2);\n    if (mtype == 1) {\nLAB_00070c12:\n      iVar5 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar5 = 0x10;\n      }\n      iVar5 = match_pattern_char(pat,string,iVar5);\n      if (iVar5 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = string + local_28;\n      }\n      while( true ) {\n        if (local_20 < string) {\n          return 0;\n        }\n        cVar7 = *local_20;\n        *local_20 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) break;\n        *local_20 = cVar7;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar7;\n      *sp = string;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar2 = local_28;\n      }\n      pcVar3 = local_20 + -sVar2;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,pcVar3,iVar5);\n        if (iVar5 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *sp = pcVar3;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype != 0) {\n      return 0;\n    }\n    if (local_20 < string) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    sVar2 = 1;\n    if ((string[1] != '\0') && (sVar2 = 2, string[2] != '\0')) {\n      sVar2 = strlen(string);\n    }\n    local_20 = string + sVar2;\n    local_28 = umatchlen(pat,sVar2);\n    if (mtype == 1) {\nLAB_00070c12:\n      iVar5 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar5 = 0x10;\n      }\n      iVar5 = match_pattern_char(pat,string,iVar5);\n      if (iVar5 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = string + local_28;\n      }\n      while( true ) {\n        if (local_20 < string) {\n          return 0;\n        }\n        cVar7 = *local_20;\n        *local_20 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) break;\n        *local_20 = cVar7;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar7;\n      *sp = string;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar2 = local_28;\n      }\n      pcVar3 = local_20 + -sVar2;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,pcVar3,iVar5);\n        if (iVar5 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *sp = pcVar3;\n      *ep = local_20;\n      return 1;\n    }\n    if (mtype != 0) {\n      return 0;\n    }\n    if (local_20 < string) {\n      return 0;\n    }\n  }" { (expression_statement "sVar2 = 1;" (assignment_expression "sVar2 = 1" identifier = number_literal) ;) (if_statement "if ((string[1] != '\0') && (sVar2 = 2, string[2] != '\0')) {\n      sVar2 = strlen(string);\n    }" if (parenthesized_expression "((string[1] != '\0') && (sVar2 = 2, string[2] != '\0'))" ( (binary_expression "(string[1] != '\0') && (sVar2 = 2, string[2] != '\0')" (parenthesized_expression "(string[1] != '\0')" ( (binary_expression "string[1] != '\0'" (subscript_expression "string[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(sVar2 = 2, string[2] != '\0')" ( (comma_expression "sVar2 = 2, string[2] != '\0'" (assignment_expression "sVar2 = 2" identifier = number_literal) , (binary_expression "string[2] != '\0'" (subscript_expression "string[2]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n      sVar2 = strlen(string);\n    }" { (expression_statement "sVar2 = strlen(string);" (assignment_expression "sVar2 = strlen(string)" identifier = (call_expression "strlen(string)" identifier (argument_list "(string)" ( identifier )))) ;) })) (expression_statement "local_20 = string + sVar2;" (assignment_expression "local_20 = string + sVar2" identifier = (binary_expression "string + sVar2" identifier + identifier)) ;) (expression_statement "local_28 = umatchlen(pat,sVar2);" (assignment_expression "local_28 = umatchlen(pat,sVar2)" identifier = (call_expression "umatchlen(pat,sVar2)" identifier (argument_list "(pat,sVar2)" ( identifier , identifier )))) ;) (if_statement "if (mtype == 1) {\nLAB_00070c12:\n      iVar5 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar5 = 0x10;\n      }\n      iVar5 = match_pattern_char(pat,string,iVar5);\n      if (iVar5 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = string + local_28;\n      }\n      while( true ) {\n        if (local_20 < string) {\n          return 0;\n        }\n        cVar7 = *local_20;\n        *local_20 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) break;\n        *local_20 = cVar7;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar7;\n      *sp = string;\n      *ep = local_20;\n      return 1;\n    }" if (parenthesized_expression "(mtype == 1)" ( (binary_expression "mtype == 1" identifier == number_literal) )) (compound_statement "{\nLAB_00070c12:\n      iVar5 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar5 = 0x10;\n      }\n      iVar5 = match_pattern_char(pat,string,iVar5);\n      if (iVar5 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = string + local_28;\n      }\n      while( true ) {\n        if (local_20 < string) {\n          return 0;\n        }\n        cVar7 = *local_20;\n        *local_20 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) break;\n        *local_20 = cVar7;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar7;\n      *sp = string;\n      *ep = local_20;\n      return 1;\n    }" { (labeled_statement "LAB_00070c12:\n      iVar5 = match_ignore_case;" statement_identifier : (expression_statement "iVar5 = match_ignore_case;" (assignment_expression "iVar5 = match_ignore_case" identifier = identifier) ;)) (if_statement "if (match_ignore_case != 0) {\n        iVar5 = 0x10;\n      }" if (parenthesized_expression "(match_ignore_case != 0)" ( (binary_expression "match_ignore_case != 0" identifier != number_literal) )) (compound_statement "{\n        iVar5 = 0x10;\n      }" { (expression_statement "iVar5 = 0x10;" (assignment_expression "iVar5 = 0x10" identifier = number_literal) ;) })) (expression_statement "iVar5 = match_pattern_char(pat,string,iVar5);" (assignment_expression "iVar5 = match_pattern_char(pat,string,iVar5)" identifier = (call_expression "match_pattern_char(pat,string,iVar5)" identifier (argument_list "(pat,string,iVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_28 != 0xffffffff) {\n        local_20 = string + local_28;\n      }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n        local_20 = string + local_28;\n      }" { (expression_statement "local_20 = string + local_28;" (assignment_expression "local_20 = string + local_28" identifier = (binary_expression "string + local_28" identifier + identifier)) ;) })) (while_statement "while( true ) {\n        if (local_20 < string) {\n          return 0;\n        }\n        cVar7 = *local_20;\n        *local_20 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) break;\n        *local_20 = cVar7;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (local_20 < string) {\n          return 0;\n        }\n        cVar7 = *local_20;\n        *local_20 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) break;\n        *local_20 = cVar7;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }" { (if_statement "if (local_20 < string) {\n          return 0;\n        }" if (parenthesized_expression "(local_20 < string)" ( (binary_expression "local_20 < string" identifier < identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar7 = *local_20;" (assignment_expression "cVar7 = *local_20" identifier = (pointer_expression "*local_20" * identifier)) ;) (expression_statement "*local_20 = '\0';" (assignment_expression "*local_20 = '\0'" (pointer_expression "*local_20" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar5 = 0x10;" (assignment_expression "iVar5 = 0x10" identifier = number_literal) ;) (expression_statement "iVar8 = extended_glob;" (assignment_expression "iVar8 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }" { (expression_statement "iVar5 = 0x30;" (assignment_expression "iVar5 = 0x30" identifier = number_literal) ;) (expression_statement "iVar8 = 0x20;" (assignment_expression "iVar8 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n          iVar5 = iVar8;\n        }" { (expression_statement "iVar5 = iVar8;" (assignment_expression "iVar5 = iVar8" identifier = identifier) ;) })) (expression_statement "iVar5 = strmatch(pat,string,iVar5);" (assignment_expression "iVar5 = strmatch(pat,string,iVar5)" identifier = (call_expression "strmatch(pat,string,iVar5)" identifier (argument_list "(pat,string,iVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*local_20 = cVar7;" (assignment_expression "*local_20 = cVar7" (pointer_expression "*local_20" * identifier) = identifier) ;) (if_statement "if (local_28 != 0xffffffff) {\n          return 0;\n        }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_20 = local_20 + -1;" (assignment_expression "local_20 = local_20 + -1" identifier = (binary_expression "local_20 + -1" identifier + number_literal)) ;) })) (expression_statement "*local_20 = cVar7;" (assignment_expression "*local_20 = cVar7" (pointer_expression "*local_20" * identifier) = identifier) ;) (expression_statement "*sp = string;" (assignment_expression "*sp = string" (pointer_expression "*sp" * identifier) = identifier) ;) (expression_statement "*ep = local_20;" (assignment_expression "*ep = local_20" (pointer_expression "*ep" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (mtype == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar2 = local_28;\n      }\n      pcVar3 = local_20 + -sVar2;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,pcVar3,iVar5);\n        if (iVar5 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *sp = pcVar3;\n      *ep = local_20;\n      return 1;\n    }" if (parenthesized_expression "(mtype == 2)" ( (binary_expression "mtype == 2" identifier == number_literal) )) (compound_statement "{\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar2 = local_28;\n      }\n      pcVar3 = local_20 + -sVar2;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,pcVar3,iVar5);\n        if (iVar5 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *sp = pcVar3;\n      *ep = local_20;\n      return 1;\n    }" { (labeled_statement "LAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar2 = local_28;\n      }" statement_identifier : (if_statement "if (local_28 != 0xffffffff) {\n        sVar2 = local_28;\n      }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n        sVar2 = local_28;\n      }" { (expression_statement "sVar2 = local_28;" (assignment_expression "sVar2 = local_28" identifier = identifier) ;) }))) (expression_statement "pcVar3 = local_20 + -sVar2;" (assignment_expression "pcVar3 = local_20 + -sVar2" identifier = (binary_expression "local_20 + -sVar2" identifier + (unary_expression "-sVar2" - identifier))) ;) (while_statement "while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,pcVar3,iVar5);\n        if (iVar5 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,pcVar3,iVar5);\n        if (iVar5 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }" { (if_statement "if (local_20 < pcVar3) {\n          return 0;\n        }" if (parenthesized_expression "(local_20 < pcVar3)" ( (binary_expression "local_20 < pcVar3" identifier < identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = 0x10;" (assignment_expression "iVar5 = 0x10" identifier = number_literal) ;) (expression_statement "iVar8 = extended_glob;" (assignment_expression "iVar8 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }" { (expression_statement "iVar5 = 0x30;" (assignment_expression "iVar5 = 0x30" identifier = number_literal) ;) (expression_statement "iVar8 = 0x20;" (assignment_expression "iVar8 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n          iVar5 = iVar8;\n        }" { (expression_statement "iVar5 = iVar8;" (assignment_expression "iVar5 = iVar8" identifier = identifier) ;) })) (expression_statement "iVar5 = strmatch(pat,pcVar3,iVar5);" (assignment_expression "iVar5 = strmatch(pat,pcVar3,iVar5)" identifier = (call_expression "strmatch(pat,pcVar3,iVar5)" identifier (argument_list "(pat,pcVar3,iVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (local_28 != 0xffffffff) {\n          return 0;\n        }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*sp = pcVar3;" (assignment_expression "*sp = pcVar3" (pointer_expression "*sp" * identifier) = identifier) ;) (expression_statement "*ep = local_20;" (assignment_expression "*ep = local_20" (pointer_expression "*ep" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (mtype != 0) {\n      return 0;\n    }" if (parenthesized_expression "(mtype != 0)" ( (binary_expression "mtype != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_20 < string) {\n      return 0;\n    }" if (parenthesized_expression "(local_20 < string)" ( (binary_expression "local_20 < string" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (do_statement "do {\n    iVar5 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar5 = 0x10;\n    }\n    iVar5 = match_pattern_char(pat,string,iVar5);\n    if (iVar5 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = string + local_28, local_20 < string + local_28)) {\n        return 0;\n      }\n      for (; string <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar7 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) {\n          *pcVar3 = cVar7;\n          *sp = string;\n          *ep = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar7;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    string = string + 1;\n    if (local_20 < string) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    iVar5 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar5 = 0x10;\n    }\n    iVar5 = match_pattern_char(pat,string,iVar5);\n    if (iVar5 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = string + local_28, local_20 < string + local_28)) {\n        return 0;\n      }\n      for (; string <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar7 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) {\n          *pcVar3 = cVar7;\n          *sp = string;\n          *ep = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar7;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    string = string + 1;\n    if (local_20 < string) {\n      return 0;\n    }\n  }" { (expression_statement "iVar5 = match_ignore_case;" (assignment_expression "iVar5 = match_ignore_case" identifier = identifier) ;) (if_statement "if (match_ignore_case != 0) {\n      iVar5 = 0x10;\n    }" if (parenthesized_expression "(match_ignore_case != 0)" ( (binary_expression "match_ignore_case != 0" identifier != number_literal) )) (compound_statement "{\n      iVar5 = 0x10;\n    }" { (expression_statement "iVar5 = 0x10;" (assignment_expression "iVar5 = 0x10" identifier = number_literal) ;) })) (expression_statement "iVar5 = match_pattern_char(pat,string,iVar5);" (assignment_expression "iVar5 = match_pattern_char(pat,string,iVar5)" identifier = (call_expression "match_pattern_char(pat,string,iVar5)" identifier (argument_list "(pat,string,iVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar5 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = string + local_28, local_20 < string + local_28)) {\n        return 0;\n      }\n      for (; string <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar7 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) {\n          *pcVar3 = cVar7;\n          *sp = string;\n          *ep = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar7;\n        if (local_28 != 0xffffffff) break;\n      }\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = string + local_28, local_20 < string + local_28)) {\n        return 0;\n      }\n      for (; string <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar7 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) {\n          *pcVar3 = cVar7;\n          *sp = string;\n          *ep = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar7;\n        if (local_28 != 0xffffffff) break;\n      }\n    }" { (expression_statement "pcVar3 = local_20;" (assignment_expression "pcVar3 = local_20" identifier = identifier) ;) (if_statement "if ((local_28 != 0xffffffff) && (pcVar3 = string + local_28, local_20 < string + local_28)) {\n        return 0;\n      }" if (parenthesized_expression "((local_28 != 0xffffffff) && (pcVar3 = string + local_28, local_20 < string + local_28))" ( (binary_expression "(local_28 != 0xffffffff) && (pcVar3 = string + local_28, local_20 < string + local_28)" (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) && (parenthesized_expression "(pcVar3 = string + local_28, local_20 < string + local_28)" ( (comma_expression "pcVar3 = string + local_28, local_20 < string + local_28" (assignment_expression "pcVar3 = string + local_28" identifier = (binary_expression "string + local_28" identifier + identifier)) , (binary_expression "local_20 < string + local_28" identifier < (binary_expression "string + local_28" identifier + identifier))) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (for_statement "for (; string <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar7 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) {\n          *pcVar3 = cVar7;\n          *sp = string;\n          *ep = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar7;\n        if (local_28 != 0xffffffff) break;\n      }" for ( ; (binary_expression "string <= pcVar3" identifier <= identifier) ; (assignment_expression "pcVar3 = pcVar3 + -1" identifier = (binary_expression "pcVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n        cVar7 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar5 = 0x10;\n        iVar8 = extended_glob;\n        if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }\n        iVar5 = strmatch(pat,string,iVar5);\n        if (iVar5 == 0) {\n          *pcVar3 = cVar7;\n          *sp = string;\n          *ep = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar7;\n        if (local_28 != 0xffffffff) break;\n      }" { (expression_statement "cVar7 = *pcVar3;" (assignment_expression "cVar7 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar5 = 0x10;" (assignment_expression "iVar5 = 0x10" identifier = number_literal) ;) (expression_statement "iVar8 = extended_glob;" (assignment_expression "iVar8 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n          iVar5 = 0x30;\n          iVar8 = 0x20;\n        }" { (expression_statement "iVar5 = 0x30;" (assignment_expression "iVar5 = 0x30" identifier = number_literal) ;) (expression_statement "iVar8 = 0x20;" (assignment_expression "iVar8 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n          iVar5 = iVar8;\n        }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n          iVar5 = iVar8;\n        }" { (expression_statement "iVar5 = iVar8;" (assignment_expression "iVar5 = iVar8" identifier = identifier) ;) })) (expression_statement "iVar5 = strmatch(pat,string,iVar5);" (assignment_expression "iVar5 = strmatch(pat,string,iVar5)" identifier = (call_expression "strmatch(pat,string,iVar5)" identifier (argument_list "(pat,string,iVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n          *pcVar3 = cVar7;\n          *sp = string;\n          *ep = pcVar3;\n          return 1;\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          *pcVar3 = cVar7;\n          *sp = string;\n          *ep = pcVar3;\n          return 1;\n        }" { (expression_statement "*pcVar3 = cVar7;" (assignment_expression "*pcVar3 = cVar7" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "*sp = string;" (assignment_expression "*sp = string" (pointer_expression "*sp" * identifier) = identifier) ;) (expression_statement "*ep = pcVar3;" (assignment_expression "*ep = pcVar3" (pointer_expression "*ep" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*pcVar3 = cVar7;" (assignment_expression "*pcVar3 = cVar7" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (if_statement "if (local_28 != 0xffffffff) break;" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (break_statement "break;" break ;)) })) })) (expression_statement "string = string + 1;" (assignment_expression "string = string + 1" identifier = (binary_expression "string + 1" identifier + number_literal)) ;) (if_statement "if (local_20 < string) {\n      return 0;\n    }" if (parenthesized_expression "(local_20 < string)" ( (binary_expression "local_20 < string" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 __regparm3\nFUN_00070820(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char cVar6;\n  int iVar7;\n  size_t local_28;\n  char *local_20;\n  \n  cVar6 = *param_2;\n  if (cVar6 == '\0') {\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }\n  if (iVar2 == 1) {\n    return 0;\n  }\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }\n  do {\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_00070820(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char cVar6;\n  int iVar7;\n  size_t local_28;\n  char *local_20;\n  \n  cVar6 = *param_2;\n  if (cVar6 == '\0') {\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }\n  if (iVar2 == 1) {\n    return 0;\n  }\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }\n  do {\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  } while( true );\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00070820(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)" identifier (parameter_list "(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char cVar6;\n  int iVar7;\n  size_t local_28;\n  char *local_20;\n  \n  cVar6 = *param_2;\n  if (cVar6 == '\0') {\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }\n  if (iVar2 == 1) {\n    return 0;\n  }\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }\n  do {\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "size_t local_28;" primitive_type identifier ;) (declaration "char *local_20;" primitive_type (pointer_declarator "*local_20" * identifier) ;) (expression_statement "cVar6 = *param_2;" (assignment_expression "cVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar6 == '\0') {\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }" if (parenthesized_expression "(cVar6 == '\0')" ( (binary_expression "cVar6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }" { (expression_statement "iVar2 = 3;" (assignment_expression "iVar2 = 3" identifier = number_literal) ;) (labeled_statement "LAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);" statement_identifier : (expression_statement "pcVar3 = (char *)xmalloc(iVar2);" (assignment_expression "pcVar3 = (char *)xmalloc(iVar2)" identifier = (cast_expression "(char *)xmalloc(iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))))) ;)) (expression_statement "cVar6 = *param_2;" (assignment_expression "cVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) (expression_statement "pcVar5 = param_2;" (assignment_expression "pcVar5 = param_2" identifier = identifier) ;) (if_statement "if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }" { (if_statement "if (cVar6 != '\0') goto LAB_000708e8;" if (parenthesized_expression "(cVar6 != '\0')" ( (binary_expression "cVar6 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000708e8;" goto statement_identifier ;)) (labeled_statement "LAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }" statement_identifier : (if_statement "if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }" if (parenthesized_expression "(pcVar5[-1] == '*')" ( (binary_expression "pcVar5[-1] == '*'" (subscript_expression "pcVar5[-1]" identifier [ number_literal ]) == (char_literal "'*'" ' character ')) )) (compound_statement "{\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }" { (if_statement "if (pcVar5[-2] != '\\') goto LAB_0007090f;" if (parenthesized_expression "(pcVar5[-2] != '\\')" ( (binary_expression "pcVar5[-2] != '\\'" (subscript_expression "pcVar5[-2]" identifier [ number_literal ]) != (char_literal "'\\'" ' escape_sequence ')) )) (goto_statement "goto LAB_0007090f;" goto statement_identifier ;)) (if_statement "if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }" if (parenthesized_expression "((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\'))" ( (binary_expression "(param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')" (parenthesized_expression "(param_2 <= pcVar5 + -3)" ( (binary_expression "param_2 <= pcVar5 + -3" identifier <= (binary_expression "pcVar5 + -3" identifier + number_literal)) )) && (parenthesized_expression "(pcVar5[-3] == '\\')" ( (binary_expression "pcVar5[-3] == '\\'" (subscript_expression "pcVar5[-3]" identifier [ number_literal ]) == (char_literal "'\\'" ' escape_sequence ')) ))) )) (compound_statement "{\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (expression_statement "pcVar5 = pcVar5 + -4;" (assignment_expression "pcVar5 = pcVar5 + -4" identifier = (binary_expression "pcVar5 + -4" identifier + number_literal)) ;) (do_statement "do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');" do (compound_statement "{\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          }" { (expression_statement "iVar2 = 1 - iVar2;" (assignment_expression "iVar2 = 1 - iVar2" identifier = (binary_expression "1 - iVar2" number_literal - identifier)) ;) (if_statement "if (param_2 + -1 == pcVar5) break;" if (parenthesized_expression "(param_2 + -1 == pcVar5)" ( (binary_expression "param_2 + -1 == pcVar5" (binary_expression "param_2 + -1" identifier + number_literal) == identifier) )) (break_statement "break;" break ;)) (expression_statement "cVar6 = *pcVar5;" (assignment_expression "cVar6 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + -1;" (assignment_expression "pcVar5 = pcVar5 + -1" identifier = (binary_expression "pcVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar6 == '\\')" ( (binary_expression "cVar6 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) ;) (if_statement "if (iVar2 == 0) goto LAB_0007090f;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007090f;" goto statement_identifier ;)) })) }))) (expression_statement "*pcVar4 = '*';" (assignment_expression "*pcVar4 = '*'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'*'" ' character ')) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }" else (compound_statement "{\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }" { (if_statement "if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }" if (parenthesized_expression "((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0))))" ( (binary_expression "(cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))" (parenthesized_expression "(cVar6 != '*')" ( (binary_expression "cVar6 != '*'" identifier != (char_literal "'*'" ' character ')) )) || (parenthesized_expression "((param_2[1] == '(' && (extended_glob != 0)))" ( (parenthesized_expression "(param_2[1] == '(' && (extended_glob != 0))" ( (binary_expression "param_2[1] == '(' && (extended_glob != 0)" (binary_expression "param_2[1] == '('" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'('" ' character ')) && (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) ))) )) ))) )) (compound_statement "{\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }" { (expression_statement "*pcVar3 = '*';" (assignment_expression "*pcVar3 = '*'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'*'" ' character ')) ;) (expression_statement "cVar6 = *param_2;" (assignment_expression "cVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (goto_statement "goto joined_r0x000708d9;" goto statement_identifier ;) })) (labeled_statement "LAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');" statement_identifier : (do_statement "do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');" do (compound_statement "{\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      }" { (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar4 = cVar6;" (assignment_expression "*pcVar4 = cVar6" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "cVar6 = *pcVar5;" (assignment_expression "cVar6 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (labeled_statement "joined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;" statement_identifier : (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;)) }) while (parenthesized_expression "(cVar6 != '\0')" ( (binary_expression "cVar6 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;)) (if_statement "if (param_3 != 2) goto LAB_000708ff;" if (parenthesized_expression "(param_3 != 2)" ( (binary_expression "param_3 != 2" identifier != number_literal) )) (goto_statement "goto LAB_000708ff;" goto statement_identifier ;)) }))) (labeled_statement "LAB_0007090f:\n    *pcVar4 = '\0';" statement_identifier : (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (labeled_statement "LAB_00070912:\n    iVar2 = 0x10;" statement_identifier : (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;)) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }" { (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" identifier = number_literal) ;) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = iVar7;\n    }" { (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = identifier) ;) })) (expression_statement "iVar2 = strmatch(pcVar3,param_1,iVar2);" (assignment_expression "iVar2 = strmatch(pcVar3,param_1,iVar2)" identifier = (call_expression "strmatch(pcVar3,param_1,iVar2)" identifier (argument_list "(pcVar3,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (pcVar3 != param_2) {\n      free(pcVar3);\n    }" if (parenthesized_expression "(pcVar3 != param_2)" ( (binary_expression "pcVar3 != param_2" identifier != identifier) )) (compound_statement "{\n      free(pcVar3);\n    }" { (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) })) }) (else_clause "else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }" else (compound_statement "{\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }" { (expression_statement "pcVar3 = param_2;" (assignment_expression "pcVar3 = param_2" identifier = identifier) ;) (if_statement "if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }" if (parenthesized_expression "(param_2[1] == '\0')" ( (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }" { (if_statement "if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }" if (parenthesized_expression "(cVar6 != '*')" ( (binary_expression "cVar6 != '*'" identifier != (char_literal "'*'" ' character ')) )) (compound_statement "{\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }" { (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_000708a7;" goto statement_identifier ;) })) (goto_statement "goto LAB_00070912;" goto statement_identifier ;) })) (expression_statement "sVar1 = 2;" (assignment_expression "sVar1 = 2" identifier = number_literal) ;) (if_statement "if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }" if (parenthesized_expression "(param_2[2] != '\0')" ( (binary_expression "param_2[2] != '\0'" (subscript_expression "param_2[2]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      sVar1 = strlen(param_2);\n    }" { (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) })) (if_statement "if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" if (parenthesized_expression "(cVar6 != '*')" ( (binary_expression "cVar6 != '*'" identifier != (char_literal "'*'" ' character ')) )) (compound_statement "{\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" { (labeled_statement "LAB_00070885:\n      iVar2 = sVar1 + 3;" statement_identifier : (expression_statement "iVar2 = sVar1 + 3;" (assignment_expression "iVar2 = sVar1 + 3" identifier = (binary_expression "sVar1 + 3" identifier + number_literal)) ;)) (goto_statement "goto LAB_000708a7;" goto statement_identifier ;) })) (if_statement "if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }" if (parenthesized_expression "(param_2[1] != '(')" ( (binary_expression "param_2[1] != '('" (subscript_expression "param_2[1]" identifier [ number_literal ]) != (char_literal "'('" ' character ')) )) (compound_statement "{\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }" { (if_statement "if (param_2[sVar1 - 1] == '*') goto LAB_00070912;" if (parenthesized_expression "(param_2[sVar1 - 1] == '*')" ( (binary_expression "param_2[sVar1 - 1] == '*'" (subscript_expression "param_2[sVar1 - 1]" identifier [ (binary_expression "sVar1 - 1" identifier - number_literal) ]) == (char_literal "'*'" ' character ')) )) (goto_statement "goto LAB_00070912;" goto statement_identifier ;)) (goto_statement "goto LAB_00070885;" goto statement_identifier ;) })) (if_statement "if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" if (parenthesized_expression "((extended_glob != 0) || (param_2[sVar1 - 1] != '*'))" ( (binary_expression "(extended_glob != 0) || (param_2[sVar1 - 1] != '*')" (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) || (parenthesized_expression "(param_2[sVar1 - 1] != '*')" ( (binary_expression "param_2[sVar1 - 1] != '*'" (subscript_expression "param_2[sVar1 - 1]" identifier [ (binary_expression "sVar1 - 1" identifier - number_literal) ]) != (char_literal "'*'" ' character ')) ))) )) (compound_statement "{\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" { (expression_statement "iVar2 = sVar1 + 3;" (assignment_expression "iVar2 = sVar1 + 3" identifier = (binary_expression "sVar1 + 3" identifier + number_literal)) ;) (goto_statement "goto LAB_000708a7;" goto statement_identifier ;) })) (if_statement "if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = strmatch(param_2,param_1,0);\n    }" { (expression_statement "iVar2 = strmatch(param_2,param_1,0);" (assignment_expression "iVar2 = strmatch(param_2,param_1,0)" identifier = (call_expression "strmatch(param_2,param_1,0)" identifier (argument_list "(param_2,param_1,0)" ( identifier , identifier , number_literal )))) ;) }) (else_clause "else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }" else (compound_statement "{\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }" { (expression_statement "iVar2 = strmatch(param_2,param_1,0x10);" (assignment_expression "iVar2 = strmatch(param_2,param_1,0x10)" identifier = (call_expression "strmatch(param_2,param_1,0x10)" identifier (argument_list "(param_2,param_1,0x10)" ( identifier , identifier , number_literal )))) ;) }))) }))) (if_statement "if (iVar2 == 1) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((param_1 == (char *)0x0) || (*param_1 == '\0'))" ( (binary_expression "(param_1 == (char *)0x0) || (*param_1 == '\0')" (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }" { (expression_statement "local_28 = umatchlen(param_2,0);" (assignment_expression "local_28 = umatchlen(param_2,0)" identifier = (call_expression "umatchlen(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal )))) ;) (expression_statement "local_20 = param_1;" (assignment_expression "local_20 = param_1" identifier = identifier) ;) (if_statement "if (param_3 == 1) goto LAB_00070c12;" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (goto_statement "goto LAB_00070c12;" goto statement_identifier ;)) (if_statement "if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }" { (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00070b42;" goto statement_identifier ;) })) (if_statement "if (param_3 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" { (expression_statement "sVar1 = 1;" (assignment_expression "sVar1 = 1" identifier = number_literal) ;) (if_statement "if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }" if (parenthesized_expression "((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0'))" ( (binary_expression "(param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')" (parenthesized_expression "(param_1[1] != '\0')" ( (binary_expression "param_1[1] != '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(sVar1 = 2, param_1[2] != '\0')" ( (comma_expression "sVar1 = 2, param_1[2] != '\0'" (assignment_expression "sVar1 = 2" identifier = number_literal) , (binary_expression "param_1[2] != '\0'" (subscript_expression "param_1[2]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n      sVar1 = strlen(param_1);\n    }" { (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) })) (expression_statement "local_20 = param_1 + sVar1;" (assignment_expression "local_20 = param_1 + sVar1" identifier = (binary_expression "param_1 + sVar1" identifier + identifier)) ;) (expression_statement "local_28 = umatchlen(param_2,sVar1);" (assignment_expression "local_28 = umatchlen(param_2,sVar1)" identifier = (call_expression "umatchlen(param_2,sVar1)" identifier (argument_list "(param_2,sVar1)" ( identifier , identifier )))) ;) (if_statement "if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }" { (labeled_statement "LAB_00070c12:\n      iVar2 = match_ignore_case;" statement_identifier : (expression_statement "iVar2 = match_ignore_case;" (assignment_expression "iVar2 = match_ignore_case" identifier = identifier) ;)) (if_statement "if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }" if (parenthesized_expression "(match_ignore_case != 0)" ( (binary_expression "match_ignore_case != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = 0x10;\n      }" { (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) })) (expression_statement "iVar2 = match_pattern_char(param_2,param_1,iVar2);" (assignment_expression "iVar2 = match_pattern_char(param_2,param_1,iVar2)" identifier = (call_expression "match_pattern_char(param_2,param_1,iVar2)" identifier (argument_list "(param_2,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n        local_20 = param_1 + local_28;\n      }" { (expression_statement "local_20 = param_1 + local_28;" (assignment_expression "local_20 = param_1 + local_28" identifier = (binary_expression "param_1 + local_28" identifier + identifier)) ;) })) (while_statement "while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }" { (if_statement "if (local_20 < param_1) {\n          return 0;\n        }" if (parenthesized_expression "(local_20 < param_1)" ( (binary_expression "local_20 < param_1" identifier < identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar6 = *local_20;" (assignment_expression "cVar6 = *local_20" identifier = (pointer_expression "*local_20" * identifier)) ;) (expression_statement "*local_20 = '\0';" (assignment_expression "*local_20 = '\0'" (pointer_expression "*local_20" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" { (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" identifier = number_literal) ;) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n          iVar2 = iVar7;\n        }" { (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = identifier) ;) })) (expression_statement "iVar2 = strmatch(param_2,param_1,iVar2);" (assignment_expression "iVar2 = strmatch(param_2,param_1,iVar2)" identifier = (call_expression "strmatch(param_2,param_1,iVar2)" identifier (argument_list "(param_2,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*local_20 = cVar6;" (assignment_expression "*local_20 = cVar6" (pointer_expression "*local_20" * identifier) = identifier) ;) (if_statement "if (local_28 != 0xffffffff) {\n          return 0;\n        }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_20 = local_20 + -1;" (assignment_expression "local_20 = local_20 + -1" identifier = (binary_expression "local_20 + -1" identifier + number_literal)) ;) })) (expression_statement "*local_20 = cVar6;" (assignment_expression "*local_20 = cVar6" (pointer_expression "*local_20" * identifier) = identifier) ;) (expression_statement "*param_4 = param_1;" (assignment_expression "*param_4 = param_1" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "*param_5 = local_20;" (assignment_expression "*param_5 = local_20" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }" { (labeled_statement "LAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }" statement_identifier : (if_statement "if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n        sVar1 = local_28;\n      }" { (expression_statement "sVar1 = local_28;" (assignment_expression "sVar1 = local_28" identifier = identifier) ;) }))) (expression_statement "pcVar3 = local_20 + -sVar1;" (assignment_expression "pcVar3 = local_20 + -sVar1" identifier = (binary_expression "local_20 + -sVar1" identifier + (unary_expression "-sVar1" - identifier))) ;) (while_statement "while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }" { (if_statement "if (local_20 < pcVar3) {\n          return 0;\n        }" if (parenthesized_expression "(local_20 < pcVar3)" ( (binary_expression "local_20 < pcVar3" identifier < identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" { (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" identifier = number_literal) ;) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n          iVar2 = iVar7;\n        }" { (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = identifier) ;) })) (expression_statement "iVar2 = strmatch(param_2,pcVar3,iVar2);" (assignment_expression "iVar2 = strmatch(param_2,pcVar3,iVar2)" identifier = (call_expression "strmatch(param_2,pcVar3,iVar2)" identifier (argument_list "(param_2,pcVar3,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (local_28 != 0xffffffff) {\n          return 0;\n        }" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*param_4 = pcVar3;" (assignment_expression "*param_4 = pcVar3" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "*param_5 = local_20;" (assignment_expression "*param_5 = local_20" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (param_3 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (local_20 < param_1) {\n      return 0;\n    }" if (parenthesized_expression "(local_20 < param_1)" ( (binary_expression "local_20 < param_1" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (do_statement "do {\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" { (expression_statement "iVar2 = match_ignore_case;" (assignment_expression "iVar2 = match_ignore_case" identifier = identifier) ;) (if_statement "if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }" if (parenthesized_expression "(match_ignore_case != 0)" ( (binary_expression "match_ignore_case != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = 0x10;\n    }" { (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) })) (expression_statement "iVar2 = match_pattern_char(param_2,param_1,iVar2);" (assignment_expression "iVar2 = match_pattern_char(param_2,param_1,iVar2)" identifier = (call_expression "match_pattern_char(param_2,param_1,iVar2)" identifier (argument_list "(param_2,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }" { (expression_statement "pcVar3 = local_20;" (assignment_expression "pcVar3 = local_20" identifier = identifier) ;) (if_statement "if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }" if (parenthesized_expression "((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))" ( (binary_expression "(local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28)" (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) && (parenthesized_expression "(pcVar3 = param_1 + local_28, local_20 < param_1 + local_28)" ( (comma_expression "pcVar3 = param_1 + local_28, local_20 < param_1 + local_28" (assignment_expression "pcVar3 = param_1 + local_28" identifier = (binary_expression "param_1 + local_28" identifier + identifier)) , (binary_expression "local_20 < param_1 + local_28" identifier < (binary_expression "param_1 + local_28" identifier + identifier))) ))) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (for_statement "for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }" for ( ; (binary_expression "param_1 <= pcVar3" identifier <= identifier) ; (assignment_expression "pcVar3 = pcVar3 + -1" identifier = (binary_expression "pcVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }" { (expression_statement "cVar6 = *pcVar3;" (assignment_expression "cVar6 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" identifier = identifier) ;) (if_statement "if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" if (parenthesized_expression "(extended_glob != 0)" ( (binary_expression "extended_glob != 0" identifier != number_literal) )) (compound_statement "{\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" { (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" identifier = number_literal) ;) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" identifier = number_literal) ;) })) (if_statement "if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }" if (parenthesized_expression "(match_ignore_case == 0)" ( (binary_expression "match_ignore_case == 0" identifier == number_literal) )) (compound_statement "{\n          iVar2 = iVar7;\n        }" { (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = identifier) ;) })) (expression_statement "iVar2 = strmatch(param_2,param_1,iVar2);" (assignment_expression "iVar2 = strmatch(param_2,param_1,iVar2)" identifier = (call_expression "strmatch(param_2,param_1,iVar2)" identifier (argument_list "(param_2,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }" { (expression_statement "*pcVar3 = cVar6;" (assignment_expression "*pcVar3 = cVar6" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "*param_4 = param_1;" (assignment_expression "*param_4 = param_1" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "*param_5 = pcVar3;" (assignment_expression "*param_5 = pcVar3" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*pcVar3 = cVar6;" (assignment_expression "*pcVar3 = cVar6" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (if_statement "if (local_28 != 0xffffffff) break;" if (parenthesized_expression "(local_28 != 0xffffffff)" ( (binary_expression "local_28 != 0xffffffff" identifier != number_literal) )) (break_statement "break;" break ;)) })) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (local_20 < param_1) {\n      return 0;\n    }" if (parenthesized_expression "(local_20 < param_1)" ( (binary_expression "local_20 < param_1" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + LIT)) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) == (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) != (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence '))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (unary_expression - IDENT))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) }))) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + IDENT)) , (binary_expression IDENT < (binary_expression IDENT + IDENT))) ))) )) (compound_statement { (return_statement return LIT ;) })) (for_statement for ( ; (binary_expression IDENT <= IDENT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 __regparm3\nFUN_00070820(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char cVar6;\n  int iVar7;\n  size_t local_28;\n  char *local_20;\n  \n  cVar6 = *param_2;\n  if (cVar6 == '\0') {\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }\n  if (iVar2 == 1) {\n    return 0;\n  }\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }\n  do {\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  } while( true );\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00070820(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)" (identifier "FUN_00070820") (parameter_list "(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char cVar6;\n  int iVar7;\n  size_t local_28;\n  char *local_20;\n  \n  cVar6 = *param_2;\n  if (cVar6 == '\0') {\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }\n  if (iVar2 == 1) {\n    return 0;\n  }\n  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }\n  do {\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  } while( true );\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char cVar6;" (primitive_type "char") (identifier "cVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "size_t local_28;" (primitive_type "size_t") (identifier "local_28") (; ";")) (declaration "char *local_20;" (primitive_type "char") (pointer_declarator "*local_20" (* "*") (identifier "local_20")) (; ";")) (expression_statement "cVar6 = *param_2;" (assignment_expression "cVar6 = *param_2" (identifier "cVar6") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (cVar6 == '\0') {\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }\n  else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }" (if "if") (parenthesized_expression "(cVar6 == '\0')" (( "(") (binary_expression "cVar6 == '\0'" (identifier "cVar6") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = 3;\nLAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);\n    cVar6 = *param_2;\n    pcVar4 = pcVar3;\n    pcVar5 = param_2;\n    if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }\nLAB_0007090f:\n    *pcVar4 = '\0';\nLAB_00070912:\n    iVar2 = 0x10;\n    iVar7 = extended_glob;\n    if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }\n    iVar2 = strmatch(pcVar3,param_1,iVar2);\n    if (pcVar3 != param_2) {\n      free(pcVar3);\n    }\n  }" ({ "{") (expression_statement "iVar2 = 3;" (assignment_expression "iVar2 = 3" (identifier "iVar2") (= "=") (number_literal "3")) (; ";")) (labeled_statement "LAB_000708a7:\n    pcVar3 = (char *)xmalloc(iVar2);" (statement_identifier "LAB_000708a7") (: ":") (expression_statement "pcVar3 = (char *)xmalloc(iVar2);" (assignment_expression "pcVar3 = (char *)xmalloc(iVar2)" (identifier "pcVar3") (= "=") (cast_expression "(char *)xmalloc(iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(iVar2)" (identifier "xmalloc") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))))) (; ";"))) (expression_statement "cVar6 = *param_2;" (assignment_expression "cVar6 = *param_2" (identifier "cVar6") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" (identifier "pcVar4") (= "=") (identifier "pcVar3")) (; ";")) (expression_statement "pcVar5 = param_2;" (assignment_expression "pcVar5 = param_2" (identifier "pcVar5") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_3 == 1) {\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }\n    else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }" (if "if") (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      if (cVar6 != '\0') goto LAB_000708e8;\nLAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }\n      *pcVar4 = '*';\n      pcVar4 = pcVar4 + 1;\n    }" ({ "{") (if_statement "if (cVar6 != '\0') goto LAB_000708e8;" (if "if") (parenthesized_expression "(cVar6 != '\0')" (( "(") (binary_expression "cVar6 != '\0'" (identifier "cVar6") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000708e8;" (goto "goto") (statement_identifier "LAB_000708e8") (; ";"))) (labeled_statement "LAB_000708ff:\n      if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }" (statement_identifier "LAB_000708ff") (: ":") (if_statement "if (pcVar5[-1] == '*') {\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }" (if "if") (parenthesized_expression "(pcVar5[-1] == '*')" (( "(") (binary_expression "pcVar5[-1] == '*'" (subscript_expression "pcVar5[-1]" (identifier "pcVar5") ([ "[") (number_literal "-1") (] "]")) (== "==") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")")) (compound_statement "{\n        if (pcVar5[-2] != '\\') goto LAB_0007090f;\n        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }\n      }" ({ "{") (if_statement "if (pcVar5[-2] != '\\') goto LAB_0007090f;" (if "if") (parenthesized_expression "(pcVar5[-2] != '\\')" (( "(") (binary_expression "pcVar5[-2] != '\\'" (subscript_expression "pcVar5[-2]" (identifier "pcVar5") ([ "[") (number_literal "-2") (] "]")) (!= "!=") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) () ")")) (goto_statement "goto LAB_0007090f;" (goto "goto") (statement_identifier "LAB_0007090f") (; ";"))) (if_statement "if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }" (if "if") (parenthesized_expression "((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\'))" (( "(") (binary_expression "(param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')" (parenthesized_expression "(param_2 <= pcVar5 + -3)" (( "(") (binary_expression "param_2 <= pcVar5 + -3" (identifier "param_2") (<= "<=") (binary_expression "pcVar5 + -3" (identifier "pcVar5") (+ "+") (number_literal "-3"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar5[-3] == '\\')" (( "(") (binary_expression "pcVar5[-3] == '\\'" (subscript_expression "pcVar5[-3]" (identifier "pcVar5") ([ "[") (number_literal "-3") (] "]")) (== "==") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) () ")"))) () ")")) (compound_statement "{\n          iVar2 = 1;\n          pcVar5 = pcVar5 + -4;\n          do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');\n          if (iVar2 == 0) goto LAB_0007090f;\n        }" ({ "{") (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" (identifier "iVar2") (= "=") (number_literal "1")) (; ";")) (expression_statement "pcVar5 = pcVar5 + -4;" (assignment_expression "pcVar5 = pcVar5 + -4" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + -4" (identifier "pcVar5") (+ "+") (number_literal "-4"))) (; ";")) (do_statement "do {\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          } while (cVar6 == '\\');" (do "do") (compound_statement "{\n            iVar2 = 1 - iVar2;\n            if (param_2 + -1 == pcVar5) break;\n            cVar6 = *pcVar5;\n            pcVar5 = pcVar5 + -1;\n          }" ({ "{") (expression_statement "iVar2 = 1 - iVar2;" (assignment_expression "iVar2 = 1 - iVar2" (identifier "iVar2") (= "=") (binary_expression "1 - iVar2" (number_literal "1") (- "-") (identifier "iVar2"))) (; ";")) (if_statement "if (param_2 + -1 == pcVar5) break;" (if "if") (parenthesized_expression "(param_2 + -1 == pcVar5)" (( "(") (binary_expression "param_2 + -1 == pcVar5" (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1")) (== "==") (identifier "pcVar5")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "cVar6 = *pcVar5;" (assignment_expression "cVar6 = *pcVar5" (identifier "cVar6") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (expression_statement "pcVar5 = pcVar5 + -1;" (assignment_expression "pcVar5 = pcVar5 + -1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + -1" (identifier "pcVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar6 == '\\')" (( "(") (binary_expression "cVar6 == '\\'" (identifier "cVar6") (== "==") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) () ")")) (; ";")) (if_statement "if (iVar2 == 0) goto LAB_0007090f;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0007090f;" (goto "goto") (statement_identifier "LAB_0007090f") (; ";"))) (} "}"))) (} "}")))) (expression_statement "*pcVar4 = '*';" (assignment_expression "*pcVar4 = '*'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (char_literal "'*'" (' "'") (character "*") (' "'"))) (; ";")) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }" (else "else") (compound_statement "{\n      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }\nLAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');\n      if (param_3 != 2) goto LAB_000708ff;\n    }" ({ "{") (if_statement "if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }" (if "if") (parenthesized_expression "((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0))))" (( "(") (binary_expression "(cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))" (parenthesized_expression "(cVar6 != '*')" (( "(") (binary_expression "cVar6 != '*'" (identifier "cVar6") (!= "!=") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")")) (|| "||") (parenthesized_expression "((param_2[1] == '(' && (extended_glob != 0)))" (( "(") (parenthesized_expression "(param_2[1] == '(' && (extended_glob != 0))" (( "(") (binary_expression "param_2[1] == '(' && (extended_glob != 0)" (binary_expression "param_2[1] == '('" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'('" (' "'") (character "(") (' "'"))) (&& "&&") (parenthesized_expression "(extended_glob != 0)" (( "(") (binary_expression "extended_glob != 0" (identifier "extended_glob") (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        *pcVar3 = '*';\n        cVar6 = *param_2;\n        goto joined_r0x000708d9;\n      }" ({ "{") (expression_statement "*pcVar3 = '*';" (assignment_expression "*pcVar3 = '*'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'*'" (' "'") (character "*") (' "'"))) (; ";")) (expression_statement "cVar6 = *param_2;" (assignment_expression "cVar6 = *param_2" (identifier "cVar6") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (goto_statement "goto joined_r0x000708d9;" (goto "goto") (statement_identifier "joined_r0x000708d9") (; ";")) (} "}"))) (labeled_statement "LAB_000708e8:\n      do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');" (statement_identifier "LAB_000708e8") (: ":") (do_statement "do {\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      } while (cVar6 != '\0');" (do "do") (compound_statement "{\n        pcVar5 = pcVar5 + 1;\n        *pcVar4 = cVar6;\n        cVar6 = *pcVar5;\njoined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;\n      }" ({ "{") (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar4 = cVar6;" (assignment_expression "*pcVar4 = cVar6" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (identifier "cVar6")) (; ";")) (expression_statement "cVar6 = *pcVar5;" (assignment_expression "cVar6 = *pcVar5" (identifier "cVar6") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (labeled_statement "joined_r0x000708d9:\n        pcVar4 = pcVar4 + 1;" (statement_identifier "joined_r0x000708d9") (: ":") (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (number_literal "1"))) (; ";"))) (} "}")) (while "while") (parenthesized_expression "(cVar6 != '\0')" (( "(") (binary_expression "cVar6 != '\0'" (identifier "cVar6") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";"))) (if_statement "if (param_3 != 2) goto LAB_000708ff;" (if "if") (parenthesized_expression "(param_3 != 2)" (( "(") (binary_expression "param_3 != 2" (identifier "param_3") (!= "!=") (number_literal "2")) () ")")) (goto_statement "goto LAB_000708ff;" (goto "goto") (statement_identifier "LAB_000708ff") (; ";"))) (} "}")))) (labeled_statement "LAB_0007090f:\n    *pcVar4 = '\0';" (statement_identifier "LAB_0007090f") (: ":") (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";"))) (labeled_statement "LAB_00070912:\n    iVar2 = 0x10;" (statement_identifier "LAB_00070912") (: ":") (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" (identifier "iVar2") (= "=") (number_literal "0x10")) (; ";"))) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" (identifier "iVar7") (= "=") (identifier "extended_glob")) (; ";")) (if_statement "if (extended_glob != 0) {\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }" (if "if") (parenthesized_expression "(extended_glob != 0)" (( "(") (binary_expression "extended_glob != 0" (identifier "extended_glob") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = 0x30;\n      iVar7 = 0x20;\n    }" ({ "{") (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" (identifier "iVar2") (= "=") (number_literal "0x30")) (; ";")) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" (identifier "iVar7") (= "=") (number_literal "0x20")) (; ";")) (} "}"))) (if_statement "if (match_ignore_case == 0) {\n      iVar2 = iVar7;\n    }" (if "if") (parenthesized_expression "(match_ignore_case == 0)" (( "(") (binary_expression "match_ignore_case == 0" (identifier "match_ignore_case") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = iVar7;\n    }" ({ "{") (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" (identifier "iVar2") (= "=") (identifier "iVar7")) (; ";")) (} "}"))) (expression_statement "iVar2 = strmatch(pcVar3,param_1,iVar2);" (assignment_expression "iVar2 = strmatch(pcVar3,param_1,iVar2)" (identifier "iVar2") (= "=") (call_expression "strmatch(pcVar3,param_1,iVar2)" (identifier "strmatch") (argument_list "(pcVar3,param_1,iVar2)" (( "(") (identifier "pcVar3") (, ",") (identifier "param_1") (, ",") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (pcVar3 != param_2) {\n      free(pcVar3);\n    }" (if "if") (parenthesized_expression "(pcVar3 != param_2)" (( "(") (binary_expression "pcVar3 != param_2" (identifier "pcVar3") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n      free(pcVar3);\n    }" ({ "{") (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" (identifier "free") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }" (else "else") (compound_statement "{\n    pcVar3 = param_2;\n    if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }\n    sVar1 = 2;\n    if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }\n    if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }\n    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }\n    if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }\n  }" ({ "{") (expression_statement "pcVar3 = param_2;" (assignment_expression "pcVar3 = param_2" (identifier "pcVar3") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2[1] == '\0') {\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }" (if "if") (parenthesized_expression "(param_2[1] == '\0')" (( "(") (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }\n      goto LAB_00070912;\n    }" ({ "{") (if_statement "if (cVar6 != '*') {\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }" (if "if") (parenthesized_expression "(cVar6 != '*')" (( "(") (binary_expression "cVar6 != '*'" (identifier "cVar6") (!= "!=") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")")) (compound_statement "{\n        iVar2 = 4;\n        goto LAB_000708a7;\n      }" ({ "{") (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" (identifier "iVar2") (= "=") (number_literal "4")) (; ";")) (goto_statement "goto LAB_000708a7;" (goto "goto") (statement_identifier "LAB_000708a7") (; ";")) (} "}"))) (goto_statement "goto LAB_00070912;" (goto "goto") (statement_identifier "LAB_00070912") (; ";")) (} "}"))) (expression_statement "sVar1 = 2;" (assignment_expression "sVar1 = 2" (identifier "sVar1") (= "=") (number_literal "2")) (; ";")) (if_statement "if (param_2[2] != '\0') {\n      sVar1 = strlen(param_2);\n    }" (if "if") (parenthesized_expression "(param_2[2] != '\0')" (( "(") (binary_expression "param_2[2] != '\0'" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      sVar1 = strlen(param_2);\n    }" ({ "{") (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" (identifier "sVar1") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (} "}"))) (if_statement "if (cVar6 != '*') {\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" (if "if") (parenthesized_expression "(cVar6 != '*')" (( "(") (binary_expression "cVar6 != '*'" (identifier "cVar6") (!= "!=") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")")) (compound_statement "{\nLAB_00070885:\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" ({ "{") (labeled_statement "LAB_00070885:\n      iVar2 = sVar1 + 3;" (statement_identifier "LAB_00070885") (: ":") (expression_statement "iVar2 = sVar1 + 3;" (assignment_expression "iVar2 = sVar1 + 3" (identifier "iVar2") (= "=") (binary_expression "sVar1 + 3" (identifier "sVar1") (+ "+") (number_literal "3"))) (; ";"))) (goto_statement "goto LAB_000708a7;" (goto "goto") (statement_identifier "LAB_000708a7") (; ";")) (} "}"))) (if_statement "if (param_2[1] != '(') {\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }" (if "if") (parenthesized_expression "(param_2[1] != '(')" (( "(") (binary_expression "param_2[1] != '('" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'('" (' "'") (character "(") (' "'"))) () ")")) (compound_statement "{\n      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;\n      goto LAB_00070885;\n    }" ({ "{") (if_statement "if (param_2[sVar1 - 1] == '*') goto LAB_00070912;" (if "if") (parenthesized_expression "(param_2[sVar1 - 1] == '*')" (( "(") (binary_expression "param_2[sVar1 - 1] == '*'" (subscript_expression "param_2[sVar1 - 1]" (identifier "param_2") ([ "[") (binary_expression "sVar1 - 1" (identifier "sVar1") (- "-") (number_literal "1")) (] "]")) (== "==") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")")) (goto_statement "goto LAB_00070912;" (goto "goto") (statement_identifier "LAB_00070912") (; ";"))) (goto_statement "goto LAB_00070885;" (goto "goto") (statement_identifier "LAB_00070885") (; ";")) (} "}"))) (if_statement "if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" (if "if") (parenthesized_expression "((extended_glob != 0) || (param_2[sVar1 - 1] != '*'))" (( "(") (binary_expression "(extended_glob != 0) || (param_2[sVar1 - 1] != '*')" (parenthesized_expression "(extended_glob != 0)" (( "(") (binary_expression "extended_glob != 0" (identifier "extended_glob") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2[sVar1 - 1] != '*')" (( "(") (binary_expression "param_2[sVar1 - 1] != '*'" (subscript_expression "param_2[sVar1 - 1]" (identifier "param_2") ([ "[") (binary_expression "sVar1 - 1" (identifier "sVar1") (- "-") (number_literal "1")) (] "]")) (!= "!=") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      iVar2 = sVar1 + 3;\n      goto LAB_000708a7;\n    }" ({ "{") (expression_statement "iVar2 = sVar1 + 3;" (assignment_expression "iVar2 = sVar1 + 3" (identifier "iVar2") (= "=") (binary_expression "sVar1 + 3" (identifier "sVar1") (+ "+") (number_literal "3"))) (; ";")) (goto_statement "goto LAB_000708a7;" (goto "goto") (statement_identifier "LAB_000708a7") (; ";")) (} "}"))) (if_statement "if (match_ignore_case == 0) {\n      iVar2 = strmatch(param_2,param_1,0);\n    }\n    else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }" (if "if") (parenthesized_expression "(match_ignore_case == 0)" (( "(") (binary_expression "match_ignore_case == 0" (identifier "match_ignore_case") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = strmatch(param_2,param_1,0);\n    }" ({ "{") (expression_statement "iVar2 = strmatch(param_2,param_1,0);" (assignment_expression "iVar2 = strmatch(param_2,param_1,0)" (identifier "iVar2") (= "=") (call_expression "strmatch(param_2,param_1,0)" (identifier "strmatch") (argument_list "(param_2,param_1,0)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }" (else "else") (compound_statement "{\n      iVar2 = strmatch(param_2,param_1,0x10);\n    }" ({ "{") (expression_statement "iVar2 = strmatch(param_2,param_1,0x10);" (assignment_expression "iVar2 = strmatch(param_2,param_1,0x10)" (identifier "iVar2") (= "=") (call_expression "strmatch(param_2,param_1,0x10)" (identifier "strmatch") (argument_list "(param_2,param_1,0x10)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") (, ",") (number_literal "0x10") () ")")))) (; ";")) (} "}")))) (} "}")))) (if_statement "if (iVar2 == 1) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 1)" (( "(") (binary_expression "iVar2 == 1" (identifier "iVar2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }\n  else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "((param_1 == (char *)0x0) || (*param_1 == '\0'))" (( "(") (binary_expression "(param_1 == (char *)0x0) || (*param_1 == '\0')" (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*param_1 == '\0')" (( "(") (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    local_28 = umatchlen(param_2,0);\n    local_20 = param_1;\n    if (param_3 == 1) goto LAB_00070c12;\n    if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "local_28 = umatchlen(param_2,0);" (assignment_expression "local_28 = umatchlen(param_2,0)" (identifier "local_28") (= "=") (call_expression "umatchlen(param_2,0)" (identifier "umatchlen") (argument_list "(param_2,0)" (( "(") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "local_20 = param_1;" (assignment_expression "local_20 = param_1" (identifier "local_20") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (param_3 == 1) goto LAB_00070c12;" (if "if") (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (goto_statement "goto LAB_00070c12;" (goto "goto") (statement_identifier "LAB_00070c12") (; ";"))) (if_statement "if (param_3 == 2) {\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }" (if "if") (parenthesized_expression "(param_3 == 2)" (( "(") (binary_expression "param_3 == 2" (identifier "param_3") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      sVar1 = 0;\n      goto LAB_00070b42;\n    }" ({ "{") (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" (identifier "sVar1") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00070b42;" (goto "goto") (statement_identifier "LAB_00070b42") (; ";")) (} "}"))) (if_statement "if (param_3 != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    sVar1 = 1;\n    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }\n    local_20 = param_1 + sVar1;\n    local_28 = umatchlen(param_2,sVar1);\n    if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }\n    if (param_3 != 0) {\n      return 0;\n    }\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "sVar1 = 1;" (assignment_expression "sVar1 = 1" (identifier "sVar1") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {\n      sVar1 = strlen(param_1);\n    }" (if "if") (parenthesized_expression "((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0'))" (( "(") (binary_expression "(param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')" (parenthesized_expression "(param_1[1] != '\0')" (( "(") (binary_expression "param_1[1] != '\0'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(sVar1 = 2, param_1[2] != '\0')" (( "(") (comma_expression "sVar1 = 2, param_1[2] != '\0'" (assignment_expression "sVar1 = 2" (identifier "sVar1") (= "=") (number_literal "2")) (, ",") (binary_expression "param_1[2] != '\0'" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n      sVar1 = strlen(param_1);\n    }" ({ "{") (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" (identifier "sVar1") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (} "}"))) (expression_statement "local_20 = param_1 + sVar1;" (assignment_expression "local_20 = param_1 + sVar1" (identifier "local_20") (= "=") (binary_expression "param_1 + sVar1" (identifier "param_1") (+ "+") (identifier "sVar1"))) (; ";")) (expression_statement "local_28 = umatchlen(param_2,sVar1);" (assignment_expression "local_28 = umatchlen(param_2,sVar1)" (identifier "local_28") (= "=") (call_expression "umatchlen(param_2,sVar1)" (identifier "umatchlen") (argument_list "(param_2,sVar1)" (( "(") (identifier "param_2") (, ",") (identifier "sVar1") () ")")))) (; ";")) (if_statement "if (param_3 == 1) {\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }" (if "if") (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\nLAB_00070c12:\n      iVar2 = match_ignore_case;\n      if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }\n      iVar2 = match_pattern_char(param_2,param_1,iVar2);\n      if (iVar2 == 0) {\n        return 0;\n      }\n      if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }\n      while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }\n      *local_20 = cVar6;\n      *param_4 = param_1;\n      *param_5 = local_20;\n      return 1;\n    }" ({ "{") (labeled_statement "LAB_00070c12:\n      iVar2 = match_ignore_case;" (statement_identifier "LAB_00070c12") (: ":") (expression_statement "iVar2 = match_ignore_case;" (assignment_expression "iVar2 = match_ignore_case" (identifier "iVar2") (= "=") (identifier "match_ignore_case")) (; ";"))) (if_statement "if (match_ignore_case != 0) {\n        iVar2 = 0x10;\n      }" (if "if") (parenthesized_expression "(match_ignore_case != 0)" (( "(") (binary_expression "match_ignore_case != 0" (identifier "match_ignore_case") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = 0x10;\n      }" ({ "{") (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" (identifier "iVar2") (= "=") (number_literal "0x10")) (; ";")) (} "}"))) (expression_statement "iVar2 = match_pattern_char(param_2,param_1,iVar2);" (assignment_expression "iVar2 = match_pattern_char(param_2,param_1,iVar2)" (identifier "iVar2") (= "=") (call_expression "match_pattern_char(param_2,param_1,iVar2)" (identifier "match_pattern_char") (argument_list "(param_2,param_1,iVar2)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") (, ",") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (local_28 != 0xffffffff) {\n        local_20 = param_1 + local_28;\n      }" (if "if") (parenthesized_expression "(local_28 != 0xffffffff)" (( "(") (binary_expression "local_28 != 0xffffffff" (identifier "local_28") (!= "!=") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n        local_20 = param_1 + local_28;\n      }" ({ "{") (expression_statement "local_20 = param_1 + local_28;" (assignment_expression "local_20 = param_1 + local_28" (identifier "local_20") (= "=") (binary_expression "param_1 + local_28" (identifier "param_1") (+ "+") (identifier "local_28"))) (; ";")) (} "}"))) (while_statement "while( true ) {\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        if (local_20 < param_1) {\n          return 0;\n        }\n        cVar6 = *local_20;\n        *local_20 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) break;\n        *local_20 = cVar6;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        local_20 = local_20 + -1;\n      }" ({ "{") (if_statement "if (local_20 < param_1) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(local_20 < param_1)" (( "(") (binary_expression "local_20 < param_1" (identifier "local_20") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "cVar6 = *local_20;" (assignment_expression "cVar6 = *local_20" (identifier "cVar6") (= "=") (pointer_expression "*local_20" (* "*") (identifier "local_20"))) (; ";")) (expression_statement "*local_20 = '\0';" (assignment_expression "*local_20 = '\0'" (pointer_expression "*local_20" (* "*") (identifier "local_20")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" (identifier "iVar2") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" (identifier "iVar7") (= "=") (identifier "extended_glob")) (; ";")) (if_statement "if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" (if "if") (parenthesized_expression "(extended_glob != 0)" (( "(") (binary_expression "extended_glob != 0" (identifier "extended_glob") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" ({ "{") (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" (identifier "iVar2") (= "=") (number_literal "0x30")) (; ";")) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" (identifier "iVar7") (= "=") (number_literal "0x20")) (; ";")) (} "}"))) (if_statement "if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }" (if "if") (parenthesized_expression "(match_ignore_case == 0)" (( "(") (binary_expression "match_ignore_case == 0" (identifier "match_ignore_case") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar2 = iVar7;\n        }" ({ "{") (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" (identifier "iVar2") (= "=") (identifier "iVar7")) (; ";")) (} "}"))) (expression_statement "iVar2 = strmatch(param_2,param_1,iVar2);" (assignment_expression "iVar2 = strmatch(param_2,param_1,iVar2)" (identifier "iVar2") (= "=") (call_expression "strmatch(param_2,param_1,iVar2)" (identifier "strmatch") (argument_list "(param_2,param_1,iVar2)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") (, ",") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*local_20 = cVar6;" (assignment_expression "*local_20 = cVar6" (pointer_expression "*local_20" (* "*") (identifier "local_20")) (= "=") (identifier "cVar6")) (; ";")) (if_statement "if (local_28 != 0xffffffff) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(local_28 != 0xffffffff)" (( "(") (binary_expression "local_28 != 0xffffffff" (identifier "local_28") (!= "!=") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "local_20 = local_20 + -1;" (assignment_expression "local_20 = local_20 + -1" (identifier "local_20") (= "=") (binary_expression "local_20 + -1" (identifier "local_20") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (expression_statement "*local_20 = cVar6;" (assignment_expression "*local_20 = cVar6" (pointer_expression "*local_20" (* "*") (identifier "local_20")) (= "=") (identifier "cVar6")) (; ";")) (expression_statement "*param_4 = param_1;" (assignment_expression "*param_4 = param_1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*param_5 = local_20;" (assignment_expression "*param_5 = local_20" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "local_20")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (param_3 == 2) {\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }" (if "if") (parenthesized_expression "(param_3 == 2)" (( "(") (binary_expression "param_3 == 2" (identifier "param_3") (== "==") (number_literal "2")) () ")")) (compound_statement "{\nLAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }\n      pcVar3 = local_20 + -sVar1;\n      while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }\n      *param_4 = pcVar3;\n      *param_5 = local_20;\n      return 1;\n    }" ({ "{") (labeled_statement "LAB_00070b42:\n      if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }" (statement_identifier "LAB_00070b42") (: ":") (if_statement "if (local_28 != 0xffffffff) {\n        sVar1 = local_28;\n      }" (if "if") (parenthesized_expression "(local_28 != 0xffffffff)" (( "(") (binary_expression "local_28 != 0xffffffff" (identifier "local_28") (!= "!=") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n        sVar1 = local_28;\n      }" ({ "{") (expression_statement "sVar1 = local_28;" (assignment_expression "sVar1 = local_28" (identifier "sVar1") (= "=") (identifier "local_28")) (; ";")) (} "}")))) (expression_statement "pcVar3 = local_20 + -sVar1;" (assignment_expression "pcVar3 = local_20 + -sVar1" (identifier "pcVar3") (= "=") (binary_expression "local_20 + -sVar1" (identifier "local_20") (+ "+") (unary_expression "-sVar1" (- "-") (identifier "sVar1")))) (; ";")) (while_statement "while( true ) {\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        if (local_20 < pcVar3) {\n          return 0;\n        }\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,pcVar3,iVar2);\n        if (iVar2 == 0) break;\n        if (local_28 != 0xffffffff) {\n          return 0;\n        }\n        pcVar3 = pcVar3 + 1;\n      }" ({ "{") (if_statement "if (local_20 < pcVar3) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(local_20 < pcVar3)" (( "(") (binary_expression "local_20 < pcVar3" (identifier "local_20") (< "<") (identifier "pcVar3")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" (identifier "iVar2") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" (identifier "iVar7") (= "=") (identifier "extended_glob")) (; ";")) (if_statement "if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" (if "if") (parenthesized_expression "(extended_glob != 0)" (( "(") (binary_expression "extended_glob != 0" (identifier "extended_glob") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" ({ "{") (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" (identifier "iVar2") (= "=") (number_literal "0x30")) (; ";")) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" (identifier "iVar7") (= "=") (number_literal "0x20")) (; ";")) (} "}"))) (if_statement "if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }" (if "if") (parenthesized_expression "(match_ignore_case == 0)" (( "(") (binary_expression "match_ignore_case == 0" (identifier "match_ignore_case") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar2 = iVar7;\n        }" ({ "{") (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" (identifier "iVar2") (= "=") (identifier "iVar7")) (; ";")) (} "}"))) (expression_statement "iVar2 = strmatch(param_2,pcVar3,iVar2);" (assignment_expression "iVar2 = strmatch(param_2,pcVar3,iVar2)" (identifier "iVar2") (= "=") (call_expression "strmatch(param_2,pcVar3,iVar2)" (identifier "strmatch") (argument_list "(param_2,pcVar3,iVar2)" (( "(") (identifier "param_2") (, ",") (identifier "pcVar3") (, ",") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (local_28 != 0xffffffff) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(local_28 != 0xffffffff)" (( "(") (binary_expression "local_28 != 0xffffffff" (identifier "local_28") (!= "!=") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*param_4 = pcVar3;" (assignment_expression "*param_4 = pcVar3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "pcVar3")) (; ";")) (expression_statement "*param_5 = local_20;" (assignment_expression "*param_5 = local_20" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "local_20")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (param_3 != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (local_20 < param_1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(local_20 < param_1)" (( "(") (binary_expression "local_20 < param_1" (identifier "local_20") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (do_statement "do {\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    iVar2 = match_ignore_case;\n    if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }\n    iVar2 = match_pattern_char(param_2,param_1,iVar2);\n    if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }\n    param_1 = param_1 + 1;\n    if (local_20 < param_1) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "iVar2 = match_ignore_case;" (assignment_expression "iVar2 = match_ignore_case" (identifier "iVar2") (= "=") (identifier "match_ignore_case")) (; ";")) (if_statement "if (match_ignore_case != 0) {\n      iVar2 = 0x10;\n    }" (if "if") (parenthesized_expression "(match_ignore_case != 0)" (( "(") (binary_expression "match_ignore_case != 0" (identifier "match_ignore_case") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = 0x10;\n    }" ({ "{") (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" (identifier "iVar2") (= "=") (number_literal "0x10")) (; ";")) (} "}"))) (expression_statement "iVar2 = match_pattern_char(param_2,param_1,iVar2);" (assignment_expression "iVar2 = match_pattern_char(param_2,param_1,iVar2)" (identifier "iVar2") (= "=") (call_expression "match_pattern_char(param_2,param_1,iVar2)" (identifier "match_pattern_char") (argument_list "(param_2,param_1,iVar2)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") (, ",") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar3 = local_20;\n      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }\n      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }\n    }" ({ "{") (expression_statement "pcVar3 = local_20;" (assignment_expression "pcVar3 = local_20" (identifier "pcVar3") (= "=") (identifier "local_20")) (; ";")) (if_statement "if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))\n      {\n        return 0;\n      }" (if "if") (parenthesized_expression "((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))" (( "(") (binary_expression "(local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28)" (parenthesized_expression "(local_28 != 0xffffffff)" (( "(") (binary_expression "local_28 != 0xffffffff" (identifier "local_28") (!= "!=") (number_literal "0xffffffff")) () ")")) (&& "&&") (parenthesized_expression "(pcVar3 = param_1 + local_28, local_20 < param_1 + local_28)" (( "(") (comma_expression "pcVar3 = param_1 + local_28, local_20 < param_1 + local_28" (assignment_expression "pcVar3 = param_1 + local_28" (identifier "pcVar3") (= "=") (binary_expression "param_1 + local_28" (identifier "param_1") (+ "+") (identifier "local_28"))) (, ",") (binary_expression "local_20 < param_1 + local_28" (identifier "local_20") (< "<") (binary_expression "param_1 + local_28" (identifier "param_1") (+ "+") (identifier "local_28")))) () ")"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (for_statement "for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }" (for "for") (( "(") (; ";") (binary_expression "param_1 <= pcVar3" (identifier "param_1") (<= "<=") (identifier "pcVar3")) (; ";") (assignment_expression "pcVar3 = pcVar3 + -1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + -1" (identifier "pcVar3") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n        cVar6 = *pcVar3;\n        *pcVar3 = '\0';\n        iVar2 = 0x10;\n        iVar7 = extended_glob;\n        if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }\n        if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }\n        iVar2 = strmatch(param_2,param_1,iVar2);\n        if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }\n        *pcVar3 = cVar6;\n        if (local_28 != 0xffffffff) break;\n      }" ({ "{") (expression_statement "cVar6 = *pcVar3;" (assignment_expression "cVar6 = *pcVar3" (identifier "cVar6") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" (identifier "iVar2") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "iVar7 = extended_glob;" (assignment_expression "iVar7 = extended_glob" (identifier "iVar7") (= "=") (identifier "extended_glob")) (; ";")) (if_statement "if (extended_glob != 0) {\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" (if "if") (parenthesized_expression "(extended_glob != 0)" (( "(") (binary_expression "extended_glob != 0" (identifier "extended_glob") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar2 = 0x30;\n          iVar7 = 0x20;\n        }" ({ "{") (expression_statement "iVar2 = 0x30;" (assignment_expression "iVar2 = 0x30" (identifier "iVar2") (= "=") (number_literal "0x30")) (; ";")) (expression_statement "iVar7 = 0x20;" (assignment_expression "iVar7 = 0x20" (identifier "iVar7") (= "=") (number_literal "0x20")) (; ";")) (} "}"))) (if_statement "if (match_ignore_case == 0) {\n          iVar2 = iVar7;\n        }" (if "if") (parenthesized_expression "(match_ignore_case == 0)" (( "(") (binary_expression "match_ignore_case == 0" (identifier "match_ignore_case") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar2 = iVar7;\n        }" ({ "{") (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" (identifier "iVar2") (= "=") (identifier "iVar7")) (; ";")) (} "}"))) (expression_statement "iVar2 = strmatch(param_2,param_1,iVar2);" (assignment_expression "iVar2 = strmatch(param_2,param_1,iVar2)" (identifier "iVar2") (= "=") (call_expression "strmatch(param_2,param_1,iVar2)" (identifier "strmatch") (argument_list "(param_2,param_1,iVar2)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") (, ",") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          *pcVar3 = cVar6;\n          *param_4 = param_1;\n          *param_5 = pcVar3;\n          return 1;\n        }" ({ "{") (expression_statement "*pcVar3 = cVar6;" (assignment_expression "*pcVar3 = cVar6" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (identifier "cVar6")) (; ";")) (expression_statement "*param_4 = param_1;" (assignment_expression "*param_4 = param_1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*param_5 = pcVar3;" (assignment_expression "*param_5 = pcVar3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "pcVar3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "*pcVar3 = cVar6;" (assignment_expression "*pcVar3 = cVar6" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (identifier "cVar6")) (; ";")) (if_statement "if (local_28 != 0xffffffff) break;" (if "if") (parenthesized_expression "(local_28 != 0xffffffff)" (( "(") (binary_expression "local_28 != 0xffffffff" (identifier "local_28") (!= "!=") (number_literal "0xffffffff")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}"))) (} "}"))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (local_20 < param_1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(local_20 < param_1)" (( "(") (binary_expression "local_20 < param_1" (identifier "local_20") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

int __regparm3 function_1(char *var_15,char *var_4,int var_3,char **sp,char **ep)

{
  size_t var_14;
  size_t var_17;
  char *var_11;
  char *var_7;
  int var_6;
  char *var_5;
  char var_1;
  int iVar8;
  size_t var_19;
  char *var_20;
  
  var_1 = *var_4;
  if (var_1 == '\0') {
    var_17 = 3;
LAB_000708a7:
    var_11 = (char *)var_2(var_17);
    var_1 = *var_4;
    var_7 = var_11;
    var_5 = var_4;
    if (var_3 == 1) {
      if (var_1 != '\0') goto LAB_000708e8;
LAB_000708ff:
      if (var_5[-1] == '*') {
        if (var_5[-2] != '\\') goto LAB_0007090f;
        if ((var_4 <= var_5 + -3) && (var_5[-3] == '\\')) {
          var_6 = 1;
          var_5 = var_5 + -4;
          do {
            var_6 = 1 - var_6;
            if (var_4 + -1 == var_5) break;
            var_1 = *var_5;
            var_5 = var_5 + -1;
          } while (var_1 == '\\');
          if (var_6 == 0) goto LAB_0007090f;
        }
      }
      *var_7 = '*';
      var_7 = var_7 + 1;
    }
    else {
      if ((var_1 != '*') || ((var_4[1] == '(' && (var_8 != 0)))) {
        *var_11 = '*';
        var_1 = *var_4;
        goto joined_r0x000708d9;
      }
LAB_000708e8:
      do {
        var_5 = var_5 + 1;
        *var_7 = var_1;
        var_1 = *var_5;
joined_r0x000708d9:
        var_7 = var_7 + 1;
      } while (var_1 != '\0');
      if (var_3 != 2) goto LAB_000708ff;
    }
LAB_0007090f:
    *var_7 = '\0';
LAB_00070912:
    var_6 = 0x10;
    iVar8 = var_8;
    if (var_8 != 0) {
      var_6 = 0x30;
      iVar8 = 0x20;
    }
    if (var_9 == 0) {
      var_6 = iVar8;
    }
    var_6 = var_10(var_11,var_15,var_6);
    if (var_11 != var_4) {
      var_12(var_11);
    }
  }
  else {
    var_11 = var_4;
    if (var_4[1] == '\0') {
      if (var_1 != '*') {
        var_17 = 4;
        goto LAB_000708a7;
      }
      goto LAB_00070912;
    }
    var_14 = 2;
    if (var_4[2] != '\0') {
      var_14 = var_13(var_4);
    }
    if (var_1 != '*') {
LAB_00070885:
      var_17 = var_14 + 3;
      goto LAB_000708a7;
    }
    if (var_4[1] != '(') {
      if (var_4[var_14 - 1] == '*') goto LAB_00070912;
      goto LAB_00070885;
    }
    if ((var_8 != 0) || (var_4[var_14 - 1] != '*')) {
      var_17 = var_14 + 3;
      goto LAB_000708a7;
    }
    if (var_9 == 0) {
      var_6 = var_10(var_4,var_15,0);
    }
    else {
      var_6 = var_10(var_4,var_15,0x10);
    }
  }
  if (var_6 == 1) {
    return 0;
  }
  if ((var_15 == (char *)0x0) || (*var_15 == '\0')) {
    var_19 = var_16(var_4,0);
    var_20 = var_15;
    if (var_3 == 1) goto LAB_00070c12;
    if (var_3 == 2) {
      var_17 = 0;
      goto LAB_00070b42;
    }
    if (var_3 != 0) {
      return 0;
    }
  }
  else {
    var_17 = 1;
    if ((var_15[1] != '\0') && (var_17 = 2, var_15[2] != '\0')) {
      var_17 = var_13(var_15);
    }
    var_20 = var_15 + var_17;
    var_19 = var_16(var_4,var_17);
    if (var_3 == 1) {
LAB_00070c12:
      var_6 = var_9;
      if (var_9 != 0) {
        var_6 = 0x10;
      }
      var_6 = var_18(var_4,var_15,var_6);
      if (var_6 == 0) {
        return 0;
      }
      if (var_19 != 0xffffffff) {
        var_20 = var_15 + var_19;
      }
      while( true ) {
        if (var_20 < var_15) {
          return 0;
        }
        var_1 = *var_20;
        *var_20 = '\0';
        var_6 = 0x10;
        iVar8 = var_8;
        if (var_8 != 0) {
          var_6 = 0x30;
          iVar8 = 0x20;
        }
        if (var_9 == 0) {
          var_6 = iVar8;
        }
        var_6 = var_10(var_4,var_15,var_6);
        if (var_6 == 0) break;
        *var_20 = var_1;
        if (var_19 != 0xffffffff) {
          return 0;
        }
        var_20 = var_20 + -1;
      }
      *var_20 = var_1;
      *sp = var_15;
      *ep = var_20;
      return 1;
    }
    if (var_3 == 2) {
LAB_00070b42:
      if (var_19 != 0xffffffff) {
        var_17 = var_19;
      }
      var_11 = var_20 + -var_17;
      while( true ) {
        if (var_20 < var_11) {
          return 0;
        }
        var_6 = 0x10;
        iVar8 = var_8;
        if (var_8 != 0) {
          var_6 = 0x30;
          iVar8 = 0x20;
        }
        if (var_9 == 0) {
          var_6 = iVar8;
        }
        var_6 = var_10(var_4,var_11,var_6);
        if (var_6 == 0) break;
        if (var_19 != 0xffffffff) {
          return 0;
        }
        var_11 = var_11 + 1;
      }
      *sp = var_11;
      *ep = var_20;
      return 1;
    }
    if (var_3 != 0) {
      return 0;
    }
    if (var_20 < var_15) {
      return 0;
    }
  }
  do {
    var_6 = var_9;
    if (var_9 != 0) {
      var_6 = 0x10;
    }
    var_6 = var_18(var_4,var_15,var_6);
    if (var_6 != 0) {
      var_11 = var_20;
      if ((var_19 != 0xffffffff) && (var_11 = var_15 + var_19, var_20 < var_15 + var_19)) {
        return 0;
      }
      for (; var_15 <= var_11; var_11 = var_11 + -1) {
        var_1 = *var_11;
        *var_11 = '\0';
        var_6 = 0x10;
        iVar8 = var_8;
        if (var_8 != 0) {
          var_6 = 0x30;
          iVar8 = 0x20;
        }
        if (var_9 == 0) {
          var_6 = iVar8;
        }
        var_6 = var_10(var_4,var_15,var_6);
        if (var_6 == 0) {
          *var_11 = var_1;
          *sp = var_15;
          *ep = var_11;
          return 1;
        }
        *var_11 = var_1;
        if (var_19 != 0xffffffff) break;
      }
    }
    var_15 = var_15 + 1;
    if (var_20 < var_15) {
      return 0;
    }
  } while( true );
}


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

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

undefined4 __regparm3
MASKED(char *param_1,char *param_2,int param_3,undefined4 *param_4,undefined4 *param_5)

{
  size_t sVar1;
  int iVar2;
  char *pcVar3;
  char *pcVar4;
  char *pcVar5;
  char cVar6;
  int iVar7;
  size_t local_28;
  char *local_20;
  
  cVar6 = *param_2;
  if (cVar6 == '\0') {
    iVar2 = 3;
LAB_000708a7:
    pcVar3 = (char *)xmalloc(iVar2);
    cVar6 = *param_2;
    pcVar4 = pcVar3;
    pcVar5 = param_2;
    if (param_3 == 1) {
      if (cVar6 != '\0') goto LAB_000708e8;
LAB_000708ff:
      if (pcVar5[-1] == '*') {
        if (pcVar5[-2] != '\\') goto LAB_0007090f;
        if ((param_2 <= pcVar5 + -3) && (pcVar5[-3] == '\\')) {
          iVar2 = 1;
          pcVar5 = pcVar5 + -4;
          do {
            iVar2 = 1 - iVar2;
            if (param_2 + -1 == pcVar5) break;
            cVar6 = *pcVar5;
            pcVar5 = pcVar5 + -1;
          } while (cVar6 == '\\');
          if (iVar2 == 0) goto LAB_0007090f;
        }
      }
      *pcVar4 = '*';
      pcVar4 = pcVar4 + 1;
    }
    else {
      if ((cVar6 != '*') || ((param_2[1] == '(' && (extended_glob != 0)))) {
        *pcVar3 = '*';
        cVar6 = *param_2;
        goto joined_r0x000708d9;
      }
LAB_000708e8:
      do {
        pcVar5 = pcVar5 + 1;
        *pcVar4 = cVar6;
        cVar6 = *pcVar5;
joined_r0x000708d9:
        pcVar4 = pcVar4 + 1;
      } while (cVar6 != '\0');
      if (param_3 != 2) goto LAB_000708ff;
    }
LAB_0007090f:
    *pcVar4 = '\0';
LAB_00070912:
    iVar2 = 0x10;
    iVar7 = extended_glob;
    if (extended_glob != 0) {
      iVar2 = 0x30;
      iVar7 = 0x20;
    }
    if (match_ignore_case == 0) {
      iVar2 = iVar7;
    }
    iVar2 = strmatch(pcVar3,param_1,iVar2);
    if (pcVar3 != param_2) {
      free(pcVar3);
    }
  }
  else {
    pcVar3 = param_2;
    if (param_2[1] == '\0') {
      if (cVar6 != '*') {
        iVar2 = 4;
        goto LAB_000708a7;
      }
      goto LAB_00070912;
    }
    sVar1 = 2;
    if (param_2[2] != '\0') {
      sVar1 = strlen(param_2);
    }
    if (cVar6 != '*') {
LAB_00070885:
      iVar2 = sVar1 + 3;
      goto LAB_000708a7;
    }
    if (param_2[1] != '(') {
      if (param_2[sVar1 - 1] == '*') goto LAB_00070912;
      goto LAB_00070885;
    }
    if ((extended_glob != 0) || (param_2[sVar1 - 1] != '*')) {
      iVar2 = sVar1 + 3;
      goto LAB_000708a7;
    }
    if (match_ignore_case == 0) {
      iVar2 = strmatch(param_2,param_1,0);
    }
    else {
      iVar2 = strmatch(param_2,param_1,0x10);
    }
  }
  if (iVar2 == 1) {
    return 0;
  }
  if ((param_1 == (char *)0x0) || (*param_1 == '\0')) {
    local_28 = umatchlen(param_2,0);
    local_20 = param_1;
    if (param_3 == 1) goto LAB_00070c12;
    if (param_3 == 2) {
      sVar1 = 0;
      goto LAB_00070b42;
    }
    if (param_3 != 0) {
      return 0;
    }
  }
  else {
    sVar1 = 1;
    if ((param_1[1] != '\0') && (sVar1 = 2, param_1[2] != '\0')) {
      sVar1 = strlen(param_1);
    }
    local_20 = param_1 + sVar1;
    local_28 = umatchlen(param_2,sVar1);
    if (param_3 == 1) {
LAB_00070c12:
      iVar2 = match_ignore_case;
      if (match_ignore_case != 0) {
        iVar2 = 0x10;
      }
      iVar2 = match_pattern_char(param_2,param_1,iVar2);
      if (iVar2 == 0) {
        return 0;
      }
      if (local_28 != 0xffffffff) {
        local_20 = param_1 + local_28;
      }
      while( true ) {
        if (local_20 < param_1) {
          return 0;
        }
        cVar6 = *local_20;
        *local_20 = '\0';
        iVar2 = 0x10;
        iVar7 = extended_glob;
        if (extended_glob != 0) {
          iVar2 = 0x30;
          iVar7 = 0x20;
        }
        if (match_ignore_case == 0) {
          iVar2 = iVar7;
        }
        iVar2 = strmatch(param_2,param_1,iVar2);
        if (iVar2 == 0) break;
        *local_20 = cVar6;
        if (local_28 != 0xffffffff) {
          return 0;
        }
        local_20 = local_20 + -1;
      }
      *local_20 = cVar6;
      *param_4 = param_1;
      *param_5 = local_20;
      return 1;
    }
    if (param_3 == 2) {
LAB_00070b42:
      if (local_28 != 0xffffffff) {
        sVar1 = local_28;
      }
      pcVar3 = local_20 + -sVar1;
      while( true ) {
        if (local_20 < pcVar3) {
          return 0;
        }
        iVar2 = 0x10;
        iVar7 = extended_glob;
        if (extended_glob != 0) {
          iVar2 = 0x30;
          iVar7 = 0x20;
        }
        if (match_ignore_case == 0) {
          iVar2 = iVar7;
        }
        iVar2 = strmatch(param_2,pcVar3,iVar2);
        if (iVar2 == 0) break;
        if (local_28 != 0xffffffff) {
          return 0;
        }
        pcVar3 = pcVar3 + 1;
      }
      *param_4 = pcVar3;
      *param_5 = local_20;
      return 1;
    }
    if (param_3 != 0) {
      return 0;
    }
    if (local_20 < param_1) {
      return 0;
    }
  }
  do {
    iVar2 = match_ignore_case;
    if (match_ignore_case != 0) {
      iVar2 = 0x10;
    }
    iVar2 = match_pattern_char(param_2,param_1,iVar2);
    if (iVar2 != 0) {
      pcVar3 = local_20;
      if ((local_28 != 0xffffffff) && (pcVar3 = param_1 + local_28, local_20 < param_1 + local_28))
      {
        return 0;
      }
      for (; param_1 <= pcVar3; pcVar3 = pcVar3 + -1) {
        cVar6 = *pcVar3;
        *pcVar3 = '\0';
        iVar2 = 0x10;
        iVar7 = extended_glob;
        if (extended_glob != 0) {
          iVar2 = 0x30;
          iVar7 = 0x20;
        }
        if (match_ignore_case == 0) {
          iVar2 = iVar7;
        }
        iVar2 = strmatch(param_2,param_1,iVar2);
        if (iVar2 == 0) {
          *pcVar3 = cVar6;
          *param_4 = param_1;
          *param_5 = pcVar3;
          return 1;
        }
        *pcVar3 = cVar6;
        if (local_28 != 0xffffffff) break;
      }
    }
    param_1 = param_1 + 1;
    if (local_20 < param_1) {
      return 0;
    }
  } while( true );
}

