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

void lang_set_flags(lang_memory_region_type *ptr,char *flags,int invert)

{
  char cVar1;
  char *fmt;
  flagword *pfVar2;
  
  cVar1 = *flags;
  pfVar2 = &ptr->not_flags;
  if (invert == 0) {
    pfVar2 = &ptr->flags;
  }
  while (cVar1 != '\0') {
    switch(cVar1) {
    case '!':
      if (invert == 0) {
        invert = 1;
        pfVar2 = &ptr->not_flags;
      }
      else {
        invert = 0;
        pfVar2 = &ptr->flags;
      }
      break;
    default:
      fmt = (char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);
      einfo(fmt,(int)cVar1,(int)cVar1);
      break;
    case 'A':
    case 'a':
      *pfVar2 = *pfVar2 | 1;
      break;
    case 'I':
    case 'L':
    case 'i':
    case 'l':
      *pfVar2 = *pfVar2 | 2;
      break;
    case 'R':
    case 'r':
      *pfVar2 = *pfVar2 | 8;
      break;
    case 'W':
    case 'w':
      *pfVar2 = *pfVar2 | 0x20;
      break;
    case 'X':
    case 'x':
      *pfVar2 = *pfVar2 | 0x10;
    }
    flags = flags + 1;
    cVar1 = *flags;
  }
  return;
}



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

void FUN_00027520(int param_1,char *param_2,int param_3)

{
  char cVar1;
  undefined4 uVar2;
  uint *puVar3;
  
  cVar1 = *param_2;
  puVar3 = (uint *)(param_1 + 0x34);
  if (param_3 == 0) {
    puVar3 = (uint *)(param_1 + 0x30);
  }
  while (cVar1 != '\0') {
    switch(cVar1) {
    case '!':
      if (param_3 == 0) {
        param_3 = 1;
        puVar3 = (uint *)(param_1 + 0x34);
      }
      else {
        param_3 = 0;
        puVar3 = (uint *)(param_1 + 0x30);
      }
      break;
    default:
      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);
      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);
      break;
    case 'A':
    case 'a':
      *puVar3 = *puVar3 | 1;
      break;
    case 'I':
    case 'L':
    case 'i':
    case 'l':
      *puVar3 = *puVar3 | 2;
      break;
    case 'R':
    case 'r':
      *puVar3 = *puVar3 | 8;
      break;
    case 'W':
    case 'w':
      *puVar3 = *puVar3 | 0x20;
      break;
    case 'X':
    case 'x':
      *puVar3 = *puVar3 | 0x10;
    }
    param_2 = param_2 + 1;
    cVar1 = *param_2;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x1a7ad7
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [ESP + 0x38]
LEA ECX,[EAX + 0x34]
MOVZX EDX,byte ptr [EBP]
ADD EAX,0x30
MOV EDI,ECX
TEST ESI,ESI
LEA ECX,[EBX + 0xffeac8c4]
MOV dword ptr [ESP + 0xc],EAX
CMOVZ EDI,EAX
MOV dword ptr [ESP + 0x8],ECX
TEST DL,DL
JZ 0x00027593
LEA ESI,[ESI]
LEA EAX,[EDX + -0x21]
CMP AL,0x57
JA 0x000275d8
MOVZX EAX,AL
MOV ECX,dword ptr [EBX + EAX*0x4 + 0xffeabb44]
ADD ECX,EBX
JMP ECX
ADD EBP,0x1
MOVZX EDX,byte ptr [EBP]
TEST DL,DL
JNZ 0x00027568
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV byte ptr [ESP + 0x7],DL
SUB ESP,0x4
PUSH 0x5
PUSH dword ptr [ESP + 0x10]
PUSH 0x0
CALL 0x00016310
MOVSX EDX,byte ptr [ESP + 0x17]
ADD ESP,0xc
PUSH EDX
PUSH EDX
PUSH EAX
CALL 0x00034d20
ADD ESP,0x10
JMP 0x00027588
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00027520(int param_1,char *param_2,int param_3)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  \n  cVar1 = *param_2;\n  puVar3 = (uint *)(param_1 + 0x34);\n  if (param_3 == 0) {\n    puVar3 = (uint *)(param_1 + 0x30);\n  }\n  while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00027520(int param_1,char *param_2,int param_3)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  \n  cVar1 = *param_2;\n  puVar3 = (uint *)(param_1 + 0x34);\n  if (param_3 == 0) {\n    puVar3 = (uint *)(param_1 + 0x30);\n  }\n  while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00027520(int param_1,char *param_2,int param_3)" identifier (parameter_list "(int param_1,char *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  \n  cVar1 = *param_2;\n  puVar3 = (uint *)(param_1 + 0x34);\n  if (param_3 == 0) {\n    puVar3 = (uint *)(param_1 + 0x30);\n  }\n  while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar3 = (uint *)(param_1 + 0x34);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x34)" identifier = (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) ;) (if_statement "if (param_3 == 0) {\n    puVar3 = (uint *)(param_1 + 0x30);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar3 = (uint *)(param_1 + 0x30);\n  }" { (expression_statement "puVar3 = (uint *)(param_1 + 0x30);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x30)" identifier = (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) ;) })) (while_statement "while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }" { (switch_statement "switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }" switch (parenthesized_expression "(cVar1)" ( identifier )) (compound_statement "{\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }" { (case_statement "case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;" case (char_literal "'!'" ' character ') : (if_statement "if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }" { (expression_statement "param_3 = 1;" (assignment_expression "param_3 = 1" identifier = number_literal) ;) (expression_statement "puVar3 = (uint *)(param_1 + 0x34);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x34)" identifier = (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) ;) }) (else_clause "else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }" else (compound_statement "{\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }" { (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = (uint *)(param_1 + 0x30);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x30)" identifier = (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) ;) }))) (break_statement "break;" break ;)) (case_statement "default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;" default : (expression_statement "uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5)" identifier (argument_list "(0,"%F%P: invalid character %c (%d) in flags\n",5)" ( number_literal , (string_literal ""%F%P: invalid character %c (%d) in flags\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);" (call_expression "FUN_00034d20(uVar2,(int)cVar1,(int)cVar1)" identifier (argument_list "(uVar2,(int)cVar1,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (break_statement "break;" break ;)) (case_statement "case 'A':" case (char_literal "'A'" ' character ') :) (case_statement "case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;" case (char_literal "'a'" ' character ') : (expression_statement "*puVar3 = *puVar3 | 1;" (assignment_expression "*puVar3 = *puVar3 | 1" (pointer_expression "*puVar3" * identifier) = (binary_expression "*puVar3 | 1" (pointer_expression "*puVar3" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'I':" case (char_literal "'I'" ' character ') :) (case_statement "case 'L':" case (char_literal "'L'" ' character ') :) (case_statement "case 'i':" case (char_literal "'i'" ' character ') :) (case_statement "case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;" case (char_literal "'l'" ' character ') : (expression_statement "*puVar3 = *puVar3 | 2;" (assignment_expression "*puVar3 = *puVar3 | 2" (pointer_expression "*puVar3" * identifier) = (binary_expression "*puVar3 | 2" (pointer_expression "*puVar3" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'R':" case (char_literal "'R'" ' character ') :) (case_statement "case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;" case (char_literal "'r'" ' character ') : (expression_statement "*puVar3 = *puVar3 | 8;" (assignment_expression "*puVar3 = *puVar3 | 8" (pointer_expression "*puVar3" * identifier) = (binary_expression "*puVar3 | 8" (pointer_expression "*puVar3" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'W':" case (char_literal "'W'" ' character ') :) (case_statement "case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;" case (char_literal "'w'" ' character ') : (expression_statement "*puVar3 = *puVar3 | 0x20;" (assignment_expression "*puVar3 = *puVar3 | 0x20" (pointer_expression "*puVar3" * identifier) = (binary_expression "*puVar3 | 0x20" (pointer_expression "*puVar3" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'X':" case (char_literal "'X'" ' character ') :) (case_statement "case 'x':\n      *puVar3 = *puVar3 | 0x10;" case (char_literal "'x'" ' character ') : (expression_statement "*puVar3 = *puVar3 | 0x10;" (assignment_expression "*puVar3 = *puVar3 | 0x10" (pointer_expression "*puVar3" * identifier) = (binary_expression "*puVar3 | 0x10" (pointer_expression "*puVar3" * identifier) | number_literal)) ;)) })) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid lang_set_flags(lang_memory_region_type *ptr,char *flags,int invert)\n\n{\n  char cVar1;\n  char *fmt;\n  flagword *pfVar2;\n  \n  cVar1 = *flags;\n  pfVar2 = &ptr->not_flags;\n  if (invert == 0) {\n    pfVar2 = &ptr->flags;\n  }\n  while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (invert == 0) {\n        invert = 1;\n        pfVar2 = &ptr->not_flags;\n      }\n      else {\n        invert = 0;\n        pfVar2 = &ptr->flags;\n      }\n      break;\n    default:\n      fmt = (char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      einfo(fmt,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *pfVar2 = *pfVar2 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *pfVar2 = *pfVar2 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *pfVar2 = *pfVar2 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *pfVar2 = *pfVar2 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *pfVar2 = *pfVar2 | 0x10;\n    }\n    flags = flags + 1;\n    cVar1 = *flags;\n  }\n  return;\n}\n\n" comment (function_definition "void lang_set_flags(lang_memory_region_type *ptr,char *flags,int invert)\n\n{\n  char cVar1;\n  char *fmt;\n  flagword *pfVar2;\n  \n  cVar1 = *flags;\n  pfVar2 = &ptr->not_flags;\n  if (invert == 0) {\n    pfVar2 = &ptr->flags;\n  }\n  while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (invert == 0) {\n        invert = 1;\n        pfVar2 = &ptr->not_flags;\n      }\n      else {\n        invert = 0;\n        pfVar2 = &ptr->flags;\n      }\n      break;\n    default:\n      fmt = (char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      einfo(fmt,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *pfVar2 = *pfVar2 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *pfVar2 = *pfVar2 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *pfVar2 = *pfVar2 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *pfVar2 = *pfVar2 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *pfVar2 = *pfVar2 | 0x10;\n    }\n    flags = flags + 1;\n    cVar1 = *flags;\n  }\n  return;\n}" primitive_type (function_declarator "lang_set_flags(lang_memory_region_type *ptr,char *flags,int invert)" identifier (parameter_list "(lang_memory_region_type *ptr,char *flags,int invert)" ( (parameter_declaration "lang_memory_region_type *ptr" type_identifier (pointer_declarator "*ptr" * identifier)) , (parameter_declaration "char *flags" primitive_type (pointer_declarator "*flags" * identifier)) , (parameter_declaration "int invert" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char *fmt;\n  flagword *pfVar2;\n  \n  cVar1 = *flags;\n  pfVar2 = &ptr->not_flags;\n  if (invert == 0) {\n    pfVar2 = &ptr->flags;\n  }\n  while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (invert == 0) {\n        invert = 1;\n        pfVar2 = &ptr->not_flags;\n      }\n      else {\n        invert = 0;\n        pfVar2 = &ptr->flags;\n      }\n      break;\n    default:\n      fmt = (char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      einfo(fmt,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *pfVar2 = *pfVar2 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *pfVar2 = *pfVar2 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *pfVar2 = *pfVar2 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *pfVar2 = *pfVar2 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *pfVar2 = *pfVar2 | 0x10;\n    }\n    flags = flags + 1;\n    cVar1 = *flags;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (declaration "flagword *pfVar2;" type_identifier (pointer_declarator "*pfVar2" * identifier) ;) (expression_statement "cVar1 = *flags;" (assignment_expression "cVar1 = *flags" identifier = (pointer_expression "*flags" * identifier)) ;) (expression_statement "pfVar2 = &ptr->not_flags;" (assignment_expression "pfVar2 = &ptr->not_flags" identifier = (pointer_expression "&ptr->not_flags" & (field_expression "ptr->not_flags" identifier -> field_identifier))) ;) (if_statement "if (invert == 0) {\n    pfVar2 = &ptr->flags;\n  }" if (parenthesized_expression "(invert == 0)" ( (binary_expression "invert == 0" identifier == number_literal) )) (compound_statement "{\n    pfVar2 = &ptr->flags;\n  }" { (expression_statement "pfVar2 = &ptr->flags;" (assignment_expression "pfVar2 = &ptr->flags" identifier = (pointer_expression "&ptr->flags" & (field_expression "ptr->flags" identifier -> field_identifier))) ;) })) (while_statement "while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (invert == 0) {\n        invert = 1;\n        pfVar2 = &ptr->not_flags;\n      }\n      else {\n        invert = 0;\n        pfVar2 = &ptr->flags;\n      }\n      break;\n    default:\n      fmt = (char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      einfo(fmt,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *pfVar2 = *pfVar2 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *pfVar2 = *pfVar2 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *pfVar2 = *pfVar2 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *pfVar2 = *pfVar2 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *pfVar2 = *pfVar2 | 0x10;\n    }\n    flags = flags + 1;\n    cVar1 = *flags;\n  }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    switch(cVar1) {\n    case '!':\n      if (invert == 0) {\n        invert = 1;\n        pfVar2 = &ptr->not_flags;\n      }\n      else {\n        invert = 0;\n        pfVar2 = &ptr->flags;\n      }\n      break;\n    default:\n      fmt = (char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      einfo(fmt,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *pfVar2 = *pfVar2 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *pfVar2 = *pfVar2 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *pfVar2 = *pfVar2 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *pfVar2 = *pfVar2 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *pfVar2 = *pfVar2 | 0x10;\n    }\n    flags = flags + 1;\n    cVar1 = *flags;\n  }" { (switch_statement "switch(cVar1) {\n    case '!':\n      if (invert == 0) {\n        invert = 1;\n        pfVar2 = &ptr->not_flags;\n      }\n      else {\n        invert = 0;\n        pfVar2 = &ptr->flags;\n      }\n      break;\n    default:\n      fmt = (char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      einfo(fmt,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *pfVar2 = *pfVar2 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *pfVar2 = *pfVar2 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *pfVar2 = *pfVar2 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *pfVar2 = *pfVar2 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *pfVar2 = *pfVar2 | 0x10;\n    }" switch (parenthesized_expression "(cVar1)" ( identifier )) (compound_statement "{\n    case '!':\n      if (invert == 0) {\n        invert = 1;\n        pfVar2 = &ptr->not_flags;\n      }\n      else {\n        invert = 0;\n        pfVar2 = &ptr->flags;\n      }\n      break;\n    default:\n      fmt = (char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      einfo(fmt,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *pfVar2 = *pfVar2 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *pfVar2 = *pfVar2 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *pfVar2 = *pfVar2 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *pfVar2 = *pfVar2 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *pfVar2 = *pfVar2 | 0x10;\n    }" { (case_statement "case '!':\n      if (invert == 0) {\n        invert = 1;\n        pfVar2 = &ptr->not_flags;\n      }\n      else {\n        invert = 0;\n        pfVar2 = &ptr->flags;\n      }\n      break;" case (char_literal "'!'" ' character ') : (if_statement "if (invert == 0) {\n        invert = 1;\n        pfVar2 = &ptr->not_flags;\n      }\n      else {\n        invert = 0;\n        pfVar2 = &ptr->flags;\n      }" if (parenthesized_expression "(invert == 0)" ( (binary_expression "invert == 0" identifier == number_literal) )) (compound_statement "{\n        invert = 1;\n        pfVar2 = &ptr->not_flags;\n      }" { (expression_statement "invert = 1;" (assignment_expression "invert = 1" identifier = number_literal) ;) (expression_statement "pfVar2 = &ptr->not_flags;" (assignment_expression "pfVar2 = &ptr->not_flags" identifier = (pointer_expression "&ptr->not_flags" & (field_expression "ptr->not_flags" identifier -> field_identifier))) ;) }) (else_clause "else {\n        invert = 0;\n        pfVar2 = &ptr->flags;\n      }" else (compound_statement "{\n        invert = 0;\n        pfVar2 = &ptr->flags;\n      }" { (expression_statement "invert = 0;" (assignment_expression "invert = 0" identifier = number_literal) ;) (expression_statement "pfVar2 = &ptr->flags;" (assignment_expression "pfVar2 = &ptr->flags" identifier = (pointer_expression "&ptr->flags" & (field_expression "ptr->flags" identifier -> field_identifier))) ;) }))) (break_statement "break;" break ;)) (case_statement "default:\n      fmt = (char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      einfo(fmt,(int)cVar1,(int)cVar1);\n      break;" default : (expression_statement "fmt = (char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5)" identifier (argument_list "(0,"%F%P: invalid character %c (%d) in flags\n",5)" ( number_literal , (string_literal ""%F%P: invalid character %c (%d) in flags\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(fmt,(int)cVar1,(int)cVar1);" (call_expression "einfo(fmt,(int)cVar1,(int)cVar1)" identifier (argument_list "(fmt,(int)cVar1,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (break_statement "break;" break ;)) (case_statement "case 'A':" case (char_literal "'A'" ' character ') :) (case_statement "case 'a':\n      *pfVar2 = *pfVar2 | 1;\n      break;" case (char_literal "'a'" ' character ') : (expression_statement "*pfVar2 = *pfVar2 | 1;" (assignment_expression "*pfVar2 = *pfVar2 | 1" (pointer_expression "*pfVar2" * identifier) = (binary_expression "*pfVar2 | 1" (pointer_expression "*pfVar2" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'I':" case (char_literal "'I'" ' character ') :) (case_statement "case 'L':" case (char_literal "'L'" ' character ') :) (case_statement "case 'i':" case (char_literal "'i'" ' character ') :) (case_statement "case 'l':\n      *pfVar2 = *pfVar2 | 2;\n      break;" case (char_literal "'l'" ' character ') : (expression_statement "*pfVar2 = *pfVar2 | 2;" (assignment_expression "*pfVar2 = *pfVar2 | 2" (pointer_expression "*pfVar2" * identifier) = (binary_expression "*pfVar2 | 2" (pointer_expression "*pfVar2" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'R':" case (char_literal "'R'" ' character ') :) (case_statement "case 'r':\n      *pfVar2 = *pfVar2 | 8;\n      break;" case (char_literal "'r'" ' character ') : (expression_statement "*pfVar2 = *pfVar2 | 8;" (assignment_expression "*pfVar2 = *pfVar2 | 8" (pointer_expression "*pfVar2" * identifier) = (binary_expression "*pfVar2 | 8" (pointer_expression "*pfVar2" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'W':" case (char_literal "'W'" ' character ') :) (case_statement "case 'w':\n      *pfVar2 = *pfVar2 | 0x20;\n      break;" case (char_literal "'w'" ' character ') : (expression_statement "*pfVar2 = *pfVar2 | 0x20;" (assignment_expression "*pfVar2 = *pfVar2 | 0x20" (pointer_expression "*pfVar2" * identifier) = (binary_expression "*pfVar2 | 0x20" (pointer_expression "*pfVar2" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'X':" case (char_literal "'X'" ' character ') :) (case_statement "case 'x':\n      *pfVar2 = *pfVar2 | 0x10;" case (char_literal "'x'" ' character ') : (expression_statement "*pfVar2 = *pfVar2 | 0x10;" (assignment_expression "*pfVar2 = *pfVar2 | 0x10" (pointer_expression "*pfVar2" * identifier) = (binary_expression "*pfVar2 | 0x10" (pointer_expression "*pfVar2" * identifier) | number_literal)) ;)) })) (expression_statement "flags = flags + 1;" (assignment_expression "flags = flags + 1" identifier = (binary_expression "flags + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *flags;" (assignment_expression "cVar1 = *flags" identifier = (pointer_expression "*flags" * identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00027520(int param_1,char *param_2,int param_3)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  \n  cVar1 = *param_2;\n  puVar3 = (uint *)(param_1 + 0x34);\n  if (param_3 == 0) {\n    puVar3 = (uint *)(param_1 + 0x30);\n  }\n  while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00027520(int param_1,char *param_2,int param_3)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  \n  cVar1 = *param_2;\n  puVar3 = (uint *)(param_1 + 0x34);\n  if (param_3 == 0) {\n    puVar3 = (uint *)(param_1 + 0x30);\n  }\n  while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00027520(int param_1,char *param_2,int param_3)" identifier (parameter_list "(int param_1,char *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  \n  cVar1 = *param_2;\n  puVar3 = (uint *)(param_1 + 0x34);\n  if (param_3 == 0) {\n    puVar3 = (uint *)(param_1 + 0x30);\n  }\n  while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar3 = (uint *)(param_1 + 0x34);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x34)" identifier = (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) ;) (if_statement "if (param_3 == 0) {\n    puVar3 = (uint *)(param_1 + 0x30);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar3 = (uint *)(param_1 + 0x30);\n  }" { (expression_statement "puVar3 = (uint *)(param_1 + 0x30);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x30)" identifier = (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) ;) })) (while_statement "while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }" { (switch_statement "switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }" switch (parenthesized_expression "(cVar1)" ( identifier )) (compound_statement "{\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }" { (case_statement "case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;" case (char_literal "'!'" ' character ') : (if_statement "if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }" { (expression_statement "param_3 = 1;" (assignment_expression "param_3 = 1" identifier = number_literal) ;) (expression_statement "puVar3 = (uint *)(param_1 + 0x34);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x34)" identifier = (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) ;) }) (else_clause "else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }" else (compound_statement "{\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }" { (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = (uint *)(param_1 + 0x30);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x30)" identifier = (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) ;) }))) (break_statement "break;" break ;)) (case_statement "default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;" default : (expression_statement "uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5)" identifier (argument_list "(0,"%F%P: invalid character %c (%d) in flags\n",5)" ( number_literal , (string_literal ""%F%P: invalid character %c (%d) in flags\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);" (call_expression "FUN_00034d20(uVar2,(int)cVar1,(int)cVar1)" identifier (argument_list "(uVar2,(int)cVar1,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (break_statement "break;" break ;)) (case_statement "case 'A':" case (char_literal "'A'" ' character ') :) (case_statement "case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;" case (char_literal "'a'" ' character ') : (expression_statement "*puVar3 = *puVar3 | 1;" (assignment_expression "*puVar3 = *puVar3 | 1" (pointer_expression "*puVar3" * identifier) = (binary_expression "*puVar3 | 1" (pointer_expression "*puVar3" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'I':" case (char_literal "'I'" ' character ') :) (case_statement "case 'L':" case (char_literal "'L'" ' character ') :) (case_statement "case 'i':" case (char_literal "'i'" ' character ') :) (case_statement "case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;" case (char_literal "'l'" ' character ') : (expression_statement "*puVar3 = *puVar3 | 2;" (assignment_expression "*puVar3 = *puVar3 | 2" (pointer_expression "*puVar3" * identifier) = (binary_expression "*puVar3 | 2" (pointer_expression "*puVar3" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'R':" case (char_literal "'R'" ' character ') :) (case_statement "case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;" case (char_literal "'r'" ' character ') : (expression_statement "*puVar3 = *puVar3 | 8;" (assignment_expression "*puVar3 = *puVar3 | 8" (pointer_expression "*puVar3" * identifier) = (binary_expression "*puVar3 | 8" (pointer_expression "*puVar3" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'W':" case (char_literal "'W'" ' character ') :) (case_statement "case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;" case (char_literal "'w'" ' character ') : (expression_statement "*puVar3 = *puVar3 | 0x20;" (assignment_expression "*puVar3 = *puVar3 | 0x20" (pointer_expression "*puVar3" * identifier) = (binary_expression "*puVar3 | 0x20" (pointer_expression "*puVar3" * identifier) | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 'X':" case (char_literal "'X'" ' character ') :) (case_statement "case 'x':\n      *puVar3 = *puVar3 | 0x10;" case (char_literal "'x'" ' character ') : (expression_statement "*puVar3 = *puVar3 | 0x10;" (assignment_expression "*puVar3 = *puVar3 | 0x10" (pointer_expression "*puVar3" * identifier) = (binary_expression "*puVar3 | 0x10" (pointer_expression "*puVar3" * identifier) | number_literal)) ;)) })) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }))) (break_statement break ;)) (case_statement default : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (break_statement break ;)) (case_statement case (char_literal ' character ') :) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (break_statement break ;)) (case_statement case (char_literal ' character ') :) (case_statement case (char_literal ' character ') :) (case_statement case (char_literal ' character ') :) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (break_statement break ;)) (case_statement case (char_literal ' character ') :) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (break_statement break ;)) (case_statement case (char_literal ' character ') :) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (break_statement break ;)) (case_statement case (char_literal ' character ') :) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00027520(int param_1,char *param_2,int param_3)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  \n  cVar1 = *param_2;\n  puVar3 = (uint *)(param_1 + 0x34);\n  if (param_3 == 0) {\n    puVar3 = (uint *)(param_1 + 0x30);\n  }\n  while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00027520(int param_1,char *param_2,int param_3)" (identifier "FUN_00027520") (parameter_list "(int param_1,char *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  \n  cVar1 = *param_2;\n  puVar3 = (uint *)(param_1 + 0x34);\n  if (param_3 == 0) {\n    puVar3 = (uint *)(param_1 + 0x30);\n  }\n  while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" (identifier "cVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "puVar3 = (uint *)(param_1 + 0x34);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x34)" (identifier "puVar3") (= "=") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (; ";")) (if_statement "if (param_3 == 0) {\n    puVar3 = (uint *)(param_1 + 0x30);\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar3 = (uint *)(param_1 + 0x30);\n  }" ({ "{") (expression_statement "puVar3 = (uint *)(param_1 + 0x30);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x30)" (identifier "puVar3") (= "=") (cast_expression "(uint *)(param_1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (; ";")) (} "}"))) (while_statement "while (cVar1 != '\0') {\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }" (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }\n    param_2 = param_2 + 1;\n    cVar1 = *param_2;\n  }" ({ "{") (switch_statement "switch(cVar1) {\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }" (switch "switch") (parenthesized_expression "(cVar1)" (( "(") (identifier "cVar1") () ")")) (compound_statement "{\n    case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;\n    default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;\n    case 'A':\n    case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;\n    case 'I':\n    case 'L':\n    case 'i':\n    case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;\n    case 'R':\n    case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;\n    case 'W':\n    case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;\n    case 'X':\n    case 'x':\n      *puVar3 = *puVar3 | 0x10;\n    }" ({ "{") (case_statement "case '!':\n      if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }\n      break;" (case "case") (char_literal "'!'" (' "'") (character "!") (' "'")) (: ":") (if_statement "if (param_3 == 0) {\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }\n      else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        param_3 = 1;\n        puVar3 = (uint *)(param_1 + 0x34);\n      }" ({ "{") (expression_statement "param_3 = 1;" (assignment_expression "param_3 = 1" (identifier "param_3") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar3 = (uint *)(param_1 + 0x34);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x34)" (identifier "puVar3") (= "=") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }" (else "else") (compound_statement "{\n        param_3 = 0;\n        puVar3 = (uint *)(param_1 + 0x30);\n      }" ({ "{") (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" (identifier "param_3") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = (uint *)(param_1 + 0x30);" (assignment_expression "puVar3 = (uint *)(param_1 + 0x30)" (identifier "puVar3") (= "=") (cast_expression "(uint *)(param_1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (; ";")) (} "}")))) (break_statement "break;" (break "break") (; ";"))) (case_statement "default:\n      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);\n      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);\n      break;" (default "default") (: ":") (expression_statement "uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: invalid character %c (%d) in flags\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: invalid character %c (%d) in flags\n"" (" """) (string_content "%F%P: invalid character %c (%d) in flags") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);" (call_expression "FUN_00034d20(uVar2,(int)cVar1,(int)cVar1)" (identifier "FUN_00034d20") (argument_list "(uVar2,(int)cVar1,(int)cVar1)" (( "(") (identifier "uVar2") (, ",") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")) (, ",") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")) () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'A':" (case "case") (char_literal "'A'" (' "'") (character "A") (' "'")) (: ":")) (case_statement "case 'a':\n      *puVar3 = *puVar3 | 1;\n      break;" (case "case") (char_literal "'a'" (' "'") (character "a") (' "'")) (: ":") (expression_statement "*puVar3 = *puVar3 | 1;" (assignment_expression "*puVar3 = *puVar3 | 1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (binary_expression "*puVar3 | 1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (| "|") (number_literal "1"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'I':" (case "case") (char_literal "'I'" (' "'") (character "I") (' "'")) (: ":")) (case_statement "case 'L':" (case "case") (char_literal "'L'" (' "'") (character "L") (' "'")) (: ":")) (case_statement "case 'i':" (case "case") (char_literal "'i'" (' "'") (character "i") (' "'")) (: ":")) (case_statement "case 'l':\n      *puVar3 = *puVar3 | 2;\n      break;" (case "case") (char_literal "'l'" (' "'") (character "l") (' "'")) (: ":") (expression_statement "*puVar3 = *puVar3 | 2;" (assignment_expression "*puVar3 = *puVar3 | 2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (binary_expression "*puVar3 | 2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (| "|") (number_literal "2"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'R':" (case "case") (char_literal "'R'" (' "'") (character "R") (' "'")) (: ":")) (case_statement "case 'r':\n      *puVar3 = *puVar3 | 8;\n      break;" (case "case") (char_literal "'r'" (' "'") (character "r") (' "'")) (: ":") (expression_statement "*puVar3 = *puVar3 | 8;" (assignment_expression "*puVar3 = *puVar3 | 8" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (binary_expression "*puVar3 | 8" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (| "|") (number_literal "8"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'W':" (case "case") (char_literal "'W'" (' "'") (character "W") (' "'")) (: ":")) (case_statement "case 'w':\n      *puVar3 = *puVar3 | 0x20;\n      break;" (case "case") (char_literal "'w'" (' "'") (character "w") (' "'")) (: ":") (expression_statement "*puVar3 = *puVar3 | 0x20;" (assignment_expression "*puVar3 = *puVar3 | 0x20" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (binary_expression "*puVar3 | 0x20" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (| "|") (number_literal "0x20"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'X':" (case "case") (char_literal "'X'" (' "'") (character "X") (' "'")) (: ":")) (case_statement "case 'x':\n      *puVar3 = *puVar3 | 0x10;" (case "case") (char_literal "'x'" (' "'") (character "x") (' "'")) (: ":") (expression_statement "*puVar3 = *puVar3 | 0x10;" (assignment_expression "*puVar3 = *puVar3 | 0x10" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (binary_expression "*puVar3 | 0x10" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (| "|") (number_literal "0x10"))) (; ";"))) (} "}"))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" (identifier "cVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *ptr,char *var_5,int var_1)

{
  char var_2;
  char *fmt;
  type_2 *pfVar2;
  
  var_2 = *var_5;
  pfVar2 = &ptr->not_flags;
  if (var_1 == 0) {
    pfVar2 = &ptr->var_5;
  }
  while (var_2 != '\0') {
    switch(var_2) {
    case '!':
      if (var_1 == 0) {
        var_1 = 1;
        pfVar2 = &ptr->not_flags;
      }
      else {
        var_1 = 0;
        pfVar2 = &ptr->var_5;
      }
      break;
    default:
      fmt = (char *)var_3(0,"%F%P: invalid character %c (%d) in flags\n",5);
      var_4(fmt,(int)var_2,(int)var_2);
      break;
    case 'A':
    case 'a':
      *pfVar2 = *pfVar2 | 1;
      break;
    case 'I':
    case 'L':
    case 'i':
    case 'l':
      *pfVar2 = *pfVar2 | 2;
      break;
    case 'R':
    case 'r':
      *pfVar2 = *pfVar2 | 8;
      break;
    case 'W':
    case 'w':
      *pfVar2 = *pfVar2 | 0x20;
      break;
    case 'X':
    case 'x':
      *pfVar2 = *pfVar2 | 0x10;
    }
    var_5 = var_5 + 1;
    var_2 = *var_5;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (switch_statement condition: (parenthesized_expression (identifier)) body: (compound_statement (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (break_statement)) (case_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (break_statement)) (case_statement value: (char_literal (character))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (break_statement)) (case_statement value: (char_literal (character))) (case_statement value: (char_literal (character))) (case_statement value: (char_literal (character))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (break_statement)) (case_statement value: (char_literal (character))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (break_statement)) (case_statement value: (char_literal (character))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (break_statement)) (case_statement value: (char_literal (character))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (return_statement))))

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

void MASKED(int param_1,char *param_2,int param_3)

{
  char cVar1;
  undefined4 uVar2;
  uint *puVar3;
  
  cVar1 = *param_2;
  puVar3 = (uint *)(param_1 + 0x34);
  if (param_3 == 0) {
    puVar3 = (uint *)(param_1 + 0x30);
  }
  while (cVar1 != '\0') {
    switch(cVar1) {
    case '!':
      if (param_3 == 0) {
        param_3 = 1;
        puVar3 = (uint *)(param_1 + 0x34);
      }
      else {
        param_3 = 0;
        puVar3 = (uint *)(param_1 + 0x30);
      }
      break;
    default:
      uVar2 = dcgettext(0,"%F%P: invalid character %c (%d) in flags\n",5);
      FUN_00034d20(uVar2,(int)cVar1,(int)cVar1);
      break;
    case 'A':
    case 'a':
      *puVar3 = *puVar3 | 1;
      break;
    case 'I':
    case 'L':
    case 'i':
    case 'l':
      *puVar3 = *puVar3 | 2;
      break;
    case 'R':
    case 'r':
      *puVar3 = *puVar3 | 8;
      break;
    case 'W':
    case 'w':
      *puVar3 = *puVar3 | 0x20;
      break;
    case 'X':
    case 'x':
      *puVar3 = *puVar3 | 0x10;
    }
    param_2 = param_2 + 1;
    cVar1 = *param_2;
  }
  return;
}

