
int set_quoting_flags(quoting_options *o,int i)

{
  int iVar1;
  
  if (o != (quoting_options *)0x0) {
    iVar1 = o->flags;
    o->flags = i;
    return iVar1;
  }
  iVar1 = *(int *)(PTR_DAT_000330f8 + 0x3574);
  *(int *)(PTR_DAT_000330f8 + 0x3574) = i;
  return iVar1;
}



undefined4 FUN_00016108(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  
  if (param_1 != 0) {
    uVar1 = *(undefined4 *)(param_1 + 4);
    *(undefined4 *)(param_1 + 4) = param_2;
    return uVar1;
  }
  uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);
  *(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;
  return uVar1;
}


lui gp,0x2
addiu gp,gp,0x4fc8
addu gp,gp,t9
beq a0,zero,0x00016128
_nop
lw v0,0x4(a0)
jr ra
_sw a1,0x4(a0)
lw a0,-0x7fd8(gp)
addiu a0,a0,0x3570
lw v0,0x4(a0)
jr ra
_sw a1,0x4(a0)
(translation_unit "undefined4 FUN_00016108(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }\n  uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);\n  *(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_00016108(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }\n  uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);\n  *(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00016108(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }\n  uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);\n  *(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }" { (expression_statement "uVar1 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);" (assignment_expression "uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" identifier = (pointer_expression "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" * (cast_expression "(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000330f8 + 0x3574)" ( (binary_expression "PTR_DAT_000330f8 + 0x3574" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2" (pointer_expression "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" * (cast_expression "(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000330f8 + 0x3574)" ( (binary_expression "PTR_DAT_000330f8 + 0x3574" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int set_quoting_flags(quoting_options *o,int i)\n\n{\n  int iVar1;\n  \n  if (o != (quoting_options *)0x0) {\n    iVar1 = o->flags;\n    o->flags = i;\n    return iVar1;\n  }\n  iVar1 = *(int *)(PTR_DAT_000330f8 + 0x3574);\n  *(int *)(PTR_DAT_000330f8 + 0x3574) = i;\n  return iVar1;\n}\n\n" (function_definition "int set_quoting_flags(quoting_options *o,int i)\n\n{\n  int iVar1;\n  \n  if (o != (quoting_options *)0x0) {\n    iVar1 = o->flags;\n    o->flags = i;\n    return iVar1;\n  }\n  iVar1 = *(int *)(PTR_DAT_000330f8 + 0x3574);\n  *(int *)(PTR_DAT_000330f8 + 0x3574) = i;\n  return iVar1;\n}" primitive_type (function_declarator "set_quoting_flags(quoting_options *o,int i)" identifier (parameter_list "(quoting_options *o,int i)" ( (parameter_declaration "quoting_options *o" type_identifier (pointer_declarator "*o" * identifier)) , (parameter_declaration "int i" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (o != (quoting_options *)0x0) {\n    iVar1 = o->flags;\n    o->flags = i;\n    return iVar1;\n  }\n  iVar1 = *(int *)(PTR_DAT_000330f8 + 0x3574);\n  *(int *)(PTR_DAT_000330f8 + 0x3574) = i;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (o != (quoting_options *)0x0) {\n    iVar1 = o->flags;\n    o->flags = i;\n    return iVar1;\n  }" if (parenthesized_expression "(o != (quoting_options *)0x0)" ( (binary_expression "o != (quoting_options *)0x0" identifier != (cast_expression "(quoting_options *)0x0" ( (type_descriptor "quoting_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = o->flags;\n    o->flags = i;\n    return iVar1;\n  }" { (expression_statement "iVar1 = o->flags;" (assignment_expression "iVar1 = o->flags" identifier = (field_expression "o->flags" identifier -> field_identifier)) ;) (expression_statement "o->flags = i;" (assignment_expression "o->flags = i" (field_expression "o->flags" identifier -> field_identifier) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = *(int *)(PTR_DAT_000330f8 + 0x3574);" (assignment_expression "iVar1 = *(int *)(PTR_DAT_000330f8 + 0x3574)" identifier = (pointer_expression "*(int *)(PTR_DAT_000330f8 + 0x3574)" * (cast_expression "(int *)(PTR_DAT_000330f8 + 0x3574)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000330f8 + 0x3574)" ( (binary_expression "PTR_DAT_000330f8 + 0x3574" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(PTR_DAT_000330f8 + 0x3574) = i;" (assignment_expression "*(int *)(PTR_DAT_000330f8 + 0x3574) = i" (pointer_expression "*(int *)(PTR_DAT_000330f8 + 0x3574)" * (cast_expression "(int *)(PTR_DAT_000330f8 + 0x3574)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000330f8 + 0x3574)" ( (binary_expression "PTR_DAT_000330f8 + 0x3574" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_00016108(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }\n  uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);\n  *(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_00016108(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }\n  uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);\n  *(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00016108(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }\n  uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);\n  *(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }" { (expression_statement "uVar1 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);" (assignment_expression "uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" identifier = (pointer_expression "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" * (cast_expression "(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000330f8 + 0x3574)" ( (binary_expression "PTR_DAT_000330f8 + 0x3574" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2" (pointer_expression "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" * (cast_expression "(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000330f8 + 0x3574)" ( (binary_expression "PTR_DAT_000330f8 + 0x3574" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00016108(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }\n  uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);\n  *(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00016108(int param_1,undefined4 param_2)" (identifier "FUN_00016108") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }\n  uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);\n  *(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(param_1 + 4) = param_2;\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);" (assignment_expression "uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000330f8 + 0x3574)" (( "(") (binary_expression "PTR_DAT_000330f8 + 0x3574" (identifier "PTR_DAT_000330f8") (+ "+") (number_literal "0x3574")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;" (assignment_expression "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2" (pointer_expression "*(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000330f8 + 0x3574)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000330f8 + 0x3574)" (( "(") (binary_expression "PTR_DAT_000330f8 + 0x3574" (identifier "PTR_DAT_000330f8") (+ "+") (number_literal "0x3574")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1(type_1 *var_1,int i)

{
  int iVar1;
  
  if (var_1 != (type_1 *)0x0) {
    iVar1 = var_1->flags;
    var_1->flags = i;
    return iVar1;
  }
  iVar1 = *(int *)(var_2 + 0x3574);
  *(int *)(var_2 + 0x3574) = i;
  return iVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  
  if (param_1 != 0) {
    uVar1 = *(undefined4 *)(param_1 + 4);
    *(undefined4 *)(param_1 + 4) = param_2;
    return uVar1;
  }
  uVar1 = *(undefined4 *)(PTR_DAT_000330f8 + 0x3574);
  *(undefined4 *)(PTR_DAT_000330f8 + 0x3574) = param_2;
  return uVar1;
}

