
int __regparm3 peek_token_bracket(re_token_t *token,re_string_t *input,reg_syntax_t syntax)

{
  uchar uVar1;
  int iVar2;
  uchar *puVar3;
  int iVar4;
  
  iVar2 = input->cur_idx;
  if (input->stop <= iVar2) {
    token->field_0x4 = 2;
    return 0;
  }
  puVar3 = input->mbs;
  iVar4 = input->mb_cur_max;
  uVar1 = puVar3[iVar2];
  (token->opr).c = uVar1;
  if (((iVar4 < 2) || (iVar2 == input->valid_len)) || (input->wcs[iVar2] != 0xffffffff)) {
    if (uVar1 == '\\') {
      if (((syntax & 1) != 0) && (iVar2 + 1 < input->len)) {
        input->cur_idx = iVar2 + 1;
        uVar1 = puVar3[iVar2 + 1];
        token->field_0x4 = 1;
        (token->opr).c = uVar1;
        return 1;
      }
    }
    else {
      if (uVar1 == '[') {
        if (iVar2 + 1 < input->len) {
          uVar1 = puVar3[iVar2 + 1];
          (token->opr).c = uVar1;
          if (uVar1 == ':') {
            if ((syntax & 4) != 0) {
              token->field_0x4 = 0x1e;
              return 2;
            }
          }
          else {
            if (uVar1 == '=') {
              token->field_0x4 = 0x1c;
              return 2;
            }
            if (uVar1 == '.') {
              token->field_0x4 = 0x1a;
              return 2;
            }
          }
        }
        token->field_0x4 = 1;
        (token->opr).c = '[';
        return 1;
      }
      if (uVar1 == ']') {
        token->field_0x4 = 0x15;
        return 1;
      }
      if (uVar1 == '^') {
        token->field_0x4 = 0x19;
        return 1;
      }
      if (uVar1 == '-') {
        token->field_0x4 = 0x16;
        return 1;
      }
    }
  }
  token->field_0x4 = 1;
  return 1;
}



undefined4 __regparm3 FUN_00027840(char *param_1,int param_2,uint param_3)

{
  char cVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar2 = *(int *)(param_2 + 0x28);
  if (*(int *)(param_2 + 0x38) <= iVar2) {
    param_1[4] = '\x02';
    return 0;
  }
  iVar3 = *(int *)(param_2 + 4);
  iVar4 = *(int *)(param_2 + 0x50);
  cVar1 = *(char *)(iVar3 + iVar2);
  *param_1 = cVar1;
  if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||
     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {
    if (cVar1 == '\\') {
      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {
        *(int *)(param_2 + 0x28) = iVar2 + 1;
        cVar1 = *(char *)(iVar3 + 1 + iVar2);
        param_1[4] = '\x01';
        *param_1 = cVar1;
        return 1;
      }
    }
    else {
      if (cVar1 == '[') {
        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {
          cVar1 = *(char *)(iVar3 + 1 + iVar2);
          *param_1 = cVar1;
          if (cVar1 == ':') {
            if ((param_3 & 4) != 0) {
              param_1[4] = '\x1e';
              return 2;
            }
          }
          else {
            if (cVar1 == '=') {
              param_1[4] = '\x1c';
              return 2;
            }
            if (cVar1 == '.') {
              param_1[4] = '\x1a';
              return 2;
            }
          }
        }
        param_1[4] = '\x01';
        *param_1 = '[';
        return 1;
      }
      if (cVar1 == ']') {
        param_1[4] = '\x15';
        return 1;
      }
      if (cVar1 == '^') {
        param_1[4] = '\x19';
        return 1;
      }
      if (cVar1 == '-') {
        param_1[4] = '\x16';
        return 1;
      }
    }
  }
  param_1[4] = '\x01';
  return 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOV EBX,dword ptr [EDX + 0x28]
CMP dword ptr [EDX + 0x38],EBX
JLE 0x000278c8
MOV EDI,dword ptr [EDX + 0x4]
CMP dword ptr [EDX + 0x50],0x1
MOVZX EAX,byte ptr [EDI + EBX*0x1]
MOV byte ptr [ESI],AL
JLE 0x0002786c
CMP EBX,dword ptr [EDX + 0x1c]
JZ 0x0002786c
MOV EBP,dword ptr [EDX + 0x8]
CMP dword ptr [EBP + EBX*0x4],-0x1
JZ 0x000278a1
CMP AL,0x5c
JZ 0x00027890
CMP AL,0x5b
JZ 0x000278d8
CMP AL,0x5d
JZ 0x00027908
CMP AL,0x5e
JNZ 0x000278b0
POP EBX
MOV byte ptr [ESI + 0x4],0x19
MOV EAX,0x1
POP ESI
POP EDI
POP EBP
RET
AND ECX,0x1
JZ 0x000278a1
LEA EAX,[EBX + 0x1]
CMP EAX,dword ptr [EDX + 0x30]
JL 0x00027920
POP EBX
MOV byte ptr [ESI + 0x4],0x1
MOV EAX,0x1
POP ESI
POP EDI
POP EBP
RET
CMP AL,0x2d
JNZ 0x000278a1
POP EBX
MOV byte ptr [ESI + 0x4],0x16
MOV EAX,0x1
POP ESI
POP EDI
POP EBP
RET
MOV byte ptr [EAX + 0x4],0x2
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0x1]
CMP EAX,dword ptr [EDX + 0x30]
JGE 0x000278f3
MOVZX EAX,byte ptr [EDI + EBX*0x1 + 0x1]
MOV byte ptr [ESI],AL
CMP AL,0x3a
JZ 0x00027960
CMP AL,0x3d
JZ 0x00027948
CMP AL,0x2e
JZ 0x00027938
MOV byte ptr [ESI + 0x4],0x1
MOV EAX,0x1
MOV byte ptr [ESI],0x5b
JMP 0x000278ce
POP EBX
MOV byte ptr [ESI + 0x4],0x15
MOV EAX,0x1
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EDX + 0x28],EAX
MOVZX EAX,byte ptr [EDI + EBX*0x1 + 0x1]
MOV byte ptr [ESI + 0x4],0x1
MOV byte ptr [ESI],AL
MOV EAX,0x1
JMP 0x000278ce
MOV byte ptr [ESI + 0x4],0x1a
MOV EAX,0x2
JMP 0x000278ce
MOV byte ptr [ESI + 0x4],0x1c
MOV EAX,0x2
JMP 0x000278ce
AND ECX,0x4
JZ 0x000278f3
MOV byte ptr [ESI + 0x4],0x1e
MOV EAX,0x2
JMP 0x000278ce
(translation_unit "undefined4 __regparm3 FUN_00027840(char *param_1,int param_2,uint param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = *(int *)(param_2 + 0x28);\n  if (*(int *)(param_2 + 0x38) <= iVar2) {\n    param_1[4] = '\x02';\n    return 0;\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  iVar4 = *(int *)(param_2 + 0x50);\n  cVar1 = *(char *)(iVar3 + iVar2);\n  *param_1 = cVar1;\n  if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }\n  param_1[4] = '\x01';\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00027840(char *param_1,int param_2,uint param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = *(int *)(param_2 + 0x28);\n  if (*(int *)(param_2 + 0x38) <= iVar2) {\n    param_1[4] = '\x02';\n    return 0;\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  iVar4 = *(int *)(param_2 + 0x50);\n  cVar1 = *(char *)(iVar3 + iVar2);\n  *param_1 = cVar1;\n  if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }\n  param_1[4] = '\x01';\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00027840(char *param_1,int param_2,uint param_3)" identifier (parameter_list "(char *param_1,int param_2,uint param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = *(int *)(param_2 + 0x28);\n  if (*(int *)(param_2 + 0x38) <= iVar2) {\n    param_1[4] = '\x02';\n    return 0;\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  iVar4 = *(int *)(param_2 + 0x50);\n  cVar1 = *(char *)(iVar3 + iVar2);\n  *param_1 = cVar1;\n  if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }\n  param_1[4] = '\x01';\n  return 1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_2 + 0x38) <= iVar2) {\n    param_1[4] = '\x02';\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x38) <= iVar2)" ( (binary_expression "*(int *)(param_2 + 0x38) <= iVar2" (pointer_expression "*(int *)(param_2 + 0x38)" * (cast_expression "(int *)(param_2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    param_1[4] = '\x02';\n    return 0;\n  }" { (expression_statement "param_1[4] = '\x02';" (assignment_expression "param_1[4] = '\x02'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x02'" ' escape_sequence ')) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = *(int *)(param_2 + 4);" (assignment_expression "iVar3 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_2 + 0x50);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x50)" identifier = (pointer_expression "*(int *)(param_2 + 0x50)" * (cast_expression "(int *)(param_2 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x50)" ( (binary_expression "param_2 + 0x50" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *(char *)(iVar3 + iVar2);" (assignment_expression "cVar1 = *(char *)(iVar3 + iVar2)" identifier = (pointer_expression "*(char *)(iVar3 + iVar2)" * (cast_expression "(char *)(iVar3 + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar2)" ( (binary_expression "iVar3 + iVar2" identifier + identifier) ))))) ;) (expression_statement "*param_1 = cVar1;" (assignment_expression "*param_1 = cVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1))" ( (binary_expression "((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)" (parenthesized_expression "((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c)))" ( (binary_expression "(iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))" (parenthesized_expression "(iVar4 < 2)" ( (binary_expression "iVar4 < 2" identifier < number_literal) )) || (parenthesized_expression "(iVar2 == *(int *)(param_2 + 0x1c))" ( (binary_expression "iVar2 == *(int *)(param_2 + 0x1c)" identifier == (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ))) )) || (parenthesized_expression "(*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)" ( (binary_expression "*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1" (pointer_expression "*(int *)(*(int *)(param_2 + 8) + iVar2 * 4)" * (cast_expression "(int *)(*(int *)(param_2 + 8) + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 8) + iVar2 * 4)" ( (binary_expression "*(int *)(param_2 + 8) + iVar2 * 4" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) != number_literal) ))) )) (compound_statement "{\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }" { (if_statement "if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }" if (parenthesized_expression "(cVar1 == '\\')" ( (binary_expression "cVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }" { (if_statement "if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }" if (parenthesized_expression "(((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30)))" ( (binary_expression "((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))" (parenthesized_expression "((param_3 & 1) != 0)" ( (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" ( (binary_expression "param_3 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar2 + 1 < *(int *)(param_2 + 0x30))" ( (binary_expression "iVar2 + 1 < *(int *)(param_2 + 0x30)" (binary_expression "iVar2 + 1" identifier + number_literal) < (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ))) )) (compound_statement "{\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }" { (expression_statement "*(int *)(param_2 + 0x28) = iVar2 + 1;" (assignment_expression "*(int *)(param_2 + 0x28) = iVar2 + 1" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *(char *)(iVar3 + 1 + iVar2);" (assignment_expression "cVar1 = *(char *)(iVar3 + 1 + iVar2)" identifier = (pointer_expression "*(char *)(iVar3 + 1 + iVar2)" * (cast_expression "(char *)(iVar3 + 1 + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 1 + iVar2)" ( (binary_expression "iVar3 + 1 + iVar2" (binary_expression "iVar3 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "*param_1 = cVar1;" (assignment_expression "*param_1 = cVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }" else (compound_statement "{\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }" { (if_statement "if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '[')" ( (binary_expression "cVar1 == '['" identifier == (char_literal "'['" ' character ')) )) (compound_statement "{\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }" { (if_statement "if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }" if (parenthesized_expression "(iVar2 + 1 < *(int *)(param_2 + 0x30))" ( (binary_expression "iVar2 + 1 < *(int *)(param_2 + 0x30)" (binary_expression "iVar2 + 1" identifier + number_literal) < (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }" { (expression_statement "cVar1 = *(char *)(iVar3 + 1 + iVar2);" (assignment_expression "cVar1 = *(char *)(iVar3 + 1 + iVar2)" identifier = (pointer_expression "*(char *)(iVar3 + 1 + iVar2)" * (cast_expression "(char *)(iVar3 + 1 + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 1 + iVar2)" ( (binary_expression "iVar3 + 1 + iVar2" (binary_expression "iVar3 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "*param_1 = cVar1;" (assignment_expression "*param_1 = cVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }" if (parenthesized_expression "(cVar1 == ':')" ( (binary_expression "cVar1 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }" { (if_statement "if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }" if (parenthesized_expression "((param_3 & 4) != 0)" ( (binary_expression "(param_3 & 4) != 0" (parenthesized_expression "(param_3 & 4)" ( (binary_expression "param_3 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              param_1[4] = '\x1e';\n              return 2;\n            }" { (expression_statement "param_1[4] = '\x1e';" (assignment_expression "param_1[4] = '\x1e'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x1e'" ' escape_sequence ')) ;) (return_statement "return 2;" return number_literal ;) })) }) (else_clause "else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }" else (compound_statement "{\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }" { (if_statement "if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }" if (parenthesized_expression "(cVar1 == '=')" ( (binary_expression "cVar1 == '='" identifier == (char_literal "'='" ' character ')) )) (compound_statement "{\n              param_1[4] = '\x1c';\n              return 2;\n            }" { (expression_statement "param_1[4] = '\x1c';" (assignment_expression "param_1[4] = '\x1c'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x1c'" ' escape_sequence ')) ;) (return_statement "return 2;" return number_literal ;) })) (if_statement "if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }" if (parenthesized_expression "(cVar1 == '.')" ( (binary_expression "cVar1 == '.'" identifier == (char_literal "'.'" ' character ')) )) (compound_statement "{\n              param_1[4] = '\x1a';\n              return 2;\n            }" { (expression_statement "param_1[4] = '\x1a';" (assignment_expression "param_1[4] = '\x1a'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x1a'" ' escape_sequence ')) ;) (return_statement "return 2;" return number_literal ;) })) }))) })) (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "*param_1 = '[';" (assignment_expression "*param_1 = '['" (pointer_expression "*param_1" * identifier) = (char_literal "'['" ' character ')) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == ']')" ( (binary_expression "cVar1 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n        param_1[4] = '\x15';\n        return 1;\n      }" { (expression_statement "param_1[4] = '\x15';" (assignment_expression "param_1[4] = '\x15'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x15'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '^')" ( (binary_expression "cVar1 == '^'" identifier == (char_literal "'^'" ' character ')) )) (compound_statement "{\n        param_1[4] = '\x19';\n        return 1;\n      }" { (expression_statement "param_1[4] = '\x19';" (assignment_expression "param_1[4] = '\x19'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x19'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '-')" ( (binary_expression "cVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) (compound_statement "{\n        param_1[4] = '\x16';\n        return 1;\n      }" { (expression_statement "param_1[4] = '\x16';" (assignment_expression "param_1[4] = '\x16'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x16'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })) }))) })) (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int __regparm3 peek_token_bracket(re_token_t *token,re_string_t *input,reg_syntax_t syntax)\n\n{\n  uchar uVar1;\n  int iVar2;\n  uchar *puVar3;\n  int iVar4;\n  \n  iVar2 = input->cur_idx;\n  if (input->stop <= iVar2) {\n    token->field_0x4 = 2;\n    return 0;\n  }\n  puVar3 = input->mbs;\n  iVar4 = input->mb_cur_max;\n  uVar1 = puVar3[iVar2];\n  (token->opr).c = uVar1;\n  if (((iVar4 < 2) || (iVar2 == input->valid_len)) || (input->wcs[iVar2] != 0xffffffff)) {\n    if (uVar1 == '\\') {\n      if (((syntax & 1) != 0) && (iVar2 + 1 < input->len)) {\n        input->cur_idx = iVar2 + 1;\n        uVar1 = puVar3[iVar2 + 1];\n        token->field_0x4 = 1;\n        (token->opr).c = uVar1;\n        return 1;\n      }\n    }\n    else {\n      if (uVar1 == '[') {\n        if (iVar2 + 1 < input->len) {\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }\n        token->field_0x4 = 1;\n        (token->opr).c = '[';\n        return 1;\n      }\n      if (uVar1 == ']') {\n        token->field_0x4 = 0x15;\n        return 1;\n      }\n      if (uVar1 == '^') {\n        token->field_0x4 = 0x19;\n        return 1;\n      }\n      if (uVar1 == '-') {\n        token->field_0x4 = 0x16;\n        return 1;\n      }\n    }\n  }\n  token->field_0x4 = 1;\n  return 1;\n}\n\n" (function_definition "int __regparm3 peek_token_bracket(re_token_t *token,re_string_t *input,reg_syntax_t syntax)\n\n{\n  uchar uVar1;\n  int iVar2;\n  uchar *puVar3;\n  int iVar4;\n  \n  iVar2 = input->cur_idx;\n  if (input->stop <= iVar2) {\n    token->field_0x4 = 2;\n    return 0;\n  }\n  puVar3 = input->mbs;\n  iVar4 = input->mb_cur_max;\n  uVar1 = puVar3[iVar2];\n  (token->opr).c = uVar1;\n  if (((iVar4 < 2) || (iVar2 == input->valid_len)) || (input->wcs[iVar2] != 0xffffffff)) {\n    if (uVar1 == '\\') {\n      if (((syntax & 1) != 0) && (iVar2 + 1 < input->len)) {\n        input->cur_idx = iVar2 + 1;\n        uVar1 = puVar3[iVar2 + 1];\n        token->field_0x4 = 1;\n        (token->opr).c = uVar1;\n        return 1;\n      }\n    }\n    else {\n      if (uVar1 == '[') {\n        if (iVar2 + 1 < input->len) {\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }\n        token->field_0x4 = 1;\n        (token->opr).c = '[';\n        return 1;\n      }\n      if (uVar1 == ']') {\n        token->field_0x4 = 0x15;\n        return 1;\n      }\n      if (uVar1 == '^') {\n        token->field_0x4 = 0x19;\n        return 1;\n      }\n      if (uVar1 == '-') {\n        token->field_0x4 = 0x16;\n        return 1;\n      }\n    }\n  }\n  token->field_0x4 = 1;\n  return 1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "peek_token_bracket(re_token_t *token,re_string_t *input,reg_syntax_t syntax)" identifier (parameter_list "(re_token_t *token,re_string_t *input,reg_syntax_t syntax)" ( (parameter_declaration "re_token_t *token" type_identifier (pointer_declarator "*token" * identifier)) , (parameter_declaration "re_string_t *input" type_identifier (pointer_declarator "*input" * identifier)) , (parameter_declaration "reg_syntax_t syntax" type_identifier identifier) ))) (compound_statement "{\n  uchar uVar1;\n  int iVar2;\n  uchar *puVar3;\n  int iVar4;\n  \n  iVar2 = input->cur_idx;\n  if (input->stop <= iVar2) {\n    token->field_0x4 = 2;\n    return 0;\n  }\n  puVar3 = input->mbs;\n  iVar4 = input->mb_cur_max;\n  uVar1 = puVar3[iVar2];\n  (token->opr).c = uVar1;\n  if (((iVar4 < 2) || (iVar2 == input->valid_len)) || (input->wcs[iVar2] != 0xffffffff)) {\n    if (uVar1 == '\\') {\n      if (((syntax & 1) != 0) && (iVar2 + 1 < input->len)) {\n        input->cur_idx = iVar2 + 1;\n        uVar1 = puVar3[iVar2 + 1];\n        token->field_0x4 = 1;\n        (token->opr).c = uVar1;\n        return 1;\n      }\n    }\n    else {\n      if (uVar1 == '[') {\n        if (iVar2 + 1 < input->len) {\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }\n        token->field_0x4 = 1;\n        (token->opr).c = '[';\n        return 1;\n      }\n      if (uVar1 == ']') {\n        token->field_0x4 = 0x15;\n        return 1;\n      }\n      if (uVar1 == '^') {\n        token->field_0x4 = 0x19;\n        return 1;\n      }\n      if (uVar1 == '-') {\n        token->field_0x4 = 0x16;\n        return 1;\n      }\n    }\n  }\n  token->field_0x4 = 1;\n  return 1;\n}" { (declaration "uchar uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uchar *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar2 = input->cur_idx;" (assignment_expression "iVar2 = input->cur_idx" identifier = (field_expression "input->cur_idx" identifier -> field_identifier)) ;) (if_statement "if (input->stop <= iVar2) {\n    token->field_0x4 = 2;\n    return 0;\n  }" if (parenthesized_expression "(input->stop <= iVar2)" ( (binary_expression "input->stop <= iVar2" (field_expression "input->stop" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n    token->field_0x4 = 2;\n    return 0;\n  }" { (expression_statement "token->field_0x4 = 2;" (assignment_expression "token->field_0x4 = 2" (field_expression "token->field_0x4" identifier -> field_identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar3 = input->mbs;" (assignment_expression "puVar3 = input->mbs" identifier = (field_expression "input->mbs" identifier -> field_identifier)) ;) (expression_statement "iVar4 = input->mb_cur_max;" (assignment_expression "iVar4 = input->mb_cur_max" identifier = (field_expression "input->mb_cur_max" identifier -> field_identifier)) ;) (expression_statement "uVar1 = puVar3[iVar2];" (assignment_expression "uVar1 = puVar3[iVar2]" identifier = (subscript_expression "puVar3[iVar2]" identifier [ identifier ])) ;) (expression_statement "(token->opr).c = uVar1;" (assignment_expression "(token->opr).c = uVar1" (field_expression "(token->opr).c" (parenthesized_expression "(token->opr)" ( (field_expression "token->opr" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (((iVar4 < 2) || (iVar2 == input->valid_len)) || (input->wcs[iVar2] != 0xffffffff)) {\n    if (uVar1 == '\\') {\n      if (((syntax & 1) != 0) && (iVar2 + 1 < input->len)) {\n        input->cur_idx = iVar2 + 1;\n        uVar1 = puVar3[iVar2 + 1];\n        token->field_0x4 = 1;\n        (token->opr).c = uVar1;\n        return 1;\n      }\n    }\n    else {\n      if (uVar1 == '[') {\n        if (iVar2 + 1 < input->len) {\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }\n        token->field_0x4 = 1;\n        (token->opr).c = '[';\n        return 1;\n      }\n      if (uVar1 == ']') {\n        token->field_0x4 = 0x15;\n        return 1;\n      }\n      if (uVar1 == '^') {\n        token->field_0x4 = 0x19;\n        return 1;\n      }\n      if (uVar1 == '-') {\n        token->field_0x4 = 0x16;\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(((iVar4 < 2) || (iVar2 == input->valid_len)) || (input->wcs[iVar2] != 0xffffffff))" ( (binary_expression "((iVar4 < 2) || (iVar2 == input->valid_len)) || (input->wcs[iVar2] != 0xffffffff)" (parenthesized_expression "((iVar4 < 2) || (iVar2 == input->valid_len))" ( (binary_expression "(iVar4 < 2) || (iVar2 == input->valid_len)" (parenthesized_expression "(iVar4 < 2)" ( (binary_expression "iVar4 < 2" identifier < number_literal) )) || (parenthesized_expression "(iVar2 == input->valid_len)" ( (binary_expression "iVar2 == input->valid_len" identifier == (field_expression "input->valid_len" identifier -> field_identifier)) ))) )) || (parenthesized_expression "(input->wcs[iVar2] != 0xffffffff)" ( (binary_expression "input->wcs[iVar2] != 0xffffffff" (subscript_expression "input->wcs[iVar2]" (field_expression "input->wcs" identifier -> field_identifier) [ identifier ]) != number_literal) ))) )) (compound_statement "{\n    if (uVar1 == '\\') {\n      if (((syntax & 1) != 0) && (iVar2 + 1 < input->len)) {\n        input->cur_idx = iVar2 + 1;\n        uVar1 = puVar3[iVar2 + 1];\n        token->field_0x4 = 1;\n        (token->opr).c = uVar1;\n        return 1;\n      }\n    }\n    else {\n      if (uVar1 == '[') {\n        if (iVar2 + 1 < input->len) {\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }\n        token->field_0x4 = 1;\n        (token->opr).c = '[';\n        return 1;\n      }\n      if (uVar1 == ']') {\n        token->field_0x4 = 0x15;\n        return 1;\n      }\n      if (uVar1 == '^') {\n        token->field_0x4 = 0x19;\n        return 1;\n      }\n      if (uVar1 == '-') {\n        token->field_0x4 = 0x16;\n        return 1;\n      }\n    }\n  }" { (if_statement "if (uVar1 == '\\') {\n      if (((syntax & 1) != 0) && (iVar2 + 1 < input->len)) {\n        input->cur_idx = iVar2 + 1;\n        uVar1 = puVar3[iVar2 + 1];\n        token->field_0x4 = 1;\n        (token->opr).c = uVar1;\n        return 1;\n      }\n    }\n    else {\n      if (uVar1 == '[') {\n        if (iVar2 + 1 < input->len) {\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }\n        token->field_0x4 = 1;\n        (token->opr).c = '[';\n        return 1;\n      }\n      if (uVar1 == ']') {\n        token->field_0x4 = 0x15;\n        return 1;\n      }\n      if (uVar1 == '^') {\n        token->field_0x4 = 0x19;\n        return 1;\n      }\n      if (uVar1 == '-') {\n        token->field_0x4 = 0x16;\n        return 1;\n      }\n    }" if (parenthesized_expression "(uVar1 == '\\')" ( (binary_expression "uVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      if (((syntax & 1) != 0) && (iVar2 + 1 < input->len)) {\n        input->cur_idx = iVar2 + 1;\n        uVar1 = puVar3[iVar2 + 1];\n        token->field_0x4 = 1;\n        (token->opr).c = uVar1;\n        return 1;\n      }\n    }" { (if_statement "if (((syntax & 1) != 0) && (iVar2 + 1 < input->len)) {\n        input->cur_idx = iVar2 + 1;\n        uVar1 = puVar3[iVar2 + 1];\n        token->field_0x4 = 1;\n        (token->opr).c = uVar1;\n        return 1;\n      }" if (parenthesized_expression "(((syntax & 1) != 0) && (iVar2 + 1 < input->len))" ( (binary_expression "((syntax & 1) != 0) && (iVar2 + 1 < input->len)" (parenthesized_expression "((syntax & 1) != 0)" ( (binary_expression "(syntax & 1) != 0" (parenthesized_expression "(syntax & 1)" ( (binary_expression "syntax & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar2 + 1 < input->len)" ( (binary_expression "iVar2 + 1 < input->len" (binary_expression "iVar2 + 1" identifier + number_literal) < (field_expression "input->len" identifier -> field_identifier)) ))) )) (compound_statement "{\n        input->cur_idx = iVar2 + 1;\n        uVar1 = puVar3[iVar2 + 1];\n        token->field_0x4 = 1;\n        (token->opr).c = uVar1;\n        return 1;\n      }" { (expression_statement "input->cur_idx = iVar2 + 1;" (assignment_expression "input->cur_idx = iVar2 + 1" (field_expression "input->cur_idx" identifier -> field_identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = puVar3[iVar2 + 1];" (assignment_expression "uVar1 = puVar3[iVar2 + 1]" identifier = (subscript_expression "puVar3[iVar2 + 1]" identifier [ (binary_expression "iVar2 + 1" identifier + number_literal) ])) ;) (expression_statement "token->field_0x4 = 1;" (assignment_expression "token->field_0x4 = 1" (field_expression "token->field_0x4" identifier -> field_identifier) = number_literal) ;) (expression_statement "(token->opr).c = uVar1;" (assignment_expression "(token->opr).c = uVar1" (field_expression "(token->opr).c" (parenthesized_expression "(token->opr)" ( (field_expression "token->opr" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n      if (uVar1 == '[') {\n        if (iVar2 + 1 < input->len) {\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }\n        token->field_0x4 = 1;\n        (token->opr).c = '[';\n        return 1;\n      }\n      if (uVar1 == ']') {\n        token->field_0x4 = 0x15;\n        return 1;\n      }\n      if (uVar1 == '^') {\n        token->field_0x4 = 0x19;\n        return 1;\n      }\n      if (uVar1 == '-') {\n        token->field_0x4 = 0x16;\n        return 1;\n      }\n    }" else (compound_statement "{\n      if (uVar1 == '[') {\n        if (iVar2 + 1 < input->len) {\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }\n        token->field_0x4 = 1;\n        (token->opr).c = '[';\n        return 1;\n      }\n      if (uVar1 == ']') {\n        token->field_0x4 = 0x15;\n        return 1;\n      }\n      if (uVar1 == '^') {\n        token->field_0x4 = 0x19;\n        return 1;\n      }\n      if (uVar1 == '-') {\n        token->field_0x4 = 0x16;\n        return 1;\n      }\n    }" { (if_statement "if (uVar1 == '[') {\n        if (iVar2 + 1 < input->len) {\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }\n        token->field_0x4 = 1;\n        (token->opr).c = '[';\n        return 1;\n      }" if (parenthesized_expression "(uVar1 == '[')" ( (binary_expression "uVar1 == '['" identifier == (char_literal "'['" ' character ')) )) (compound_statement "{\n        if (iVar2 + 1 < input->len) {\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }\n        token->field_0x4 = 1;\n        (token->opr).c = '[';\n        return 1;\n      }" { (if_statement "if (iVar2 + 1 < input->len) {\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }" if (parenthesized_expression "(iVar2 + 1 < input->len)" ( (binary_expression "iVar2 + 1 < input->len" (binary_expression "iVar2 + 1" identifier + number_literal) < (field_expression "input->len" identifier -> field_identifier)) )) (compound_statement "{\n          uVar1 = puVar3[iVar2 + 1];\n          (token->opr).c = uVar1;\n          if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }\n        }" { (expression_statement "uVar1 = puVar3[iVar2 + 1];" (assignment_expression "uVar1 = puVar3[iVar2 + 1]" identifier = (subscript_expression "puVar3[iVar2 + 1]" identifier [ (binary_expression "iVar2 + 1" identifier + number_literal) ])) ;) (expression_statement "(token->opr).c = uVar1;" (assignment_expression "(token->opr).c = uVar1" (field_expression "(token->opr).c" (parenthesized_expression "(token->opr)" ( (field_expression "token->opr" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (uVar1 == ':') {\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }\n          else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }" if (parenthesized_expression "(uVar1 == ':')" ( (binary_expression "uVar1 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n            if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }\n          }" { (if_statement "if ((syntax & 4) != 0) {\n              token->field_0x4 = 0x1e;\n              return 2;\n            }" if (parenthesized_expression "((syntax & 4) != 0)" ( (binary_expression "(syntax & 4) != 0" (parenthesized_expression "(syntax & 4)" ( (binary_expression "syntax & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              token->field_0x4 = 0x1e;\n              return 2;\n            }" { (expression_statement "token->field_0x4 = 0x1e;" (assignment_expression "token->field_0x4 = 0x1e" (field_expression "token->field_0x4" identifier -> field_identifier) = number_literal) ;) (return_statement "return 2;" return number_literal ;) })) }) (else_clause "else {\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }" else (compound_statement "{\n            if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }\n            if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }\n          }" { (if_statement "if (uVar1 == '=') {\n              token->field_0x4 = 0x1c;\n              return 2;\n            }" if (parenthesized_expression "(uVar1 == '=')" ( (binary_expression "uVar1 == '='" identifier == (char_literal "'='" ' character ')) )) (compound_statement "{\n              token->field_0x4 = 0x1c;\n              return 2;\n            }" { (expression_statement "token->field_0x4 = 0x1c;" (assignment_expression "token->field_0x4 = 0x1c" (field_expression "token->field_0x4" identifier -> field_identifier) = number_literal) ;) (return_statement "return 2;" return number_literal ;) })) (if_statement "if (uVar1 == '.') {\n              token->field_0x4 = 0x1a;\n              return 2;\n            }" if (parenthesized_expression "(uVar1 == '.')" ( (binary_expression "uVar1 == '.'" identifier == (char_literal "'.'" ' character ')) )) (compound_statement "{\n              token->field_0x4 = 0x1a;\n              return 2;\n            }" { (expression_statement "token->field_0x4 = 0x1a;" (assignment_expression "token->field_0x4 = 0x1a" (field_expression "token->field_0x4" identifier -> field_identifier) = number_literal) ;) (return_statement "return 2;" return number_literal ;) })) }))) })) (expression_statement "token->field_0x4 = 1;" (assignment_expression "token->field_0x4 = 1" (field_expression "token->field_0x4" identifier -> field_identifier) = number_literal) ;) (expression_statement "(token->opr).c = '[';" (assignment_expression "(token->opr).c = '['" (field_expression "(token->opr).c" (parenthesized_expression "(token->opr)" ( (field_expression "token->opr" identifier -> field_identifier) )) . field_identifier) = (char_literal "'['" ' character ')) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (uVar1 == ']') {\n        token->field_0x4 = 0x15;\n        return 1;\n      }" if (parenthesized_expression "(uVar1 == ']')" ( (binary_expression "uVar1 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n        token->field_0x4 = 0x15;\n        return 1;\n      }" { (expression_statement "token->field_0x4 = 0x15;" (assignment_expression "token->field_0x4 = 0x15" (field_expression "token->field_0x4" identifier -> field_identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (uVar1 == '^') {\n        token->field_0x4 = 0x19;\n        return 1;\n      }" if (parenthesized_expression "(uVar1 == '^')" ( (binary_expression "uVar1 == '^'" identifier == (char_literal "'^'" ' character ')) )) (compound_statement "{\n        token->field_0x4 = 0x19;\n        return 1;\n      }" { (expression_statement "token->field_0x4 = 0x19;" (assignment_expression "token->field_0x4 = 0x19" (field_expression "token->field_0x4" identifier -> field_identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (uVar1 == '-') {\n        token->field_0x4 = 0x16;\n        return 1;\n      }" if (parenthesized_expression "(uVar1 == '-')" ( (binary_expression "uVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) (compound_statement "{\n        token->field_0x4 = 0x16;\n        return 1;\n      }" { (expression_statement "token->field_0x4 = 0x16;" (assignment_expression "token->field_0x4 = 0x16" (field_expression "token->field_0x4" identifier -> field_identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) }))) })) (expression_statement "token->field_0x4 = 1;" (assignment_expression "token->field_0x4 = 1" (field_expression "token->field_0x4" identifier -> field_identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_00027840(char *param_1,int param_2,uint param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = *(int *)(param_2 + 0x28);\n  if (*(int *)(param_2 + 0x38) <= iVar2) {\n    param_1[4] = '\x02';\n    return 0;\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  iVar4 = *(int *)(param_2 + 0x50);\n  cVar1 = *(char *)(iVar3 + iVar2);\n  *param_1 = cVar1;\n  if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }\n  param_1[4] = '\x01';\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00027840(char *param_1,int param_2,uint param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = *(int *)(param_2 + 0x28);\n  if (*(int *)(param_2 + 0x38) <= iVar2) {\n    param_1[4] = '\x02';\n    return 0;\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  iVar4 = *(int *)(param_2 + 0x50);\n  cVar1 = *(char *)(iVar3 + iVar2);\n  *param_1 = cVar1;\n  if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }\n  param_1[4] = '\x01';\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00027840(char *param_1,int param_2,uint param_3)" identifier (parameter_list "(char *param_1,int param_2,uint param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = *(int *)(param_2 + 0x28);\n  if (*(int *)(param_2 + 0x38) <= iVar2) {\n    param_1[4] = '\x02';\n    return 0;\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  iVar4 = *(int *)(param_2 + 0x50);\n  cVar1 = *(char *)(iVar3 + iVar2);\n  *param_1 = cVar1;\n  if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }\n  param_1[4] = '\x01';\n  return 1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_2 + 0x38) <= iVar2) {\n    param_1[4] = '\x02';\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x38) <= iVar2)" ( (binary_expression "*(int *)(param_2 + 0x38) <= iVar2" (pointer_expression "*(int *)(param_2 + 0x38)" * (cast_expression "(int *)(param_2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    param_1[4] = '\x02';\n    return 0;\n  }" { (expression_statement "param_1[4] = '\x02';" (assignment_expression "param_1[4] = '\x02'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x02'" ' escape_sequence ')) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = *(int *)(param_2 + 4);" (assignment_expression "iVar3 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_2 + 0x50);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x50)" identifier = (pointer_expression "*(int *)(param_2 + 0x50)" * (cast_expression "(int *)(param_2 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x50)" ( (binary_expression "param_2 + 0x50" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *(char *)(iVar3 + iVar2);" (assignment_expression "cVar1 = *(char *)(iVar3 + iVar2)" identifier = (pointer_expression "*(char *)(iVar3 + iVar2)" * (cast_expression "(char *)(iVar3 + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar2)" ( (binary_expression "iVar3 + iVar2" identifier + identifier) ))))) ;) (expression_statement "*param_1 = cVar1;" (assignment_expression "*param_1 = cVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1))" ( (binary_expression "((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)" (parenthesized_expression "((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c)))" ( (binary_expression "(iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))" (parenthesized_expression "(iVar4 < 2)" ( (binary_expression "iVar4 < 2" identifier < number_literal) )) || (parenthesized_expression "(iVar2 == *(int *)(param_2 + 0x1c))" ( (binary_expression "iVar2 == *(int *)(param_2 + 0x1c)" identifier == (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ))) )) || (parenthesized_expression "(*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)" ( (binary_expression "*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1" (pointer_expression "*(int *)(*(int *)(param_2 + 8) + iVar2 * 4)" * (cast_expression "(int *)(*(int *)(param_2 + 8) + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 8) + iVar2 * 4)" ( (binary_expression "*(int *)(param_2 + 8) + iVar2 * 4" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) != number_literal) ))) )) (compound_statement "{\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }" { (if_statement "if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }" if (parenthesized_expression "(cVar1 == '\\')" ( (binary_expression "cVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }" { (if_statement "if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }" if (parenthesized_expression "(((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30)))" ( (binary_expression "((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))" (parenthesized_expression "((param_3 & 1) != 0)" ( (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" ( (binary_expression "param_3 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar2 + 1 < *(int *)(param_2 + 0x30))" ( (binary_expression "iVar2 + 1 < *(int *)(param_2 + 0x30)" (binary_expression "iVar2 + 1" identifier + number_literal) < (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ))) )) (compound_statement "{\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }" { (expression_statement "*(int *)(param_2 + 0x28) = iVar2 + 1;" (assignment_expression "*(int *)(param_2 + 0x28) = iVar2 + 1" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *(char *)(iVar3 + 1 + iVar2);" (assignment_expression "cVar1 = *(char *)(iVar3 + 1 + iVar2)" identifier = (pointer_expression "*(char *)(iVar3 + 1 + iVar2)" * (cast_expression "(char *)(iVar3 + 1 + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 1 + iVar2)" ( (binary_expression "iVar3 + 1 + iVar2" (binary_expression "iVar3 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "*param_1 = cVar1;" (assignment_expression "*param_1 = cVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }" else (compound_statement "{\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }" { (if_statement "if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '[')" ( (binary_expression "cVar1 == '['" identifier == (char_literal "'['" ' character ')) )) (compound_statement "{\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }" { (if_statement "if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }" if (parenthesized_expression "(iVar2 + 1 < *(int *)(param_2 + 0x30))" ( (binary_expression "iVar2 + 1 < *(int *)(param_2 + 0x30)" (binary_expression "iVar2 + 1" identifier + number_literal) < (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }" { (expression_statement "cVar1 = *(char *)(iVar3 + 1 + iVar2);" (assignment_expression "cVar1 = *(char *)(iVar3 + 1 + iVar2)" identifier = (pointer_expression "*(char *)(iVar3 + 1 + iVar2)" * (cast_expression "(char *)(iVar3 + 1 + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 1 + iVar2)" ( (binary_expression "iVar3 + 1 + iVar2" (binary_expression "iVar3 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "*param_1 = cVar1;" (assignment_expression "*param_1 = cVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }" if (parenthesized_expression "(cVar1 == ':')" ( (binary_expression "cVar1 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }" { (if_statement "if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }" if (parenthesized_expression "((param_3 & 4) != 0)" ( (binary_expression "(param_3 & 4) != 0" (parenthesized_expression "(param_3 & 4)" ( (binary_expression "param_3 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              param_1[4] = '\x1e';\n              return 2;\n            }" { (expression_statement "param_1[4] = '\x1e';" (assignment_expression "param_1[4] = '\x1e'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x1e'" ' escape_sequence ')) ;) (return_statement "return 2;" return number_literal ;) })) }) (else_clause "else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }" else (compound_statement "{\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }" { (if_statement "if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }" if (parenthesized_expression "(cVar1 == '=')" ( (binary_expression "cVar1 == '='" identifier == (char_literal "'='" ' character ')) )) (compound_statement "{\n              param_1[4] = '\x1c';\n              return 2;\n            }" { (expression_statement "param_1[4] = '\x1c';" (assignment_expression "param_1[4] = '\x1c'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x1c'" ' escape_sequence ')) ;) (return_statement "return 2;" return number_literal ;) })) (if_statement "if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }" if (parenthesized_expression "(cVar1 == '.')" ( (binary_expression "cVar1 == '.'" identifier == (char_literal "'.'" ' character ')) )) (compound_statement "{\n              param_1[4] = '\x1a';\n              return 2;\n            }" { (expression_statement "param_1[4] = '\x1a';" (assignment_expression "param_1[4] = '\x1a'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x1a'" ' escape_sequence ')) ;) (return_statement "return 2;" return number_literal ;) })) }))) })) (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "*param_1 = '[';" (assignment_expression "*param_1 = '['" (pointer_expression "*param_1" * identifier) = (char_literal "'['" ' character ')) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == ']')" ( (binary_expression "cVar1 == ']'" identifier == (char_literal "']'" ' character ')) )) (compound_statement "{\n        param_1[4] = '\x15';\n        return 1;\n      }" { (expression_statement "param_1[4] = '\x15';" (assignment_expression "param_1[4] = '\x15'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x15'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '^')" ( (binary_expression "cVar1 == '^'" identifier == (char_literal "'^'" ' character ')) )) (compound_statement "{\n        param_1[4] = '\x19';\n        return 1;\n      }" { (expression_statement "param_1[4] = '\x19';" (assignment_expression "param_1[4] = '\x19'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x19'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '-')" ( (binary_expression "cVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) (compound_statement "{\n        param_1[4] = '\x16';\n        return 1;\n      }" { (expression_statement "param_1[4] = '\x16';" (assignment_expression "param_1[4] = '\x16'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x16'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })) }))) })) (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return LIT ;) })) }))) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return LIT ;) })) }))) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00027840(char *param_1,int param_2,uint param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = *(int *)(param_2 + 0x28);\n  if (*(int *)(param_2 + 0x38) <= iVar2) {\n    param_1[4] = '\x02';\n    return 0;\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  iVar4 = *(int *)(param_2 + 0x50);\n  cVar1 = *(char *)(iVar3 + iVar2);\n  *param_1 = cVar1;\n  if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }\n  param_1[4] = '\x01';\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00027840(char *param_1,int param_2,uint param_3)" (identifier "FUN_00027840") (parameter_list "(char *param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = *(int *)(param_2 + 0x28);\n  if (*(int *)(param_2 + 0x38) <= iVar2) {\n    param_1[4] = '\x02';\n    return 0;\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  iVar4 = *(int *)(param_2 + 0x50);\n  cVar1 = *(char *)(iVar3 + iVar2);\n  *param_1 = cVar1;\n  if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }\n  param_1[4] = '\x01';\n  return 1;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar2 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x28)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_2 + 0x38) <= iVar2) {\n    param_1[4] = '\x02';\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x38) <= iVar2)" (( "(") (binary_expression "*(int *)(param_2 + 0x38) <= iVar2" (pointer_expression "*(int *)(param_2 + 0x38)" (* "*") (cast_expression "(int *)(param_2 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x38)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) () ")")))) (<= "<=") (identifier "iVar2")) () ")")) (compound_statement "{\n    param_1[4] = '\x02';\n    return 0;\n  }" ({ "{") (expression_statement "param_1[4] = '\x02';" (assignment_expression "param_1[4] = '\x02'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(param_2 + 4);" (assignment_expression "iVar3 = *(int *)(param_2 + 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_2 + 0x50);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x50)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 0x50)" (* "*") (cast_expression "(int *)(param_2 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x50)" (( "(") (binary_expression "param_2 + 0x50" (identifier "param_2") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (expression_statement "cVar1 = *(char *)(iVar3 + iVar2);" (assignment_expression "cVar1 = *(char *)(iVar3 + iVar2)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar3 + iVar2)" (* "*") (cast_expression "(char *)(iVar3 + iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar2)" (( "(") (binary_expression "iVar3 + iVar2" (identifier "iVar3") (+ "+") (identifier "iVar2")) () ")"))))) (; ";")) (expression_statement "*param_1 = cVar1;" (assignment_expression "*param_1 = cVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "cVar1")) (; ";")) (if_statement "if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1))" (( "(") (binary_expression "((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||\n     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)" (parenthesized_expression "((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c)))" (( "(") (binary_expression "(iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))" (parenthesized_expression "(iVar4 < 2)" (( "(") (binary_expression "iVar4 < 2" (identifier "iVar4") (< "<") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(iVar2 == *(int *)(param_2 + 0x1c))" (( "(") (binary_expression "iVar2 == *(int *)(param_2 + 0x1c)" (identifier "iVar2") (== "==") (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)" (( "(") (binary_expression "*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1" (pointer_expression "*(int *)(*(int *)(param_2 + 8) + iVar2 * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 8) + iVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 8) + iVar2 * 4)" (( "(") (binary_expression "*(int *)(param_2 + 8) + iVar2 * 4" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "-1")) () ")"))) () ")")) (compound_statement "{\n    if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }\n  }" ({ "{") (if_statement "if (cVar1 == '\\') {\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }\n    else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }" (if "if") (parenthesized_expression "(cVar1 == '\\')" (( "(") (binary_expression "cVar1 == '\\'" (identifier "cVar1") (== "==") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) () ")")) (compound_statement "{\n      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }\n    }" ({ "{") (if_statement "if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }" (if "if") (parenthesized_expression "(((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30)))" (( "(") (binary_expression "((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))" (parenthesized_expression "((param_3 & 1) != 0)" (( "(") (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" (( "(") (binary_expression "param_3 & 1" (identifier "param_3") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 + 1 < *(int *)(param_2 + 0x30))" (( "(") (binary_expression "iVar2 + 1 < *(int *)(param_2 + 0x30)" (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1")) (< "<") (pointer_expression "*(int *)(param_2 + 0x30)" (* "*") (cast_expression "(int *)(param_2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n        *(int *)(param_2 + 0x28) = iVar2 + 1;\n        cVar1 = *(char *)(iVar3 + 1 + iVar2);\n        param_1[4] = '\x01';\n        *param_1 = cVar1;\n        return 1;\n      }" ({ "{") (expression_statement "*(int *)(param_2 + 0x28) = iVar2 + 1;" (assignment_expression "*(int *)(param_2 + 0x28) = iVar2 + 1" (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *(char *)(iVar3 + 1 + iVar2);" (assignment_expression "cVar1 = *(char *)(iVar3 + 1 + iVar2)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar3 + 1 + iVar2)" (* "*") (cast_expression "(char *)(iVar3 + 1 + iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 1 + iVar2)" (( "(") (binary_expression "iVar3 + 1 + iVar2" (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar2")) () ")"))))) (; ";")) (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (expression_statement "*param_1 = cVar1;" (assignment_expression "*param_1 = cVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "cVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }" (else "else") (compound_statement "{\n      if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }\n      if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }\n      if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }\n      if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }\n    }" ({ "{") (if_statement "if (cVar1 == '[') {\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }" (if "if") (parenthesized_expression "(cVar1 == '[')" (( "(") (binary_expression "cVar1 == '['" (identifier "cVar1") (== "==") (char_literal "'['" (' "'") (character "[") (' "'"))) () ")")) (compound_statement "{\n        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }\n        param_1[4] = '\x01';\n        *param_1 = '[';\n        return 1;\n      }" ({ "{") (if_statement "if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }" (if "if") (parenthesized_expression "(iVar2 + 1 < *(int *)(param_2 + 0x30))" (( "(") (binary_expression "iVar2 + 1 < *(int *)(param_2 + 0x30)" (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1")) (< "<") (pointer_expression "*(int *)(param_2 + 0x30)" (* "*") (cast_expression "(int *)(param_2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (compound_statement "{\n          cVar1 = *(char *)(iVar3 + 1 + iVar2);\n          *param_1 = cVar1;\n          if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }\n        }" ({ "{") (expression_statement "cVar1 = *(char *)(iVar3 + 1 + iVar2);" (assignment_expression "cVar1 = *(char *)(iVar3 + 1 + iVar2)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar3 + 1 + iVar2)" (* "*") (cast_expression "(char *)(iVar3 + 1 + iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 1 + iVar2)" (( "(") (binary_expression "iVar3 + 1 + iVar2" (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar2")) () ")"))))) (; ";")) (expression_statement "*param_1 = cVar1;" (assignment_expression "*param_1 = cVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "cVar1")) (; ";")) (if_statement "if (cVar1 == ':') {\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }\n          else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }" (if "if") (parenthesized_expression "(cVar1 == ':')" (( "(") (binary_expression "cVar1 == ':'" (identifier "cVar1") (== "==") (char_literal "':'" (' "'") (character ":") (' "'"))) () ")")) (compound_statement "{\n            if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }\n          }" ({ "{") (if_statement "if ((param_3 & 4) != 0) {\n              param_1[4] = '\x1e';\n              return 2;\n            }" (if "if") (parenthesized_expression "((param_3 & 4) != 0)" (( "(") (binary_expression "(param_3 & 4) != 0" (parenthesized_expression "(param_3 & 4)" (( "(") (binary_expression "param_3 & 4" (identifier "param_3") (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              param_1[4] = '\x1e';\n              return 2;\n            }" ({ "{") (expression_statement "param_1[4] = '\x1e';" (assignment_expression "param_1[4] = '\x1e'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\x1e'" (' "'") (escape_sequence "\x1e") (' "'"))) (; ";")) (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }" (else "else") (compound_statement "{\n            if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }\n            if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }\n          }" ({ "{") (if_statement "if (cVar1 == '=') {\n              param_1[4] = '\x1c';\n              return 2;\n            }" (if "if") (parenthesized_expression "(cVar1 == '=')" (( "(") (binary_expression "cVar1 == '='" (identifier "cVar1") (== "==") (char_literal "'='" (' "'") (character "=") (' "'"))) () ")")) (compound_statement "{\n              param_1[4] = '\x1c';\n              return 2;\n            }" ({ "{") (expression_statement "param_1[4] = '\x1c';" (assignment_expression "param_1[4] = '\x1c'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\x1c'" (' "'") (escape_sequence "\x1c") (' "'"))) (; ";")) (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (if_statement "if (cVar1 == '.') {\n              param_1[4] = '\x1a';\n              return 2;\n            }" (if "if") (parenthesized_expression "(cVar1 == '.')" (( "(") (binary_expression "cVar1 == '.'" (identifier "cVar1") (== "==") (char_literal "'.'" (' "'") (character ".") (' "'"))) () ")")) (compound_statement "{\n              param_1[4] = '\x1a';\n              return 2;\n            }" ({ "{") (expression_statement "param_1[4] = '\x1a';" (assignment_expression "param_1[4] = '\x1a'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\x1a'" (' "'") (escape_sequence "\x1a") (' "'"))) (; ";")) (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (} "}")))) (} "}"))) (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (expression_statement "*param_1 = '[';" (assignment_expression "*param_1 = '['" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'['" (' "'") (character "[") (' "'"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (cVar1 == ']') {\n        param_1[4] = '\x15';\n        return 1;\n      }" (if "if") (parenthesized_expression "(cVar1 == ']')" (( "(") (binary_expression "cVar1 == ']'" (identifier "cVar1") (== "==") (char_literal "']'" (' "'") (character "]") (' "'"))) () ")")) (compound_statement "{\n        param_1[4] = '\x15';\n        return 1;\n      }" ({ "{") (expression_statement "param_1[4] = '\x15';" (assignment_expression "param_1[4] = '\x15'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\x15'" (' "'") (escape_sequence "\x15") (' "'"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (cVar1 == '^') {\n        param_1[4] = '\x19';\n        return 1;\n      }" (if "if") (parenthesized_expression "(cVar1 == '^')" (( "(") (binary_expression "cVar1 == '^'" (identifier "cVar1") (== "==") (char_literal "'^'" (' "'") (character "^") (' "'"))) () ")")) (compound_statement "{\n        param_1[4] = '\x19';\n        return 1;\n      }" ({ "{") (expression_statement "param_1[4] = '\x19';" (assignment_expression "param_1[4] = '\x19'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\x19'" (' "'") (escape_sequence "\x19") (' "'"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (cVar1 == '-') {\n        param_1[4] = '\x16';\n        return 1;\n      }" (if "if") (parenthesized_expression "(cVar1 == '-')" (( "(") (binary_expression "cVar1 == '-'" (identifier "cVar1") (== "==") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (compound_statement "{\n        param_1[4] = '\x16';\n        return 1;\n      }" ({ "{") (expression_statement "param_1[4] = '\x16';" (assignment_expression "param_1[4] = '\x16'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\x16'" (' "'") (escape_sequence "\x16") (' "'"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")))) (} "}"))) (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *token,type_2 *input,type_3 var_4)

{
  type_4 var_3;
  int var_1;
  type_4 *puVar3;
  int var_2;
  
  var_1 = input->cur_idx;
  if (input->stop <= var_1) {
    token->field_0x4 = 2;
    return 0;
  }
  puVar3 = input->mbs;
  var_2 = input->mb_cur_max;
  var_3 = puVar3[var_1];
  (token->opr).c = var_3;
  if (((var_2 < 2) || (var_1 == input->valid_len)) || (input->wcs[var_1] != 0xffffffff)) {
    if (var_3 == '\\') {
      if (((var_4 & 1) != 0) && (var_1 + 1 < input->len)) {
        input->cur_idx = var_1 + 1;
        var_3 = puVar3[var_1 + 1];
        token->field_0x4 = 1;
        (token->opr).c = var_3;
        return 1;
      }
    }
    else {
      if (var_3 == '[') {
        if (var_1 + 1 < input->len) {
          var_3 = puVar3[var_1 + 1];
          (token->opr).c = var_3;
          if (var_3 == ':') {
            if ((var_4 & 4) != 0) {
              token->field_0x4 = 0x1e;
              return 2;
            }
          }
          else {
            if (var_3 == '=') {
              token->field_0x4 = 0x1c;
              return 2;
            }
            if (var_3 == '.') {
              token->field_0x4 = 0x1a;
              return 2;
            }
          }
        }
        token->field_0x4 = 1;
        (token->opr).c = '[';
        return 1;
      }
      if (var_3 == ']') {
        token->field_0x4 = 0x15;
        return 1;
      }
      if (var_3 == '^') {
        token->field_0x4 = 0x19;
        return 1;
      }
      if (var_3 == '-') {
        token->field_0x4 = 0x16;
        return 1;
      }
    }
  }
  token->field_0x4 = 1;
  return 1;
}


(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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (return_statement (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (return_statement (number_literal))))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (return_statement (number_literal))))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (return_statement (number_literal)))))

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

{
  char cVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar2 = *(int *)(param_2 + 0x28);
  if (*(int *)(param_2 + 0x38) <= iVar2) {
    param_1[4] = '\x02';
    return 0;
  }
  iVar3 = *(int *)(param_2 + 4);
  iVar4 = *(int *)(param_2 + 0x50);
  cVar1 = *(char *)(iVar3 + iVar2);
  *param_1 = cVar1;
  if (((iVar4 < 2) || (iVar2 == *(int *)(param_2 + 0x1c))) ||
     (*(int *)(*(int *)(param_2 + 8) + iVar2 * 4) != -1)) {
    if (cVar1 == '\\') {
      if (((param_3 & 1) != 0) && (iVar2 + 1 < *(int *)(param_2 + 0x30))) {
        *(int *)(param_2 + 0x28) = iVar2 + 1;
        cVar1 = *(char *)(iVar3 + 1 + iVar2);
        param_1[4] = '\x01';
        *param_1 = cVar1;
        return 1;
      }
    }
    else {
      if (cVar1 == '[') {
        if (iVar2 + 1 < *(int *)(param_2 + 0x30)) {
          cVar1 = *(char *)(iVar3 + 1 + iVar2);
          *param_1 = cVar1;
          if (cVar1 == ':') {
            if ((param_3 & 4) != 0) {
              param_1[4] = '\x1e';
              return 2;
            }
          }
          else {
            if (cVar1 == '=') {
              param_1[4] = '\x1c';
              return 2;
            }
            if (cVar1 == '.') {
              param_1[4] = '\x1a';
              return 2;
            }
          }
        }
        param_1[4] = '\x01';
        *param_1 = '[';
        return 1;
      }
      if (cVar1 == ']') {
        param_1[4] = '\x15';
        return 1;
      }
      if (cVar1 == '^') {
        param_1[4] = '\x19';
        return 1;
      }
      if (cVar1 == '-') {
        param_1[4] = '\x16';
        return 1;
      }
    }
  }
  param_1[4] = '\x01';
  return 1;
}

