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

int __regparm3 chk_atstar(char *name,int quoted,int *quoted_dollar_atp,int *contains_dollar_at)

{
  int iVar1;
  char *pcVar2;
  
  if (name == (char *)0x0) {
    if (quoted_dollar_atp != (int *)0x0) {
      *quoted_dollar_atp = 0;
    }
    if (contains_dollar_at != (int *)0x0) {
      *contains_dollar_at = 0;
    }
  }
  else {
    if (*name == '@') {
      if (name[1] == '\0') {
        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {
          *quoted_dollar_atp = 1;
        }
        goto LAB_000704b0;
      }
    }
    else if (((*name == '*') && (name[1] == '\0')) && (quoted == 0)) goto LAB_000704b0;
    iVar1 = valid_array_reference(name,0);
    if ((iVar1 != 0) && (pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0)) {
      if (pcVar2[1] == '@') {
        if (pcVar2[2] != ']') {
          return 0;
        }
        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {
          *quoted_dollar_atp = 1;
        }
      }
      else {
        if (pcVar2[1] != '*') {
          return 0;
        }
        if (pcVar2[2] != ']') {
          return 0;
        }
        if (quoted != 0) {
          return 0;
        }
      }
LAB_000704b0:
      if (contains_dollar_at != (int *)0x0) {
        *contains_dollar_at = 1;
        return 1;
      }
      return 1;
    }
  }
  return 0;
}



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

undefined4 __regparm3
FUN_00070420(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)

{
  int iVar1;
  
  if (param_1 == (char *)0x0) {
    if (param_3 != (undefined4 *)0x0) {
      *param_3 = 0;
    }
    if (param_4 != (undefined4 *)0x0) {
      *param_4 = 0;
    }
  }
  else {
    if (*param_1 == '@') {
      if (param_1[1] == '\0') {
        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {
          *param_3 = 1;
        }
        goto LAB_000704b0;
      }
    }
    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;
    iVar1 = valid_array_reference(param_1,0);
    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {
      if (*(char *)(iVar1 + 1) == '@') {
        if (*(char *)(iVar1 + 2) != ']') {
          return 0;
        }
        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {
          *param_3 = 1;
        }
      }
      else {
        if (*(char *)(iVar1 + 1) != '*') {
          return 0;
        }
        if (*(char *)(iVar1 + 2) != ']') {
          return 0;
        }
        if (param_2 != 0) {
          return 0;
        }
      }
LAB_000704b0:
      if (param_4 != (undefined4 *)0x0) {
        *param_4 = 1;
        return 1;
      }
      return 1;
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0x101bd7
SUB ESP,0xc
TEST EAX,EAX
JZ 0x000704f0
MOVZX EBP,byte ptr [EAX]
MOV EDI,EDX
MOV EDX,EBP
CMP DL,0x40
JZ 0x000704d0
CMP DL,0x2a
JNZ 0x00070459
CMP byte ptr [EAX + 0x1],0x0
JNZ 0x00070459
TEST EDI,EDI
JZ 0x000704b0
SUB ESP,0x8
MOV ESI,ECX
MOV EBP,EAX
PUSH 0x0
PUSH EAX
CALL 0x00096a30
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00070480
XOR EAX,EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x5b
PUSH EBP
CALL 0x000dda50
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0007046f
MOVZX EDX,byte ptr [EAX + 0x1]
CMP DL,0x40
JZ 0x00070518
CMP DL,0x2a
JNZ 0x0007046f
CMP byte ptr [EAX + 0x2],0x5d
JNZ 0x0007046f
TEST EDI,EDI
JNZ 0x0007046f
LEA ESI,[ESI]
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,0x1
TEST EDX,EDX
JZ 0x00070471
MOV ESI,dword ptr [ESP + 0x20]
MOV dword ptr [ESI],0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP byte ptr [EAX + 0x1],0x0
JNZ 0x00070459
AND EDI,0x3
JZ 0x000704b0
TEST ECX,ECX
JZ 0x000704b0
MOV dword ptr [ECX],0x1
JMP 0x000704b0
TEST ECX,ECX
JZ 0x000704fa
MOV dword ptr [ECX],0x0
MOV ECX,dword ptr [ESP + 0x20]
TEST ECX,ECX
JZ 0x0007046f
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [EAX],0x0
JMP 0x0007046f
CMP byte ptr [EAX + 0x2],0x5d
JNZ 0x0007046f
AND EDI,0x3
JZ 0x000704b0
TEST ESI,ESI
JZ 0x000704b0
MOV dword ptr [ESI],0x1
JMP 0x000704b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3\nFUN_00070420(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  if (param_1 == (char *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }\n  else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_00070420(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  if (param_1 == (char *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }\n  else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00070420(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == (char *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }\n  else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == (char *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }\n  else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }" { (if_statement "if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_3 = 0;\n    }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (if_statement "if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_4 = 0;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) })) }) (else_clause "else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" else (compound_statement "{\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" { (if_statement "if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;" if (parenthesized_expression "(*param_1 == '@')" ( (binary_expression "*param_1 == '@'" (pointer_expression "*param_1" * identifier) == (char_literal "'@'" ' character ')) )) (compound_statement "{\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }" { (if_statement "if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }" if (parenthesized_expression "(param_1[1] == '\0')" ( (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }" { (if_statement "if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }" if (parenthesized_expression "(((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0))" ( (binary_expression "((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)" (parenthesized_expression "((param_2 & 3) != 0)" ( (binary_expression "(param_2 & 3) != 0" (parenthesized_expression "(param_2 & 3)" ( (binary_expression "param_2 & 3" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          *param_3 = 1;\n        }" { (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (goto_statement "goto LAB_000704b0;" goto statement_identifier ;) })) }) (else_clause "else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;" else (if_statement "if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;" if (parenthesized_expression "(((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0))" ( (binary_expression "((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)" (parenthesized_expression "((*param_1 == '*') && (param_1[1] == '\0'))" ( (binary_expression "(*param_1 == '*') && (param_1[1] == '\0')" (parenthesized_expression "(*param_1 == '*')" ( (binary_expression "*param_1 == '*'" (pointer_expression "*param_1" * identifier) == (char_literal "'*'" ' character ')) )) && (parenthesized_expression "(param_1[1] == '\0')" ( (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_000704b0;" goto statement_identifier ;)))) (expression_statement "iVar1 = valid_array_reference(param_1,0);" (assignment_expression "iVar1 = valid_array_reference(param_1,0)" identifier = (call_expression "valid_array_reference(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = mbschr(param_1,0x5b), iVar1 != 0)" ( (comma_expression "iVar1 = mbschr(param_1,0x5b), iVar1 != 0" (assignment_expression "iVar1 = mbschr(param_1,0x5b)" identifier = (call_expression "mbschr(param_1,0x5b)" identifier (argument_list "(param_1,0x5b)" ( identifier , number_literal )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }" { (if_statement "if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(*(char *)(iVar1 + 1) == '@')" ( (binary_expression "*(char *)(iVar1 + 1) == '@'" (pointer_expression "*(char *)(iVar1 + 1)" * (cast_expression "(char *)(iVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )))) == (char_literal "'@'" ' character ')) )) (compound_statement "{\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }" { (if_statement "if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }" if (parenthesized_expression "(*(char *)(iVar1 + 2) != ']')" ( (binary_expression "*(char *)(iVar1 + 2) != ']'" (pointer_expression "*(char *)(iVar1 + 2)" * (cast_expression "(char *)(iVar1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 2)" ( (binary_expression "iVar1 + 2" identifier + number_literal) )))) != (char_literal "']'" ' character ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }" if (parenthesized_expression "(((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0))" ( (binary_expression "((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)" (parenthesized_expression "((param_2 & 3) != 0)" ( (binary_expression "(param_2 & 3) != 0" (parenthesized_expression "(param_2 & 3)" ( (binary_expression "param_2 & 3" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          *param_3 = 1;\n        }" { (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) }) (else_clause "else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }" else (compound_statement "{\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }" { (if_statement "if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }" if (parenthesized_expression "(*(char *)(iVar1 + 1) != '*')" ( (binary_expression "*(char *)(iVar1 + 1) != '*'" (pointer_expression "*(char *)(iVar1 + 1)" * (cast_expression "(char *)(iVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )))) != (char_literal "'*'" ' character ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }" if (parenthesized_expression "(*(char *)(iVar1 + 2) != ']')" ( (binary_expression "*(char *)(iVar1 + 2) != ']'" (pointer_expression "*(char *)(iVar1 + 2)" * (cast_expression "(char *)(iVar1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 2)" ( (binary_expression "iVar1 + 2" identifier + number_literal) )))) != (char_literal "']'" ' character ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != 0) {\n          return 0;\n        }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) }))) (labeled_statement "LAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }" statement_identifier : (if_statement "if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_4 = 1;\n        return 1;\n      }" { (expression_statement "*param_4 = 1;" (assignment_expression "*param_4 = 1" (pointer_expression "*param_4" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) }))) (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 chk_atstar(char *name,int quoted,int *quoted_dollar_atp,int *contains_dollar_at)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (name == (char *)0x0) {\n    if (quoted_dollar_atp != (int *)0x0) {\n      *quoted_dollar_atp = 0;\n    }\n    if (contains_dollar_at != (int *)0x0) {\n      *contains_dollar_at = 0;\n    }\n  }\n  else {\n    if (*name == '@') {\n      if (name[1] == '\0') {\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*name == '*') && (name[1] == '\0')) && (quoted == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(name,0);\n    if ((iVar1 != 0) && (pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0)) {\n      if (pcVar2[1] == '@') {\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n      }\n      else {\n        if (pcVar2[1] != '*') {\n          return 0;\n        }\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (quoted != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (contains_dollar_at != (int *)0x0) {\n        *contains_dollar_at = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "int __regparm3 chk_atstar(char *name,int quoted,int *quoted_dollar_atp,int *contains_dollar_at)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (name == (char *)0x0) {\n    if (quoted_dollar_atp != (int *)0x0) {\n      *quoted_dollar_atp = 0;\n    }\n    if (contains_dollar_at != (int *)0x0) {\n      *contains_dollar_at = 0;\n    }\n  }\n  else {\n    if (*name == '@') {\n      if (name[1] == '\0') {\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*name == '*') && (name[1] == '\0')) && (quoted == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(name,0);\n    if ((iVar1 != 0) && (pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0)) {\n      if (pcVar2[1] == '@') {\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n      }\n      else {\n        if (pcVar2[1] != '*') {\n          return 0;\n        }\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (quoted != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (contains_dollar_at != (int *)0x0) {\n        *contains_dollar_at = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "chk_atstar(char *name,int quoted,int *quoted_dollar_atp,int *contains_dollar_at)" identifier (parameter_list "(char *name,int quoted,int *quoted_dollar_atp,int *contains_dollar_at)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int quoted" primitive_type identifier) , (parameter_declaration "int *quoted_dollar_atp" primitive_type (pointer_declarator "*quoted_dollar_atp" * identifier)) , (parameter_declaration "int *contains_dollar_at" primitive_type (pointer_declarator "*contains_dollar_at" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  if (name == (char *)0x0) {\n    if (quoted_dollar_atp != (int *)0x0) {\n      *quoted_dollar_atp = 0;\n    }\n    if (contains_dollar_at != (int *)0x0) {\n      *contains_dollar_at = 0;\n    }\n  }\n  else {\n    if (*name == '@') {\n      if (name[1] == '\0') {\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*name == '*') && (name[1] == '\0')) && (quoted == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(name,0);\n    if ((iVar1 != 0) && (pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0)) {\n      if (pcVar2[1] == '@') {\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n      }\n      else {\n        if (pcVar2[1] != '*') {\n          return 0;\n        }\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (quoted != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (contains_dollar_at != (int *)0x0) {\n        *contains_dollar_at = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (name == (char *)0x0) {\n    if (quoted_dollar_atp != (int *)0x0) {\n      *quoted_dollar_atp = 0;\n    }\n    if (contains_dollar_at != (int *)0x0) {\n      *contains_dollar_at = 0;\n    }\n  }\n  else {\n    if (*name == '@') {\n      if (name[1] == '\0') {\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*name == '*') && (name[1] == '\0')) && (quoted == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(name,0);\n    if ((iVar1 != 0) && (pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0)) {\n      if (pcVar2[1] == '@') {\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n      }\n      else {\n        if (pcVar2[1] != '*') {\n          return 0;\n        }\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (quoted != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (contains_dollar_at != (int *)0x0) {\n        *contains_dollar_at = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" if (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (quoted_dollar_atp != (int *)0x0) {\n      *quoted_dollar_atp = 0;\n    }\n    if (contains_dollar_at != (int *)0x0) {\n      *contains_dollar_at = 0;\n    }\n  }" { (if_statement "if (quoted_dollar_atp != (int *)0x0) {\n      *quoted_dollar_atp = 0;\n    }" if (parenthesized_expression "(quoted_dollar_atp != (int *)0x0)" ( (binary_expression "quoted_dollar_atp != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *quoted_dollar_atp = 0;\n    }" { (expression_statement "*quoted_dollar_atp = 0;" (assignment_expression "*quoted_dollar_atp = 0" (pointer_expression "*quoted_dollar_atp" * identifier) = number_literal) ;) })) (if_statement "if (contains_dollar_at != (int *)0x0) {\n      *contains_dollar_at = 0;\n    }" if (parenthesized_expression "(contains_dollar_at != (int *)0x0)" ( (binary_expression "contains_dollar_at != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *contains_dollar_at = 0;\n    }" { (expression_statement "*contains_dollar_at = 0;" (assignment_expression "*contains_dollar_at = 0" (pointer_expression "*contains_dollar_at" * identifier) = number_literal) ;) })) }) (else_clause "else {\n    if (*name == '@') {\n      if (name[1] == '\0') {\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*name == '*') && (name[1] == '\0')) && (quoted == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(name,0);\n    if ((iVar1 != 0) && (pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0)) {\n      if (pcVar2[1] == '@') {\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n      }\n      else {\n        if (pcVar2[1] != '*') {\n          return 0;\n        }\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (quoted != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (contains_dollar_at != (int *)0x0) {\n        *contains_dollar_at = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" else (compound_statement "{\n    if (*name == '@') {\n      if (name[1] == '\0') {\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*name == '*') && (name[1] == '\0')) && (quoted == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(name,0);\n    if ((iVar1 != 0) && (pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0)) {\n      if (pcVar2[1] == '@') {\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n      }\n      else {\n        if (pcVar2[1] != '*') {\n          return 0;\n        }\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (quoted != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (contains_dollar_at != (int *)0x0) {\n        *contains_dollar_at = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" { (if_statement "if (*name == '@') {\n      if (name[1] == '\0') {\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*name == '*') && (name[1] == '\0')) && (quoted == 0)) goto LAB_000704b0;" if (parenthesized_expression "(*name == '@')" ( (binary_expression "*name == '@'" (pointer_expression "*name" * identifier) == (char_literal "'@'" ' character ')) )) (compound_statement "{\n      if (name[1] == '\0') {\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }" { (if_statement "if (name[1] == '\0') {\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n        goto LAB_000704b0;\n      }" if (parenthesized_expression "(name[1] == '\0')" ( (binary_expression "name[1] == '\0'" (subscript_expression "name[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n        goto LAB_000704b0;\n      }" { (if_statement "if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }" if (parenthesized_expression "(((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0))" ( (binary_expression "((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)" (parenthesized_expression "((quoted & 3U) != 0)" ( (binary_expression "(quoted & 3U) != 0" (parenthesized_expression "(quoted & 3U)" ( (binary_expression "quoted & 3U" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(quoted_dollar_atp != (int *)0x0)" ( (binary_expression "quoted_dollar_atp != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          *quoted_dollar_atp = 1;\n        }" { (expression_statement "*quoted_dollar_atp = 1;" (assignment_expression "*quoted_dollar_atp = 1" (pointer_expression "*quoted_dollar_atp" * identifier) = number_literal) ;) })) (goto_statement "goto LAB_000704b0;" goto statement_identifier ;) })) }) (else_clause "else if (((*name == '*') && (name[1] == '\0')) && (quoted == 0)) goto LAB_000704b0;" else (if_statement "if (((*name == '*') && (name[1] == '\0')) && (quoted == 0)) goto LAB_000704b0;" if (parenthesized_expression "(((*name == '*') && (name[1] == '\0')) && (quoted == 0))" ( (binary_expression "((*name == '*') && (name[1] == '\0')) && (quoted == 0)" (parenthesized_expression "((*name == '*') && (name[1] == '\0'))" ( (binary_expression "(*name == '*') && (name[1] == '\0')" (parenthesized_expression "(*name == '*')" ( (binary_expression "*name == '*'" (pointer_expression "*name" * identifier) == (char_literal "'*'" ' character ')) )) && (parenthesized_expression "(name[1] == '\0')" ( (binary_expression "name[1] == '\0'" (subscript_expression "name[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(quoted == 0)" ( (binary_expression "quoted == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_000704b0;" goto statement_identifier ;)))) (expression_statement "iVar1 = valid_array_reference(name,0);" (assignment_expression "iVar1 = valid_array_reference(name,0)" identifier = (call_expression "valid_array_reference(name,0)" identifier (argument_list "(name,0)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar1 != 0) && (pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0)) {\n      if (pcVar2[1] == '@') {\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n      }\n      else {\n        if (pcVar2[1] != '*') {\n          return 0;\n        }\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (quoted != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (contains_dollar_at != (int *)0x0) {\n        *contains_dollar_at = 1;\n        return 1;\n      }\n      return 1;\n    }" if (parenthesized_expression "((iVar1 != 0) && (pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0))" ( (binary_expression "(iVar1 != 0) && (pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0)" ( (comma_expression "pcVar2 = mbschr(name,0x5b), pcVar2 != (char *)0x0" (assignment_expression "pcVar2 = mbschr(name,0x5b)" identifier = (call_expression "mbschr(name,0x5b)" identifier (argument_list "(name,0x5b)" ( identifier , number_literal )))) , (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      if (pcVar2[1] == '@') {\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n      }\n      else {\n        if (pcVar2[1] != '*') {\n          return 0;\n        }\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (quoted != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (contains_dollar_at != (int *)0x0) {\n        *contains_dollar_at = 1;\n        return 1;\n      }\n      return 1;\n    }" { (if_statement "if (pcVar2[1] == '@') {\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n      }\n      else {\n        if (pcVar2[1] != '*') {\n          return 0;\n        }\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (quoted != 0) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(pcVar2[1] == '@')" ( (binary_expression "pcVar2[1] == '@'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) == (char_literal "'@'" ' character ')) )) (compound_statement "{\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }\n      }" { (if_statement "if (pcVar2[2] != ']') {\n          return 0;\n        }" if (parenthesized_expression "(pcVar2[2] != ']')" ( (binary_expression "pcVar2[2] != ']'" (subscript_expression "pcVar2[2]" identifier [ number_literal ]) != (char_literal "']'" ' character ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)) {\n          *quoted_dollar_atp = 1;\n        }" if (parenthesized_expression "(((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0))" ( (binary_expression "((quoted & 3U) != 0) && (quoted_dollar_atp != (int *)0x0)" (parenthesized_expression "((quoted & 3U) != 0)" ( (binary_expression "(quoted & 3U) != 0" (parenthesized_expression "(quoted & 3U)" ( (binary_expression "quoted & 3U" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(quoted_dollar_atp != (int *)0x0)" ( (binary_expression "quoted_dollar_atp != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          *quoted_dollar_atp = 1;\n        }" { (expression_statement "*quoted_dollar_atp = 1;" (assignment_expression "*quoted_dollar_atp = 1" (pointer_expression "*quoted_dollar_atp" * identifier) = number_literal) ;) })) }) (else_clause "else {\n        if (pcVar2[1] != '*') {\n          return 0;\n        }\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (quoted != 0) {\n          return 0;\n        }\n      }" else (compound_statement "{\n        if (pcVar2[1] != '*') {\n          return 0;\n        }\n        if (pcVar2[2] != ']') {\n          return 0;\n        }\n        if (quoted != 0) {\n          return 0;\n        }\n      }" { (if_statement "if (pcVar2[1] != '*') {\n          return 0;\n        }" if (parenthesized_expression "(pcVar2[1] != '*')" ( (binary_expression "pcVar2[1] != '*'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) != (char_literal "'*'" ' character ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pcVar2[2] != ']') {\n          return 0;\n        }" if (parenthesized_expression "(pcVar2[2] != ']')" ( (binary_expression "pcVar2[2] != ']'" (subscript_expression "pcVar2[2]" identifier [ number_literal ]) != (char_literal "']'" ' character ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (quoted != 0) {\n          return 0;\n        }" if (parenthesized_expression "(quoted != 0)" ( (binary_expression "quoted != 0" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) }))) (labeled_statement "LAB_000704b0:\n      if (contains_dollar_at != (int *)0x0) {\n        *contains_dollar_at = 1;\n        return 1;\n      }" statement_identifier : (if_statement "if (contains_dollar_at != (int *)0x0) {\n        *contains_dollar_at = 1;\n        return 1;\n      }" if (parenthesized_expression "(contains_dollar_at != (int *)0x0)" ( (binary_expression "contains_dollar_at != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *contains_dollar_at = 1;\n        return 1;\n      }" { (expression_statement "*contains_dollar_at = 1;" (assignment_expression "*contains_dollar_at = 1" (pointer_expression "*contains_dollar_at" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) }))) (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3\nFUN_00070420(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  if (param_1 == (char *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }\n  else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_00070420(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  if (param_1 == (char *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }\n  else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00070420(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == (char *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }\n  else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == (char *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }\n  else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }" { (if_statement "if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_3 = 0;\n    }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (if_statement "if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_4 = 0;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) })) }) (else_clause "else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" else (compound_statement "{\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" { (if_statement "if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;" if (parenthesized_expression "(*param_1 == '@')" ( (binary_expression "*param_1 == '@'" (pointer_expression "*param_1" * identifier) == (char_literal "'@'" ' character ')) )) (compound_statement "{\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }" { (if_statement "if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }" if (parenthesized_expression "(param_1[1] == '\0')" ( (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }" { (if_statement "if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }" if (parenthesized_expression "(((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0))" ( (binary_expression "((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)" (parenthesized_expression "((param_2 & 3) != 0)" ( (binary_expression "(param_2 & 3) != 0" (parenthesized_expression "(param_2 & 3)" ( (binary_expression "param_2 & 3" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          *param_3 = 1;\n        }" { (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (goto_statement "goto LAB_000704b0;" goto statement_identifier ;) })) }) (else_clause "else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;" else (if_statement "if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;" if (parenthesized_expression "(((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0))" ( (binary_expression "((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)" (parenthesized_expression "((*param_1 == '*') && (param_1[1] == '\0'))" ( (binary_expression "(*param_1 == '*') && (param_1[1] == '\0')" (parenthesized_expression "(*param_1 == '*')" ( (binary_expression "*param_1 == '*'" (pointer_expression "*param_1" * identifier) == (char_literal "'*'" ' character ')) )) && (parenthesized_expression "(param_1[1] == '\0')" ( (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_000704b0;" goto statement_identifier ;)))) (expression_statement "iVar1 = valid_array_reference(param_1,0);" (assignment_expression "iVar1 = valid_array_reference(param_1,0)" identifier = (call_expression "valid_array_reference(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = mbschr(param_1,0x5b), iVar1 != 0)" ( (comma_expression "iVar1 = mbschr(param_1,0x5b), iVar1 != 0" (assignment_expression "iVar1 = mbschr(param_1,0x5b)" identifier = (call_expression "mbschr(param_1,0x5b)" identifier (argument_list "(param_1,0x5b)" ( identifier , number_literal )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }" { (if_statement "if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(*(char *)(iVar1 + 1) == '@')" ( (binary_expression "*(char *)(iVar1 + 1) == '@'" (pointer_expression "*(char *)(iVar1 + 1)" * (cast_expression "(char *)(iVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )))) == (char_literal "'@'" ' character ')) )) (compound_statement "{\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }" { (if_statement "if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }" if (parenthesized_expression "(*(char *)(iVar1 + 2) != ']')" ( (binary_expression "*(char *)(iVar1 + 2) != ']'" (pointer_expression "*(char *)(iVar1 + 2)" * (cast_expression "(char *)(iVar1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 2)" ( (binary_expression "iVar1 + 2" identifier + number_literal) )))) != (char_literal "']'" ' character ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }" if (parenthesized_expression "(((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0))" ( (binary_expression "((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)" (parenthesized_expression "((param_2 & 3) != 0)" ( (binary_expression "(param_2 & 3) != 0" (parenthesized_expression "(param_2 & 3)" ( (binary_expression "param_2 & 3" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          *param_3 = 1;\n        }" { (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) }) (else_clause "else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }" else (compound_statement "{\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }" { (if_statement "if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }" if (parenthesized_expression "(*(char *)(iVar1 + 1) != '*')" ( (binary_expression "*(char *)(iVar1 + 1) != '*'" (pointer_expression "*(char *)(iVar1 + 1)" * (cast_expression "(char *)(iVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )))) != (char_literal "'*'" ' character ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }" if (parenthesized_expression "(*(char *)(iVar1 + 2) != ']')" ( (binary_expression "*(char *)(iVar1 + 2) != ']'" (pointer_expression "*(char *)(iVar1 + 2)" * (cast_expression "(char *)(iVar1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 2)" ( (binary_expression "iVar1 + 2" identifier + number_literal) )))) != (char_literal "']'" ' character ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != 0) {\n          return 0;\n        }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) }))) (labeled_statement "LAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }" statement_identifier : (if_statement "if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_4 = 1;\n        return 1;\n      }" { (expression_statement "*param_4 = 1;" (assignment_expression "*param_4 = 1" (pointer_expression "*param_4" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) }))) (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return 0;" 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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (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 IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (goto_statement goto statement_identifier ;)))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' character ')) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' character ')) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' character ')) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) }))) (return_statement return LIT ;) })) }))) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3\nFUN_00070420(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  if (param_1 == (char *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }\n  else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00070420(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)" (identifier "FUN_00070420") (parameter_list "(char *param_1,uint param_2,undefined4 *param_3,undefined4 *param_4)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == (char *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }\n  else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 == (char *)0x0) {\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }\n  else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }\n  }" ({ "{") (if_statement "if (param_3 != (undefined4 *)0x0) {\n      *param_3 = 0;\n    }" (if "if") (parenthesized_expression "(param_3 != (undefined4 *)0x0)" (( "(") (binary_expression "param_3 != (undefined4 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_3 = 0;\n    }" ({ "{") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (param_4 != (undefined4 *)0x0) {\n      *param_4 = 0;\n    }" (if "if") (parenthesized_expression "(param_4 != (undefined4 *)0x0)" (( "(") (binary_expression "param_4 != (undefined4 *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_4 = 0;\n    }" ({ "{") (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" (else "else") (compound_statement "{\n    if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;\n    iVar1 = valid_array_reference(param_1,0);\n    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }\n  }" ({ "{") (if_statement "if (*param_1 == '@') {\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }\n    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;" (if "if") (parenthesized_expression "(*param_1 == '@')" (( "(") (binary_expression "*param_1 == '@'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'@'" (' "'") (character "@") (' "'"))) () ")")) (compound_statement "{\n      if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }\n    }" ({ "{") (if_statement "if (param_1[1] == '\0') {\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }" (if "if") (parenthesized_expression "(param_1[1] == '\0')" (( "(") (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n        goto LAB_000704b0;\n      }" ({ "{") (if_statement "if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }" (if "if") (parenthesized_expression "(((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0))" (( "(") (binary_expression "((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)" (parenthesized_expression "((param_2 & 3) != 0)" (( "(") (binary_expression "(param_2 & 3) != 0" (parenthesized_expression "(param_2 & 3)" (( "(") (binary_expression "param_2 & 3" (identifier "param_2") (& "&") (number_literal "3")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 != (undefined4 *)0x0)" (( "(") (binary_expression "param_3 != (undefined4 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n          *param_3 = 1;\n        }" ({ "{") (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (goto_statement "goto LAB_000704b0;" (goto "goto") (statement_identifier "LAB_000704b0") (; ";")) (} "}"))) (} "}")) (else_clause "else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;" (else "else") (if_statement "if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;" (if "if") (parenthesized_expression "(((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0))" (( "(") (binary_expression "((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)" (parenthesized_expression "((*param_1 == '*') && (param_1[1] == '\0'))" (( "(") (binary_expression "(*param_1 == '*') && (param_1[1] == '\0')" (parenthesized_expression "(*param_1 == '*')" (( "(") (binary_expression "*param_1 == '*'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] == '\0')" (( "(") (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_000704b0;" (goto "goto") (statement_identifier "LAB_000704b0") (; ";"))))) (expression_statement "iVar1 = valid_array_reference(param_1,0);" (assignment_expression "iVar1 = valid_array_reference(param_1,0)" (identifier "iVar1") (= "=") (call_expression "valid_array_reference(param_1,0)" (identifier "valid_array_reference") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }" (if "if") (parenthesized_expression "((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0))" (( "(") (binary_expression "(iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = mbschr(param_1,0x5b), iVar1 != 0)" (( "(") (comma_expression "iVar1 = mbschr(param_1,0x5b), iVar1 != 0" (assignment_expression "iVar1 = mbschr(param_1,0x5b)" (identifier "iVar1") (= "=") (call_expression "mbschr(param_1,0x5b)" (identifier "mbschr") (argument_list "(param_1,0x5b)" (( "(") (identifier "param_1") (, ",") (number_literal "0x5b") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }\nLAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }\n      return 1;\n    }" ({ "{") (if_statement "if (*(char *)(iVar1 + 1) == '@') {\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }\n      else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }" (if "if") (parenthesized_expression "(*(char *)(iVar1 + 1) == '@')" (( "(") (binary_expression "*(char *)(iVar1 + 1) == '@'" (pointer_expression "*(char *)(iVar1 + 1)" (* "*") (cast_expression "(char *)(iVar1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 1)" (( "(") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) () ")")))) (== "==") (char_literal "'@'" (' "'") (character "@") (' "'"))) () ")")) (compound_statement "{\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }\n      }" ({ "{") (if_statement "if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }" (if "if") (parenthesized_expression "(*(char *)(iVar1 + 2) != ']')" (( "(") (binary_expression "*(char *)(iVar1 + 2) != ']'" (pointer_expression "*(char *)(iVar1 + 2)" (* "*") (cast_expression "(char *)(iVar1 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 2)" (( "(") (binary_expression "iVar1 + 2" (identifier "iVar1") (+ "+") (number_literal "2")) () ")")))) (!= "!=") (char_literal "']'" (' "'") (character "]") (' "'"))) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {\n          *param_3 = 1;\n        }" (if "if") (parenthesized_expression "(((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0))" (( "(") (binary_expression "((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)" (parenthesized_expression "((param_2 & 3) != 0)" (( "(") (binary_expression "(param_2 & 3) != 0" (parenthesized_expression "(param_2 & 3)" (( "(") (binary_expression "param_2 & 3" (identifier "param_2") (& "&") (number_literal "3")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 != (undefined4 *)0x0)" (( "(") (binary_expression "param_3 != (undefined4 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n          *param_3 = 1;\n        }" ({ "{") (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }" (else "else") (compound_statement "{\n        if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }\n        if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }\n        if (param_2 != 0) {\n          return 0;\n        }\n      }" ({ "{") (if_statement "if (*(char *)(iVar1 + 1) != '*') {\n          return 0;\n        }" (if "if") (parenthesized_expression "(*(char *)(iVar1 + 1) != '*')" (( "(") (binary_expression "*(char *)(iVar1 + 1) != '*'" (pointer_expression "*(char *)(iVar1 + 1)" (* "*") (cast_expression "(char *)(iVar1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 1)" (( "(") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) () ")")))) (!= "!=") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*(char *)(iVar1 + 2) != ']') {\n          return 0;\n        }" (if "if") (parenthesized_expression "(*(char *)(iVar1 + 2) != ']')" (( "(") (binary_expression "*(char *)(iVar1 + 2) != ']'" (pointer_expression "*(char *)(iVar1 + 2)" (* "*") (cast_expression "(char *)(iVar1 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 2)" (( "(") (binary_expression "iVar1 + 2" (identifier "iVar1") (+ "+") (number_literal "2")) () ")")))) (!= "!=") (char_literal "']'" (' "'") (character "]") (' "'"))) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_2 != 0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_000704b0:\n      if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }" (statement_identifier "LAB_000704b0") (: ":") (if_statement "if (param_4 != (undefined4 *)0x0) {\n        *param_4 = 1;\n        return 1;\n      }" (if "if") (parenthesized_expression "(param_4 != (undefined4 *)0x0)" (( "(") (binary_expression "param_4 != (undefined4 *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_4 = 1;\n        return 1;\n      }" ({ "{") (expression_statement "*param_4 = 1;" (assignment_expression "*param_4 = 1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int __regparm3 function_1(char *var_1,int var_4,int *var_2,int *var_3)

{
  int var_6;
  char *var_8;
  
  if (var_1 == (char *)0x0) {
    if (var_2 != (int *)0x0) {
      *var_2 = 0;
    }
    if (var_3 != (int *)0x0) {
      *var_3 = 0;
    }
  }
  else {
    if (*var_1 == '@') {
      if (var_1[1] == '\0') {
        if (((var_4 & 3U) != 0) && (var_2 != (int *)0x0)) {
          *var_2 = 1;
        }
        goto LAB_000704b0;
      }
    }
    else if (((*var_1 == '*') && (var_1[1] == '\0')) && (var_4 == 0)) goto LAB_000704b0;
    var_6 = var_5(var_1,0);
    if ((var_6 != 0) && (var_8 = var_7(var_1,0x5b), var_8 != (char *)0x0)) {
      if (var_8[1] == '@') {
        if (var_8[2] != ']') {
          return 0;
        }
        if (((var_4 & 3U) != 0) && (var_2 != (int *)0x0)) {
          *var_2 = 1;
        }
      }
      else {
        if (var_8[1] != '*') {
          return 0;
        }
        if (var_8[2] != ']') {
          return 0;
        }
        if (var_4 != 0) {
          return 0;
        }
      }
LAB_000704b0:
      if (var_3 != (int *)0x0) {
        *var_3 = 1;
        return 1;
      }
      return 1;
    }
  }
  return 0;
}


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

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

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

{
  int iVar1;
  
  if (param_1 == (char *)0x0) {
    if (param_3 != (undefined4 *)0x0) {
      *param_3 = 0;
    }
    if (param_4 != (undefined4 *)0x0) {
      *param_4 = 0;
    }
  }
  else {
    if (*param_1 == '@') {
      if (param_1[1] == '\0') {
        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {
          *param_3 = 1;
        }
        goto LAB_000704b0;
      }
    }
    else if (((*param_1 == '*') && (param_1[1] == '\0')) && (param_2 == 0)) goto LAB_000704b0;
    iVar1 = valid_array_reference(param_1,0);
    if ((iVar1 != 0) && (iVar1 = mbschr(param_1,0x5b), iVar1 != 0)) {
      if (*(char *)(iVar1 + 1) == '@') {
        if (*(char *)(iVar1 + 2) != ']') {
          return 0;
        }
        if (((param_2 & 3) != 0) && (param_3 != (undefined4 *)0x0)) {
          *param_3 = 1;
        }
      }
      else {
        if (*(char *)(iVar1 + 1) != '*') {
          return 0;
        }
        if (*(char *)(iVar1 + 2) != ']') {
          return 0;
        }
        if (param_2 != 0) {
          return 0;
        }
      }
LAB_000704b0:
      if (param_4 != (undefined4 *)0x0) {
        *param_4 = 1;
        return 1;
      }
      return 1;
    }
  }
  return 0;
}

