
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::__verify_grouping_impl(char const*, unsigned int, char const*, unsigned int) */

bool std::__verify_grouping_impl(char *param_1,uint param_2,char *param_3,uint param_4)

{
  char *pcVar1;
  char *pcVar2;
  char cVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  bool bVar7;
  bool bVar8;
  
  uVar5 = param_4 - 1;
  uVar6 = param_2 - 1;
  if (uVar5 < param_2 - 1) {
    uVar6 = uVar5;
  }
  if (uVar6 == 0) {
    bVar7 = false;
    bVar8 = true;
  }
  else {
    uVar4 = 0;
    do {
      pcVar2 = param_3 + uVar5;
      uVar5 = uVar5 - 1;
      pcVar1 = param_1 + uVar4;
      uVar4 = uVar4 + 1;
      bVar7 = *pcVar2 != *pcVar1;
      if (uVar6 <= uVar4) break;
    } while (!bVar7);
    bVar8 = *pcVar2 == *pcVar1;
  }
  cVar3 = param_1[uVar6];
  if ((uVar5 != 0) && (!bVar7)) {
    do {
      pcVar1 = param_3 + uVar5;
      uVar5 = uVar5 - 1;
      if (uVar5 == 0) break;
    } while (*pcVar1 == cVar3);
    bVar8 = *pcVar1 == cVar3;
  }
  if ((byte)(cVar3 - 1U) < 0x7e) {
    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);
  }
  return bVar8;
}



bool FUN_003fe180(int param_1,int param_2,char *param_3,int param_4)

{
  char *pcVar1;
  char *pcVar2;
  char cVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  bool bVar7;
  bool bVar8;
  
  uVar5 = param_4 - 1;
  uVar6 = param_2 - 1U;
  if (uVar5 < param_2 - 1U) {
    uVar6 = uVar5;
  }
  if (uVar6 == 0) {
    bVar7 = false;
    bVar8 = true;
  }
  else {
    uVar4 = 0;
    do {
      pcVar2 = param_3 + uVar5;
      uVar5 = uVar5 - 1;
      pcVar1 = (char *)(param_1 + uVar4);
      uVar4 = uVar4 + 1;
      bVar7 = *pcVar2 != *pcVar1;
      if (uVar6 <= uVar4) break;
    } while (!bVar7);
    bVar8 = *pcVar2 == *pcVar1;
  }
  cVar3 = *(char *)(param_1 + uVar6);
  if ((uVar5 != 0) && (!bVar7)) {
    do {
      pcVar1 = param_3 + uVar5;
      uVar5 = uVar5 - 1;
      if (uVar5 == 0) break;
    } while (*pcVar1 == cVar3);
    bVar8 = *pcVar1 == cVar3;
  }
  if ((byte)(cVar3 - 1U) < 0x7e) {
    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);
  }
  return bVar8;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x24]
MOV ECX,dword ptr [ESP + 0x20]
LEA EDX,[EAX + -0x1]
MOV EAX,dword ptr [ESP + 0x1c]
LEA EBP,[EAX + -0x1]
CMP EBP,EDX
CMOVA EBP,EDX
TEST EBP,EBP
JZ 0x003fe238
MOV ESI,EBP
XOR EAX,EAX
MOV EBP,ECX
LEA ESI,[ESI]
MOV EDI,dword ptr [ESP + 0x18]
MOVZX EBX,byte ptr [EBP + EDX*0x1]
SUB EDX,0x1
MOVZX ECX,byte ptr [EDI + EAX*0x1]
ADD EAX,0x1
CMP BL,CL
MOV byte ptr [ESP + 0x3],CL
SETNZ CL
MOV EDI,ECX
CMP EAX,ESI
JNC 0x003fe1d6
TEST CL,CL
JZ 0x003fe1b0
MOV dword ptr [ESP + 0x20],EBP
MOV EBP,ESI
MOV ESI,EBX
MOVZX EBX,byte ptr [ESP + 0x3]
MOV EAX,ESI
MOV ECX,dword ptr [ESP + 0x20]
CMP AL,BL
SETZ AL
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x18]
MOVZX EBX,byte ptr [EAX + EBP*0x1]
TEST EDX,EDX
JZ 0x003fe21c
MOV EAX,EDI
TEST AL,AL
JNZ 0x003fe21c
LEA ESI,[ESI]
MOVZX EAX,byte ptr [ECX + EDX*0x1]
SUB EDX,0x1
JZ 0x003fe215
CMP AL,BL
JZ 0x003fe208
CMP AL,BL
SETZ AL
MOV ESI,EAX
LEA EDX,[EBX + -0x1]
CMP DL,0x7d
JA 0x003fe22b
CMP byte ptr [ECX],BL
SETLE DL
AND ESI,EDX
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EDI,EDI
MOV ESI,0x1
JMP 0x003fe1f0
(translation_unit "bool FUN_003fe180(int param_1,int param_2,char *param_3,int param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char cVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  uVar5 = param_4 - 1;\n  uVar6 = param_2 - 1U;\n  if (uVar5 < param_2 - 1U) {\n    uVar6 = uVar5;\n  }\n  if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }\n  cVar3 = *(char *)(param_1 + uVar6);\n  if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }\n  if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }\n  return bVar8;\n}\n\n" (function_definition "bool FUN_003fe180(int param_1,int param_2,char *param_3,int param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char cVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  uVar5 = param_4 - 1;\n  uVar6 = param_2 - 1U;\n  if (uVar5 < param_2 - 1U) {\n    uVar6 = uVar5;\n  }\n  if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }\n  cVar3 = *(char *)(param_1 + uVar6);\n  if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }\n  if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }\n  return bVar8;\n}" primitive_type (function_declarator "FUN_003fe180(int param_1,int param_2,char *param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,char *param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char cVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  uVar5 = param_4 - 1;\n  uVar6 = param_2 - 1U;\n  if (uVar5 < param_2 - 1U) {\n    uVar6 = uVar5;\n  }\n  if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }\n  cVar3 = *(char *)(param_1 + uVar6);\n  if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }\n  if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }\n  return bVar8;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "uVar5 = param_4 - 1;" (assignment_expression "uVar5 = param_4 - 1" identifier = (binary_expression "param_4 - 1" identifier - number_literal)) ;) (expression_statement "uVar6 = param_2 - 1U;" (assignment_expression "uVar6 = param_2 - 1U" identifier = (binary_expression "param_2 - 1U" identifier - number_literal)) ;) (if_statement "if (uVar5 < param_2 - 1U) {\n    uVar6 = uVar5;\n  }" if (parenthesized_expression "(uVar5 < param_2 - 1U)" ( (binary_expression "uVar5 < param_2 - 1U" identifier < (binary_expression "param_2 - 1U" identifier - number_literal)) )) (compound_statement "{\n    uVar6 = uVar5;\n  }" { (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) })) (if_statement "if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar7 = false;\n    bVar8 = true;\n  }" { (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;) }) (else_clause "else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" else (compound_statement "{\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);" do (compound_statement "{\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    }" { (expression_statement "pcVar2 = param_3 + uVar5;" (assignment_expression "pcVar2 = param_3 + uVar5" identifier = (binary_expression "param_3 + uVar5" identifier + identifier)) ;) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "pcVar1 = (char *)(param_1 + uVar4);" (assignment_expression "pcVar1 = (char *)(param_1 + uVar4)" identifier = (cast_expression "(char *)(param_1 + uVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar4)" ( (binary_expression "param_1 + uVar4" identifier + identifier) )))) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pcVar2 != *pcVar1;" (assignment_expression "bVar7 = *pcVar2 != *pcVar1" identifier = (binary_expression "*pcVar2 != *pcVar1" (pointer_expression "*pcVar2" * identifier) != (pointer_expression "*pcVar1" * identifier))) ;) (if_statement "if (uVar6 <= uVar4) break;" if (parenthesized_expression "(uVar6 <= uVar4)" ( (binary_expression "uVar6 <= uVar4" identifier <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) ;) (expression_statement "bVar8 = *pcVar2 == *pcVar1;" (assignment_expression "bVar8 = *pcVar2 == *pcVar1" identifier = (binary_expression "*pcVar2 == *pcVar1" (pointer_expression "*pcVar2" * identifier) == (pointer_expression "*pcVar1" * identifier))) ;) }))) (expression_statement "cVar3 = *(char *)(param_1 + uVar6);" (assignment_expression "cVar3 = *(char *)(param_1 + uVar6)" identifier = (pointer_expression "*(char *)(param_1 + uVar6)" * (cast_expression "(char *)(param_1 + uVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar6)" ( (binary_expression "param_1 + uVar6" identifier + identifier) ))))) ;) (if_statement "if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }" if (parenthesized_expression "((uVar5 != 0) && (!bVar7))" ( (binary_expression "(uVar5 != 0) && (!bVar7)" (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) ))) )) (compound_statement "{\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }" { (do_statement "do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);" do (compound_statement "{\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    }" { (expression_statement "pcVar1 = param_3 + uVar5;" (assignment_expression "pcVar1 = param_3 + uVar5" identifier = (binary_expression "param_3 + uVar5" identifier + identifier)) ;) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (if_statement "if (uVar5 == 0) break;" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(*pcVar1 == cVar3)" ( (binary_expression "*pcVar1 == cVar3" (pointer_expression "*pcVar1" * identifier) == identifier) )) ;) (expression_statement "bVar8 = *pcVar1 == cVar3;" (assignment_expression "bVar8 = *pcVar1 == cVar3" identifier = (binary_expression "*pcVar1 == cVar3" (pointer_expression "*pcVar1" * identifier) == identifier)) ;) })) (if_statement "if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }" if (parenthesized_expression "((byte)(cVar3 - 1U) < 0x7e)" ( (binary_expression "(byte)(cVar3 - 1U) < 0x7e" (call_expression "(byte)(cVar3 - 1U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar3 - 1U)" ( (binary_expression "cVar3 - 1U" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }" { (expression_statement "bVar8 = (bool)(bVar8 & *param_3 <= cVar3);" (assignment_expression "bVar8 = (bool)(bVar8 & *param_3 <= cVar3)" identifier = (cast_expression "(bool)(bVar8 & *param_3 <= cVar3)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(bVar8 & *param_3 <= cVar3)" ( (binary_expression "bVar8 & *param_3 <= cVar3" identifier & (binary_expression "*param_3 <= cVar3" (pointer_expression "*param_3" * identifier) <= identifier)) )))) ;) })) (return_statement "return bVar8;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::__verify_grouping_impl(char const*, unsigned int, char const*, unsigned int) */\n\nbool std::__verify_grouping_impl(char *param_1,uint param_2,char *param_3,uint param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char cVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  uVar5 = param_4 - 1;\n  uVar6 = param_2 - 1;\n  if (uVar5 < param_2 - 1) {\n    uVar6 = uVar5;\n  }\n  if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = param_1 + uVar4;\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }\n  cVar3 = param_1[uVar6];\n  if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }\n  if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }\n  return bVar8;\n}\n\n" comment comment (function_definition "bool std::__verify_grouping_impl(char *param_1,uint param_2,char *param_3,uint param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char cVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  uVar5 = param_4 - 1;\n  uVar6 = param_2 - 1;\n  if (uVar5 < param_2 - 1) {\n    uVar6 = uVar5;\n  }\n  if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = param_1 + uVar4;\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }\n  cVar3 = param_1[uVar6];\n  if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }\n  if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }\n  return bVar8;\n}" primitive_type (ERROR "std::" identifier : :) (function_declarator "__verify_grouping_impl(char *param_1,uint param_2,char *param_3,uint param_4)" identifier (parameter_list "(char *param_1,uint param_2,char *param_3,uint param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char cVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  uVar5 = param_4 - 1;\n  uVar6 = param_2 - 1;\n  if (uVar5 < param_2 - 1) {\n    uVar6 = uVar5;\n  }\n  if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = param_1 + uVar4;\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }\n  cVar3 = param_1[uVar6];\n  if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }\n  if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }\n  return bVar8;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "uVar5 = param_4 - 1;" (assignment_expression "uVar5 = param_4 - 1" identifier = (binary_expression "param_4 - 1" identifier - number_literal)) ;) (expression_statement "uVar6 = param_2 - 1;" (assignment_expression "uVar6 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) ;) (if_statement "if (uVar5 < param_2 - 1) {\n    uVar6 = uVar5;\n  }" if (parenthesized_expression "(uVar5 < param_2 - 1)" ( (binary_expression "uVar5 < param_2 - 1" identifier < (binary_expression "param_2 - 1" identifier - number_literal)) )) (compound_statement "{\n    uVar6 = uVar5;\n  }" { (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) })) (if_statement "if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = param_1 + uVar4;\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar7 = false;\n    bVar8 = true;\n  }" { (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;) }) (else_clause "else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = param_1 + uVar4;\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" else (compound_statement "{\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = param_1 + uVar4;\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = param_1 + uVar4;\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);" do (compound_statement "{\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = param_1 + uVar4;\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    }" { (expression_statement "pcVar2 = param_3 + uVar5;" (assignment_expression "pcVar2 = param_3 + uVar5" identifier = (binary_expression "param_3 + uVar5" identifier + identifier)) ;) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "pcVar1 = param_1 + uVar4;" (assignment_expression "pcVar1 = param_1 + uVar4" identifier = (binary_expression "param_1 + uVar4" identifier + identifier)) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pcVar2 != *pcVar1;" (assignment_expression "bVar7 = *pcVar2 != *pcVar1" identifier = (binary_expression "*pcVar2 != *pcVar1" (pointer_expression "*pcVar2" * identifier) != (pointer_expression "*pcVar1" * identifier))) ;) (if_statement "if (uVar6 <= uVar4) break;" if (parenthesized_expression "(uVar6 <= uVar4)" ( (binary_expression "uVar6 <= uVar4" identifier <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) ;) (expression_statement "bVar8 = *pcVar2 == *pcVar1;" (assignment_expression "bVar8 = *pcVar2 == *pcVar1" identifier = (binary_expression "*pcVar2 == *pcVar1" (pointer_expression "*pcVar2" * identifier) == (pointer_expression "*pcVar1" * identifier))) ;) }))) (expression_statement "cVar3 = param_1[uVar6];" (assignment_expression "cVar3 = param_1[uVar6]" identifier = (subscript_expression "param_1[uVar6]" identifier [ identifier ])) ;) (if_statement "if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }" if (parenthesized_expression "((uVar5 != 0) && (!bVar7))" ( (binary_expression "(uVar5 != 0) && (!bVar7)" (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) ))) )) (compound_statement "{\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }" { (do_statement "do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);" do (compound_statement "{\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    }" { (expression_statement "pcVar1 = param_3 + uVar5;" (assignment_expression "pcVar1 = param_3 + uVar5" identifier = (binary_expression "param_3 + uVar5" identifier + identifier)) ;) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (if_statement "if (uVar5 == 0) break;" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(*pcVar1 == cVar3)" ( (binary_expression "*pcVar1 == cVar3" (pointer_expression "*pcVar1" * identifier) == identifier) )) ;) (expression_statement "bVar8 = *pcVar1 == cVar3;" (assignment_expression "bVar8 = *pcVar1 == cVar3" identifier = (binary_expression "*pcVar1 == cVar3" (pointer_expression "*pcVar1" * identifier) == identifier)) ;) })) (if_statement "if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }" if (parenthesized_expression "((byte)(cVar3 - 1U) < 0x7e)" ( (binary_expression "(byte)(cVar3 - 1U) < 0x7e" (call_expression "(byte)(cVar3 - 1U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar3 - 1U)" ( (binary_expression "cVar3 - 1U" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }" { (expression_statement "bVar8 = (bool)(bVar8 & *param_3 <= cVar3);" (assignment_expression "bVar8 = (bool)(bVar8 & *param_3 <= cVar3)" identifier = (cast_expression "(bool)(bVar8 & *param_3 <= cVar3)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(bVar8 & *param_3 <= cVar3)" ( (binary_expression "bVar8 & *param_3 <= cVar3" identifier & (binary_expression "*param_3 <= cVar3" (pointer_expression "*param_3" * identifier) <= identifier)) )))) ;) })) (return_statement "return bVar8;" return identifier ;) })))
(translation_unit "bool FUN_003fe180(int param_1,int param_2,char *param_3,int param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char cVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  uVar5 = param_4 - 1;\n  uVar6 = param_2 - 1U;\n  if (uVar5 < param_2 - 1U) {\n    uVar6 = uVar5;\n  }\n  if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }\n  cVar3 = *(char *)(param_1 + uVar6);\n  if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }\n  if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }\n  return bVar8;\n}\n\n" (function_definition "bool FUN_003fe180(int param_1,int param_2,char *param_3,int param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char cVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  uVar5 = param_4 - 1;\n  uVar6 = param_2 - 1U;\n  if (uVar5 < param_2 - 1U) {\n    uVar6 = uVar5;\n  }\n  if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }\n  cVar3 = *(char *)(param_1 + uVar6);\n  if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }\n  if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }\n  return bVar8;\n}" primitive_type (function_declarator "FUN_003fe180(int param_1,int param_2,char *param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,char *param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char cVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  uVar5 = param_4 - 1;\n  uVar6 = param_2 - 1U;\n  if (uVar5 < param_2 - 1U) {\n    uVar6 = uVar5;\n  }\n  if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }\n  cVar3 = *(char *)(param_1 + uVar6);\n  if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }\n  if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }\n  return bVar8;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "uVar5 = param_4 - 1;" (assignment_expression "uVar5 = param_4 - 1" identifier = (binary_expression "param_4 - 1" identifier - number_literal)) ;) (expression_statement "uVar6 = param_2 - 1U;" (assignment_expression "uVar6 = param_2 - 1U" identifier = (binary_expression "param_2 - 1U" identifier - number_literal)) ;) (if_statement "if (uVar5 < param_2 - 1U) {\n    uVar6 = uVar5;\n  }" if (parenthesized_expression "(uVar5 < param_2 - 1U)" ( (binary_expression "uVar5 < param_2 - 1U" identifier < (binary_expression "param_2 - 1U" identifier - number_literal)) )) (compound_statement "{\n    uVar6 = uVar5;\n  }" { (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) })) (if_statement "if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar7 = false;\n    bVar8 = true;\n  }" { (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;) }) (else_clause "else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" else (compound_statement "{\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);" do (compound_statement "{\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    }" { (expression_statement "pcVar2 = param_3 + uVar5;" (assignment_expression "pcVar2 = param_3 + uVar5" identifier = (binary_expression "param_3 + uVar5" identifier + identifier)) ;) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "pcVar1 = (char *)(param_1 + uVar4);" (assignment_expression "pcVar1 = (char *)(param_1 + uVar4)" identifier = (cast_expression "(char *)(param_1 + uVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar4)" ( (binary_expression "param_1 + uVar4" identifier + identifier) )))) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pcVar2 != *pcVar1;" (assignment_expression "bVar7 = *pcVar2 != *pcVar1" identifier = (binary_expression "*pcVar2 != *pcVar1" (pointer_expression "*pcVar2" * identifier) != (pointer_expression "*pcVar1" * identifier))) ;) (if_statement "if (uVar6 <= uVar4) break;" if (parenthesized_expression "(uVar6 <= uVar4)" ( (binary_expression "uVar6 <= uVar4" identifier <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) ;) (expression_statement "bVar8 = *pcVar2 == *pcVar1;" (assignment_expression "bVar8 = *pcVar2 == *pcVar1" identifier = (binary_expression "*pcVar2 == *pcVar1" (pointer_expression "*pcVar2" * identifier) == (pointer_expression "*pcVar1" * identifier))) ;) }))) (expression_statement "cVar3 = *(char *)(param_1 + uVar6);" (assignment_expression "cVar3 = *(char *)(param_1 + uVar6)" identifier = (pointer_expression "*(char *)(param_1 + uVar6)" * (cast_expression "(char *)(param_1 + uVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar6)" ( (binary_expression "param_1 + uVar6" identifier + identifier) ))))) ;) (if_statement "if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }" if (parenthesized_expression "((uVar5 != 0) && (!bVar7))" ( (binary_expression "(uVar5 != 0) && (!bVar7)" (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) ))) )) (compound_statement "{\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }" { (do_statement "do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);" do (compound_statement "{\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    }" { (expression_statement "pcVar1 = param_3 + uVar5;" (assignment_expression "pcVar1 = param_3 + uVar5" identifier = (binary_expression "param_3 + uVar5" identifier + identifier)) ;) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (if_statement "if (uVar5 == 0) break;" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(*pcVar1 == cVar3)" ( (binary_expression "*pcVar1 == cVar3" (pointer_expression "*pcVar1" * identifier) == identifier) )) ;) (expression_statement "bVar8 = *pcVar1 == cVar3;" (assignment_expression "bVar8 = *pcVar1 == cVar3" identifier = (binary_expression "*pcVar1 == cVar3" (pointer_expression "*pcVar1" * identifier) == identifier)) ;) })) (if_statement "if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }" if (parenthesized_expression "((byte)(cVar3 - 1U) < 0x7e)" ( (binary_expression "(byte)(cVar3 - 1U) < 0x7e" (call_expression "(byte)(cVar3 - 1U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar3 - 1U)" ( (binary_expression "cVar3 - 1U" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }" { (expression_statement "bVar8 = (bool)(bVar8 & *param_3 <= cVar3);" (assignment_expression "bVar8 = (bool)(bVar8 & *param_3 <= cVar3)" identifier = (cast_expression "(bool)(bVar8 & *param_3 <= cVar3)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(bVar8 & *param_3 <= cVar3)" ( (binary_expression "bVar8 & *param_3 <= cVar3" identifier & (binary_expression "*param_3 <= cVar3" (pointer_expression "*param_3" * identifier) <= identifier)) )))) ;) })) (return_statement "return bVar8;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT - LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) != (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) }) while (parenthesized_expression ( (unary_expression ! IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (unary_expression ! IDENT) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT & (binary_expression (pointer_expression * IDENT) <= IDENT)) )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "bool FUN_003fe180(int param_1,int param_2,char *param_3,int param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char cVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  uVar5 = param_4 - 1;\n  uVar6 = param_2 - 1U;\n  if (uVar5 < param_2 - 1U) {\n    uVar6 = uVar5;\n  }\n  if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }\n  cVar3 = *(char *)(param_1 + uVar6);\n  if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }\n  if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }\n  return bVar8;\n}" (primitive_type "bool") (function_declarator "FUN_003fe180(int param_1,int param_2,char *param_3,int param_4)" (identifier "FUN_003fe180") (parameter_list "(int param_1,int param_2,char *param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char cVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  bool bVar8;\n  \n  uVar5 = param_4 - 1;\n  uVar6 = param_2 - 1U;\n  if (uVar5 < param_2 - 1U) {\n    uVar6 = uVar5;\n  }\n  if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }\n  cVar3 = *(char *)(param_1 + uVar6);\n  if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }\n  if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }\n  return bVar8;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (expression_statement "uVar5 = param_4 - 1;" (assignment_expression "uVar5 = param_4 - 1" (identifier "uVar5") (= "=") (binary_expression "param_4 - 1" (identifier "param_4") (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar6 = param_2 - 1U;" (assignment_expression "uVar6 = param_2 - 1U" (identifier "uVar6") (= "=") (binary_expression "param_2 - 1U" (identifier "param_2") (- "-") (number_literal "1U"))) (; ";")) (if_statement "if (uVar5 < param_2 - 1U) {\n    uVar6 = uVar5;\n  }" (if "if") (parenthesized_expression "(uVar5 < param_2 - 1U)" (( "(") (binary_expression "uVar5 < param_2 - 1U" (identifier "uVar5") (< "<") (binary_expression "param_2 - 1U" (identifier "param_2") (- "-") (number_literal "1U"))) () ")")) (compound_statement "{\n    uVar6 = uVar5;\n  }" ({ "{") (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" (identifier "uVar6") (= "=") (identifier "uVar5")) (; ";")) (} "}"))) (if_statement "if (uVar6 == 0) {\n    bVar7 = false;\n    bVar8 = true;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    bVar7 = false;\n    bVar8 = true;\n  }" ({ "{") (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" (identifier "bVar7") (= "=") (false "false")) (; ";")) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" (identifier "bVar8") (= "=") (true "true")) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" (else "else") (compound_statement "{\n    uVar4 = 0;\n    do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);\n    bVar8 = *pcVar2 == *pcVar1;\n  }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    } while (!bVar7);" (do "do") (compound_statement "{\n      pcVar2 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      pcVar1 = (char *)(param_1 + uVar4);\n      uVar4 = uVar4 + 1;\n      bVar7 = *pcVar2 != *pcVar1;\n      if (uVar6 <= uVar4) break;\n    }" ({ "{") (expression_statement "pcVar2 = param_3 + uVar5;" (assignment_expression "pcVar2 = param_3 + uVar5" (identifier "pcVar2") (= "=") (binary_expression "param_3 + uVar5" (identifier "param_3") (+ "+") (identifier "uVar5"))) (; ";")) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) (; ";")) (expression_statement "pcVar1 = (char *)(param_1 + uVar4);" (assignment_expression "pcVar1 = (char *)(param_1 + uVar4)" (identifier "pcVar1") (= "=") (cast_expression "(char *)(param_1 + uVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + uVar4)" (( "(") (binary_expression "param_1 + uVar4" (identifier "param_1") (+ "+") (identifier "uVar4")) () ")")))) (; ";")) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar7 = *pcVar2 != *pcVar1;" (assignment_expression "bVar7 = *pcVar2 != *pcVar1" (identifier "bVar7") (= "=") (binary_expression "*pcVar2 != *pcVar1" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")))) (; ";")) (if_statement "if (uVar6 <= uVar4) break;" (if "if") (parenthesized_expression "(uVar6 <= uVar4)" (( "(") (binary_expression "uVar6 <= uVar4" (identifier "uVar6") (<= "<=") (identifier "uVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(!bVar7)" (( "(") (unary_expression "!bVar7" (! "!") (identifier "bVar7")) () ")")) (; ";")) (expression_statement "bVar8 = *pcVar2 == *pcVar1;" (assignment_expression "bVar8 = *pcVar2 == *pcVar1" (identifier "bVar8") (= "=") (binary_expression "*pcVar2 == *pcVar1" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")))) (; ";")) (} "}")))) (expression_statement "cVar3 = *(char *)(param_1 + uVar6);" (assignment_expression "cVar3 = *(char *)(param_1 + uVar6)" (identifier "cVar3") (= "=") (pointer_expression "*(char *)(param_1 + uVar6)" (* "*") (cast_expression "(char *)(param_1 + uVar6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + uVar6)" (( "(") (binary_expression "param_1 + uVar6" (identifier "param_1") (+ "+") (identifier "uVar6")) () ")"))))) (; ";")) (if_statement "if ((uVar5 != 0) && (!bVar7)) {\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }" (if "if") (parenthesized_expression "((uVar5 != 0) && (!bVar7))" (( "(") (binary_expression "(uVar5 != 0) && (!bVar7)" (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(!bVar7)" (( "(") (unary_expression "!bVar7" (! "!") (identifier "bVar7")) () ")"))) () ")")) (compound_statement "{\n    do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);\n    bVar8 = *pcVar1 == cVar3;\n  }" ({ "{") (do_statement "do {\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    } while (*pcVar1 == cVar3);" (do "do") (compound_statement "{\n      pcVar1 = param_3 + uVar5;\n      uVar5 = uVar5 - 1;\n      if (uVar5 == 0) break;\n    }" ({ "{") (expression_statement "pcVar1 = param_3 + uVar5;" (assignment_expression "pcVar1 = param_3 + uVar5" (identifier "pcVar1") (= "=") (binary_expression "param_3 + uVar5" (identifier "param_3") (+ "+") (identifier "uVar5"))) (; ";")) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) (; ";")) (if_statement "if (uVar5 == 0) break;" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(*pcVar1 == cVar3)" (( "(") (binary_expression "*pcVar1 == cVar3" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (identifier "cVar3")) () ")")) (; ";")) (expression_statement "bVar8 = *pcVar1 == cVar3;" (assignment_expression "bVar8 = *pcVar1 == cVar3" (identifier "bVar8") (= "=") (binary_expression "*pcVar1 == cVar3" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (identifier "cVar3"))) (; ";")) (} "}"))) (if_statement "if ((byte)(cVar3 - 1U) < 0x7e) {\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }" (if "if") (parenthesized_expression "((byte)(cVar3 - 1U) < 0x7e)" (( "(") (binary_expression "(byte)(cVar3 - 1U) < 0x7e" (call_expression "(byte)(cVar3 - 1U)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar3 - 1U)" (( "(") (binary_expression "cVar3 - 1U" (identifier "cVar3") (- "-") (number_literal "1U")) () ")"))) (< "<") (number_literal "0x7e")) () ")")) (compound_statement "{\n    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);\n  }" ({ "{") (expression_statement "bVar8 = (bool)(bVar8 & *param_3 <= cVar3);" (assignment_expression "bVar8 = (bool)(bVar8 & *param_3 <= cVar3)" (identifier "bVar8") (= "=") (cast_expression "(bool)(bVar8 & *param_3 <= cVar3)" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (parenthesized_expression "(bVar8 & *param_3 <= cVar3)" (( "(") (binary_expression "bVar8 & *param_3 <= cVar3" (identifier "bVar8") (& "&") (binary_expression "*param_3 <= cVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (<= "<=") (identifier "cVar3"))) () ")")))) (; ";")) (} "}"))) (return_statement "return bVar8;" (return "return") (identifier "bVar8") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::__verify_grouping_impl(char const*, unsigned int, char const*, unsigned int) */

bool std::function_1(char *var_6,type_1 var_2,char *var_5,type_1 var_1)

{
  char *pcVar1;
  char *pcVar2;
  char var_8;
  type_1 var_7;
  type_1 var_3;
  type_1 var_4;
  bool bVar7;
  bool var_9;
  
  var_3 = var_1 - 1;
  var_4 = var_2 - 1;
  if (var_3 < var_2 - 1) {
    var_4 = var_3;
  }
  if (var_4 == 0) {
    bVar7 = false;
    var_9 = true;
  }
  else {
    var_7 = 0;
    do {
      pcVar2 = var_5 + var_3;
      var_3 = var_3 - 1;
      pcVar1 = var_6 + var_7;
      var_7 = var_7 + 1;
      bVar7 = *pcVar2 != *pcVar1;
      if (var_4 <= var_7) break;
    } while (!bVar7);
    var_9 = *pcVar2 == *pcVar1;
  }
  var_8 = var_6[var_4];
  if ((var_3 != 0) && (!bVar7)) {
    do {
      pcVar1 = var_5 + var_3;
      var_3 = var_3 - 1;
      if (var_3 == 0) break;
    } while (*pcVar1 == var_8);
    var_9 = *pcVar1 == var_8;
  }
  if ((byte)(var_8 - 1U) < 0x7e) {
    var_9 = (bool)(var_9 & *var_5 <= var_8);
  }
  return var_9;
}


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

bool MASKED(int param_1,int param_2,char *param_3,int param_4)

{
  char *pcVar1;
  char *pcVar2;
  char cVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  bool bVar7;
  bool bVar8;
  
  uVar5 = param_4 - 1;
  uVar6 = param_2 - 1U;
  if (uVar5 < param_2 - 1U) {
    uVar6 = uVar5;
  }
  if (uVar6 == 0) {
    bVar7 = false;
    bVar8 = true;
  }
  else {
    uVar4 = 0;
    do {
      pcVar2 = param_3 + uVar5;
      uVar5 = uVar5 - 1;
      pcVar1 = (char *)(param_1 + uVar4);
      uVar4 = uVar4 + 1;
      bVar7 = *pcVar2 != *pcVar1;
      if (uVar6 <= uVar4) break;
    } while (!bVar7);
    bVar8 = *pcVar2 == *pcVar1;
  }
  cVar3 = *(char *)(param_1 + uVar6);
  if ((uVar5 != 0) && (!bVar7)) {
    do {
      pcVar1 = param_3 + uVar5;
      uVar5 = uVar5 - 1;
      if (uVar5 == 0) break;
    } while (*pcVar1 == cVar3);
    bVar8 = *pcVar1 == cVar3;
  }
  if ((byte)(cVar3 - 1U) < 0x7e) {
    bVar8 = (bool)(bVar8 & *param_3 <= cVar3);
  }
  return bVar8;
}

