
int print_flags_separated(int *masks,char *labels,int flags,char *separator)

{
  int iVar1;
  char *pcVar2;
  char *pcVar3;
  undefined *puVar4;
  
  if (*labels != '\0') {
    pcVar2 = (char *)0x0;
    puVar4 = PTR_UINT_0012a18c + -0x594;
    pcVar3 = PTR_UINT_0012a18c + 0x578c;
    do {
      if ((flags & *masks) != 0) {
        if (pcVar2 == (char *)0x0) {
          pcVar2 = pcVar3;
        }
        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels);
        flags = flags & ~*masks;
        pcVar2 = separator;
      }
      masks = (int *)((uint *)masks + 1);
      iVar1 = (*(code *)PTR_strlen_0012af3c)(labels);
      labels = labels + iVar1 + 1;
    } while (*labels != '\0');
  }
  return flags;
}



uint FUN_000f3708(uint *param_1,char *param_2,uint param_3,undefined *param_4)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  
  if (*param_2 != '\0') {
    puVar2 = (undefined *)0x0;
    puVar4 = PTR_UINT_0012a18c + -0x594;
    puVar3 = PTR_UINT_0012a18c + 0x578c;
    do {
      if ((param_3 & *param_1) != 0) {
        if (puVar2 == (undefined *)0x0) {
          puVar2 = puVar3;
        }
        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);
        param_3 = param_3 & ~*param_1;
        puVar2 = param_4;
      }
      param_1 = param_1 + 1;
      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);
      param_2 = param_2 + iVar1 + 1;
    } while (*param_2 != '\0');
  }
  return param_3;
}


lui gp,0x4
addiu gp,gp,-0x15b8
addu gp,gp,t9
addiu sp,sp,-0x38
sw s2,0x20(sp)
sw gp,0x10(sp)
sw ra,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
lbu v0,0x0(a1)
beq v0,zero,0x000f37c8
_or s2,a2,zero
lw s5,-0x7fc4(gp)
or s1,zero,zero
lw s4,-0x7fc4(gp)
or s0,a1,zero
or s3,a0,zero
addiu s5,s5,-0x594
addiu s4,s4,0x578c
or s6,a3,zero
lw v0,0x0(s3)
and v0,s2,v0
beq v0,zero,0x000f37a4
_li a0,0x1
movz s1,s4,s1
or a3,s0,zero
lw t9,-0x7320(gp)
or a1,s5,zero
jalr t9
_or a2,s1,zero
or s1,s6,zero
lw v0,0x0(s3)
lw gp,0x10(sp)
nor v0,zero,v0
and s2,s2,v0
lw t9,-0x7214(gp)
or a0,s0,zero
jalr t9
_addiu s3,s3,0x4
addiu v0,v0,0x1
addu s0,s0,v0
lbu v0,0x0(s0)
bne v0,zero,0x000f3768
_lw gp,0x10(sp)
lw ra,0x34(sp)
or v0,s2,zero
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "uint FUN_000f3708(uint *param_1,char *param_2,uint param_3,undefined *param_4)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  \n  if (*param_2 != '\0') {\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }\n  return param_3;\n}\n\n" (function_definition "uint FUN_000f3708(uint *param_1,char *param_2,uint param_3,undefined *param_4)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  \n  if (*param_2 != '\0') {\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }\n  return param_3;\n}" type_identifier (function_declarator "FUN_000f3708(uint *param_1,char *param_2,uint param_3,undefined *param_4)" identifier (parameter_list "(uint *param_1,char *param_2,uint param_3,undefined *param_4)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  \n  if (*param_2 != '\0') {\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }\n  return param_3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (*param_2 != '\0') {\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }" if (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }" { (expression_statement "puVar2 = (undefined *)0x0;" (assignment_expression "puVar2 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar4 = PTR_UINT_0012a18c + -0x594;" (assignment_expression "puVar4 = PTR_UINT_0012a18c + -0x594" identifier = (binary_expression "PTR_UINT_0012a18c + -0x594" identifier + number_literal)) ;) (expression_statement "puVar3 = PTR_UINT_0012a18c + 0x578c;" (assignment_expression "puVar3 = PTR_UINT_0012a18c + 0x578c" identifier = (binary_expression "PTR_UINT_0012a18c + 0x578c" identifier + number_literal)) ;) (do_statement "do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');" do (compound_statement "{\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    }" { (if_statement "if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }" if (parenthesized_expression "((param_3 & *param_1) != 0)" ( (binary_expression "(param_3 & *param_1) != 0" (parenthesized_expression "(param_3 & *param_1)" ( (binary_expression "param_3 & *param_1" identifier & (pointer_expression "*param_1" * identifier)) )) != number_literal) )) (compound_statement "{\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }" { (if_statement "if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }" if (parenthesized_expression "(puVar2 == (undefined *)0x0)" ( (binary_expression "puVar2 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          puVar2 = puVar3;\n        }" { (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);" (call_expression "(*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" ( (pointer_expression "*(code *)PTR___printf_chk_0012ae30" * (cast_expression "(code *)PTR___printf_chk_0012ae30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar4,puVar2,param_2)" ( number_literal , identifier , identifier , identifier ))) ;) (expression_statement "param_3 = param_3 & ~*param_1;" (assignment_expression "param_3 = param_3 & ~*param_1" identifier = (binary_expression "param_3 & ~*param_1" identifier & (unary_expression "~*param_1" ~ (pointer_expression "*param_1" * identifier)))) ;) (expression_statement "puVar2 = param_4;" (assignment_expression "puVar2 = param_4" identifier = identifier) ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "param_2 = param_2 + iVar1 + 1;" (assignment_expression "param_2 = param_2 + iVar1 + 1" identifier = (binary_expression "param_2 + iVar1 + 1" (binary_expression "param_2 + iVar1" identifier + identifier) + number_literal)) ;) }) while (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit "int print_flags_separated(int *masks,char *labels,int flags,char *separator)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  \n  if (*labels != '\0') {\n    pcVar2 = (char *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    pcVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((flags & *masks) != 0) {\n        if (pcVar2 == (char *)0x0) {\n          pcVar2 = pcVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels);\n        flags = flags & ~*masks;\n        pcVar2 = separator;\n      }\n      masks = (int *)((uint *)masks + 1);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(labels);\n      labels = labels + iVar1 + 1;\n    } while (*labels != '\0');\n  }\n  return flags;\n}\n\n" (function_definition "int print_flags_separated(int *masks,char *labels,int flags,char *separator)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  \n  if (*labels != '\0') {\n    pcVar2 = (char *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    pcVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((flags & *masks) != 0) {\n        if (pcVar2 == (char *)0x0) {\n          pcVar2 = pcVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels);\n        flags = flags & ~*masks;\n        pcVar2 = separator;\n      }\n      masks = (int *)((uint *)masks + 1);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(labels);\n      labels = labels + iVar1 + 1;\n    } while (*labels != '\0');\n  }\n  return flags;\n}" primitive_type (function_declarator "print_flags_separated(int *masks,char *labels,int flags,char *separator)" identifier (parameter_list "(int *masks,char *labels,int flags,char *separator)" ( (parameter_declaration "int *masks" primitive_type (pointer_declarator "*masks" * identifier)) , (parameter_declaration "char *labels" primitive_type (pointer_declarator "*labels" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) , (parameter_declaration "char *separator" primitive_type (pointer_declarator "*separator" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  \n  if (*labels != '\0') {\n    pcVar2 = (char *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    pcVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((flags & *masks) != 0) {\n        if (pcVar2 == (char *)0x0) {\n          pcVar2 = pcVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels);\n        flags = flags & ~*masks;\n        pcVar2 = separator;\n      }\n      masks = (int *)((uint *)masks + 1);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(labels);\n      labels = labels + iVar1 + 1;\n    } while (*labels != '\0');\n  }\n  return flags;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (*labels != '\0') {\n    pcVar2 = (char *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    pcVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((flags & *masks) != 0) {\n        if (pcVar2 == (char *)0x0) {\n          pcVar2 = pcVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels);\n        flags = flags & ~*masks;\n        pcVar2 = separator;\n      }\n      masks = (int *)((uint *)masks + 1);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(labels);\n      labels = labels + iVar1 + 1;\n    } while (*labels != '\0');\n  }" if (parenthesized_expression "(*labels != '\0')" ( (binary_expression "*labels != '\0'" (pointer_expression "*labels" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar2 = (char *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    pcVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((flags & *masks) != 0) {\n        if (pcVar2 == (char *)0x0) {\n          pcVar2 = pcVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels);\n        flags = flags & ~*masks;\n        pcVar2 = separator;\n      }\n      masks = (int *)((uint *)masks + 1);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(labels);\n      labels = labels + iVar1 + 1;\n    } while (*labels != '\0');\n  }" { (expression_statement "pcVar2 = (char *)0x0;" (assignment_expression "pcVar2 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar4 = PTR_UINT_0012a18c + -0x594;" (assignment_expression "puVar4 = PTR_UINT_0012a18c + -0x594" identifier = (binary_expression "PTR_UINT_0012a18c + -0x594" identifier + number_literal)) ;) (expression_statement "pcVar3 = PTR_UINT_0012a18c + 0x578c;" (assignment_expression "pcVar3 = PTR_UINT_0012a18c + 0x578c" identifier = (binary_expression "PTR_UINT_0012a18c + 0x578c" identifier + number_literal)) ;) (do_statement "do {\n      if ((flags & *masks) != 0) {\n        if (pcVar2 == (char *)0x0) {\n          pcVar2 = pcVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels);\n        flags = flags & ~*masks;\n        pcVar2 = separator;\n      }\n      masks = (int *)((uint *)masks + 1);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(labels);\n      labels = labels + iVar1 + 1;\n    } while (*labels != '\0');" do (compound_statement "{\n      if ((flags & *masks) != 0) {\n        if (pcVar2 == (char *)0x0) {\n          pcVar2 = pcVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels);\n        flags = flags & ~*masks;\n        pcVar2 = separator;\n      }\n      masks = (int *)((uint *)masks + 1);\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(labels);\n      labels = labels + iVar1 + 1;\n    }" { (if_statement "if ((flags & *masks) != 0) {\n        if (pcVar2 == (char *)0x0) {\n          pcVar2 = pcVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels);\n        flags = flags & ~*masks;\n        pcVar2 = separator;\n      }" if (parenthesized_expression "((flags & *masks) != 0)" ( (binary_expression "(flags & *masks) != 0" (parenthesized_expression "(flags & *masks)" ( (binary_expression "flags & *masks" identifier & (pointer_expression "*masks" * identifier)) )) != number_literal) )) (compound_statement "{\n        if (pcVar2 == (char *)0x0) {\n          pcVar2 = pcVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels);\n        flags = flags & ~*masks;\n        pcVar2 = separator;\n      }" { (if_statement "if (pcVar2 == (char *)0x0) {\n          pcVar2 = pcVar3;\n        }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar2 = pcVar3;\n        }" { (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels);" (call_expression "(*(code *)PTR___printf_chk_0012ae30)(1,puVar4,pcVar2,labels)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" ( (pointer_expression "*(code *)PTR___printf_chk_0012ae30" * (cast_expression "(code *)PTR___printf_chk_0012ae30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar4,pcVar2,labels)" ( number_literal , identifier , identifier , identifier ))) ;) (expression_statement "flags = flags & ~*masks;" (assignment_expression "flags = flags & ~*masks" identifier = (binary_expression "flags & ~*masks" identifier & (unary_expression "~*masks" ~ (pointer_expression "*masks" * identifier)))) ;) (expression_statement "pcVar2 = separator;" (assignment_expression "pcVar2 = separator" identifier = identifier) ;) })) (expression_statement "masks = (int *)((uint *)masks + 1);" (assignment_expression "masks = (int *)((uint *)masks + 1)" identifier = (cast_expression "(int *)((uint *)masks + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint *)masks + 1)" ( (binary_expression "(uint *)masks + 1" (cast_expression "(uint *)masks" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)(labels);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)(labels)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(labels)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(labels)" ( identifier )))) ;) (expression_statement "labels = labels + iVar1 + 1;" (assignment_expression "labels = labels + iVar1 + 1" identifier = (binary_expression "labels + iVar1 + 1" (binary_expression "labels + iVar1" identifier + identifier) + number_literal)) ;) }) while (parenthesized_expression "(*labels != '\0')" ( (binary_expression "*labels != '\0'" (pointer_expression "*labels" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (return_statement "return flags;" return identifier ;) })))
(translation_unit "uint FUN_000f3708(uint *param_1,char *param_2,uint param_3,undefined *param_4)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  \n  if (*param_2 != '\0') {\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }\n  return param_3;\n}\n\n" (function_definition "uint FUN_000f3708(uint *param_1,char *param_2,uint param_3,undefined *param_4)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  \n  if (*param_2 != '\0') {\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }\n  return param_3;\n}" type_identifier (function_declarator "FUN_000f3708(uint *param_1,char *param_2,uint param_3,undefined *param_4)" identifier (parameter_list "(uint *param_1,char *param_2,uint param_3,undefined *param_4)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  \n  if (*param_2 != '\0') {\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }\n  return param_3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (*param_2 != '\0') {\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }" if (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }" { (expression_statement "puVar2 = (undefined *)0x0;" (assignment_expression "puVar2 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar4 = PTR_UINT_0012a18c + -0x594;" (assignment_expression "puVar4 = PTR_UINT_0012a18c + -0x594" identifier = (binary_expression "PTR_UINT_0012a18c + -0x594" identifier + number_literal)) ;) (expression_statement "puVar3 = PTR_UINT_0012a18c + 0x578c;" (assignment_expression "puVar3 = PTR_UINT_0012a18c + 0x578c" identifier = (binary_expression "PTR_UINT_0012a18c + 0x578c" identifier + number_literal)) ;) (do_statement "do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');" do (compound_statement "{\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    }" { (if_statement "if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }" if (parenthesized_expression "((param_3 & *param_1) != 0)" ( (binary_expression "(param_3 & *param_1) != 0" (parenthesized_expression "(param_3 & *param_1)" ( (binary_expression "param_3 & *param_1" identifier & (pointer_expression "*param_1" * identifier)) )) != number_literal) )) (compound_statement "{\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }" { (if_statement "if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }" if (parenthesized_expression "(puVar2 == (undefined *)0x0)" ( (binary_expression "puVar2 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          puVar2 = puVar3;\n        }" { (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);" (call_expression "(*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" ( (pointer_expression "*(code *)PTR___printf_chk_0012ae30" * (cast_expression "(code *)PTR___printf_chk_0012ae30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar4,puVar2,param_2)" ( number_literal , identifier , identifier , identifier ))) ;) (expression_statement "param_3 = param_3 & ~*param_1;" (assignment_expression "param_3 = param_3 & ~*param_1" identifier = (binary_expression "param_3 & ~*param_1" identifier & (unary_expression "~*param_1" ~ (pointer_expression "*param_1" * identifier)))) ;) (expression_statement "puVar2 = param_4;" (assignment_expression "puVar2 = param_4" identifier = identifier) ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "param_2 = param_2 + iVar1 + 1;" (assignment_expression "param_2 = param_2 + iVar1 + 1" identifier = (binary_expression "param_2 + iVar1 + 1" (binary_expression "param_2 + iVar1" identifier + identifier) + number_literal)) ;) }) while (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & (pointer_expression * IDENT)) )) != 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 IDENT = IDENT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & (unary_expression ~ (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_000f3708(uint *param_1,char *param_2,uint param_3,undefined *param_4)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  \n  if (*param_2 != '\0') {\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }\n  return param_3;\n}" (type_identifier "uint") (function_declarator "FUN_000f3708(uint *param_1,char *param_2,uint param_3,undefined *param_4)" (identifier "FUN_000f3708") (parameter_list "(uint *param_1,char *param_2,uint param_3,undefined *param_4)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "undefined *param_4" (type_identifier "undefined") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  \n  if (*param_2 != '\0') {\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }\n  return param_3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (if_statement "if (*param_2 != '\0') {\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }" (if "if") (parenthesized_expression "(*param_2 != '\0')" (( "(") (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    puVar2 = (undefined *)0x0;\n    puVar4 = PTR_UINT_0012a18c + -0x594;\n    puVar3 = PTR_UINT_0012a18c + 0x578c;\n    do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');\n  }" ({ "{") (expression_statement "puVar2 = (undefined *)0x0;" (assignment_expression "puVar2 = (undefined *)0x0" (identifier "puVar2") (= "=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "puVar4 = PTR_UINT_0012a18c + -0x594;" (assignment_expression "puVar4 = PTR_UINT_0012a18c + -0x594" (identifier "puVar4") (= "=") (binary_expression "PTR_UINT_0012a18c + -0x594" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "-0x594"))) (; ";")) (expression_statement "puVar3 = PTR_UINT_0012a18c + 0x578c;" (assignment_expression "puVar3 = PTR_UINT_0012a18c + 0x578c" (identifier "puVar3") (= "=") (binary_expression "PTR_UINT_0012a18c + 0x578c" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x578c"))) (; ";")) (do_statement "do {\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    } while (*param_2 != '\0');" (do "do") (compound_statement "{\n      if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }\n      param_1 = param_1 + 1;\n      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);\n      param_2 = param_2 + iVar1 + 1;\n    }" ({ "{") (if_statement "if ((param_3 & *param_1) != 0) {\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }" (if "if") (parenthesized_expression "((param_3 & *param_1) != 0)" (( "(") (binary_expression "(param_3 & *param_1) != 0" (parenthesized_expression "(param_3 & *param_1)" (( "(") (binary_expression "param_3 & *param_1" (identifier "param_3") (& "&") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }\n        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);\n        param_3 = param_3 & ~*param_1;\n        puVar2 = param_4;\n      }" ({ "{") (if_statement "if (puVar2 == (undefined *)0x0) {\n          puVar2 = puVar3;\n        }" (if "if") (parenthesized_expression "(puVar2 == (undefined *)0x0)" (( "(") (binary_expression "puVar2 == (undefined *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          puVar2 = puVar3;\n        }" ({ "{") (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" (identifier "puVar2") (= "=") (identifier "puVar3")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);" (call_expression "(*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_0012ae30)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_0012ae30" (* "*") (cast_expression "(code *)PTR___printf_chk_0012ae30" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_0012ae30"))) () ")")) (argument_list "(1,puVar4,puVar2,param_2)" (( "(") (number_literal "1") (, ",") (identifier "puVar4") (, ",") (identifier "puVar2") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "param_3 = param_3 & ~*param_1;" (assignment_expression "param_3 = param_3 & ~*param_1" (identifier "param_3") (= "=") (binary_expression "param_3 & ~*param_1" (identifier "param_3") (& "&") (unary_expression "~*param_1" (~ "~") (pointer_expression "*param_1" (* "*") (identifier "param_1"))))) (; ";")) (expression_statement "puVar2 = param_4;" (assignment_expression "puVar2 = param_4" (identifier "puVar2") (= "=") (identifier "param_4")) (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0012af3c)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0012af3c" (* "*") (cast_expression "(code *)PTR_strlen_0012af3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0012af3c"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "param_2 = param_2 + iVar1 + 1;" (assignment_expression "param_2 = param_2 + iVar1 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + iVar1 + 1" (binary_expression "param_2 + iVar1" (identifier "param_2") (+ "+") (identifier "iVar1")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*param_2 != '\0')" (( "(") (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}"))) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))

int function_1(int *masks,char *var_4,int var_2,char *separator)

{
  int var_5;
  char *var_3;
  char *pcVar3;
  type_1 *puVar4;
  
  if (*var_4 != '\0') {
    var_3 = (char *)0x0;
    puVar4 = var_1 + -0x594;
    pcVar3 = var_1 + 0x578c;
    do {
      if ((var_2 & *masks) != 0) {
        if (var_3 == (char *)0x0) {
          var_3 = pcVar3;
        }
        (*(type_2 *)PTR___printf_chk_0012ae30)(1,puVar4,var_3,var_4);
        var_2 = var_2 & ~*masks;
        var_3 = separator;
      }
      masks = (int *)((type_3 *)masks + 1);
      var_5 = (*(type_2 *)PTR_strlen_0012af3c)(var_4);
      var_4 = var_4 + var_5 + 1;
    } while (*var_4 != '\0');
  }
  return var_2;
}


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

uint MASKED(uint *param_1,char *param_2,uint param_3,undefined *param_4)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  
  if (*param_2 != '\0') {
    puVar2 = (undefined *)0x0;
    puVar4 = PTR_UINT_0012a18c + -0x594;
    puVar3 = PTR_UINT_0012a18c + 0x578c;
    do {
      if ((param_3 & *param_1) != 0) {
        if (puVar2 == (undefined *)0x0) {
          puVar2 = puVar3;
        }
        (*(code *)PTR___printf_chk_0012ae30)(1,puVar4,puVar2,param_2);
        param_3 = param_3 & ~*param_1;
        puVar2 = param_4;
      }
      param_1 = param_1 + 1;
      iVar1 = (*(code *)PTR_strlen_0012af3c)(param_2);
      param_2 = param_2 + iVar1 + 1;
    } while (*param_2 != '\0');
  }
  return param_3;
}

