
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void code_props_translate_code(code_props *self)

{
  anon_enum_32 aVar1;
  char *pcVar2;
  int sc_context;
  
  aVar1 = self->kind;
  if (aVar1 == CODE_PROPS_SIZE) {
    sc_context = 6;
  }
  else if (aVar1 == CODE_PROPS_RULE_ACTION) {
    sc_context = 5;
  }
  else {
    if (aVar1 != CODE_PROPS_PLAIN) {
      return;
    }
    sc_context = 0;
  }
  pcVar2 = translate_action(self,sc_context);
  self->code = pcVar2;
  return;
}



void code_props_translate_code(int *param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = *param_1;
  if (iVar1 == 2) {
    uVar2 = 6;
  }
  else if (iVar1 == 3) {
    uVar2 = 5;
  }
  else {
    if (iVar1 != 1) {
      return;
    }
    uVar2 = 0;
  }
  iVar1 = FUN_000435ec(param_1,uVar2);
  param_1[1] = iVar1;
  return;
}


lui gp,0x5
addiu gp,gp,-0xccc
addu gp,gp,t9
addiu sp,sp,-0x20
lw v0,0x0(a0)
li v1,0x2
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
beq v0,v1,0x00046308
_sw ra,0x1c(sp)
li v1,0x3
beq v0,v1,0x00046338
_li v1,0x1
beq v0,v1,0x00046330
_lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
li a1,0x6
lw t9,-0x7aa4(gp)
addiu t9,t9,0x35ec
bal 0x000435ec
_nop
lw ra,0x1c(sp)
sw v0,0x4(s0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
b 0x0004630c
_or a1,zero,zero
b 0x0004630c
_li a1,0x5
(translation_unit "void code_props_translate_code(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_1;\n  if (iVar1 == 2) {\n    uVar2 = 6;\n  }\n  else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }\n  iVar1 = FUN_000435ec(param_1,uVar2);\n  param_1[1] = iVar1;\n  return;\n}\n\n" (function_definition "void code_props_translate_code(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_1;\n  if (iVar1 == 2) {\n    uVar2 = 6;\n  }\n  else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }\n  iVar1 = FUN_000435ec(param_1,uVar2);\n  param_1[1] = iVar1;\n  return;\n}" primitive_type (function_declarator "code_props_translate_code(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_1;\n  if (iVar1 == 2) {\n    uVar2 = 6;\n  }\n  else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }\n  iVar1 = FUN_000435ec(param_1,uVar2);\n  param_1[1] = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 == 2) {\n    uVar2 = 6;\n  }\n  else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 6;\n  }" { (expression_statement "uVar2 = 6;" (assignment_expression "uVar2 = 6" identifier = number_literal) ;) }) (else_clause "else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" else (if_statement "if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 5;\n  }" { (expression_statement "uVar2 = 5;" (assignment_expression "uVar2 = 5" identifier = number_literal) ;) }) (else_clause "else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" else (compound_statement "{\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" { (if_statement "if (iVar1 != 1) {\n      return;\n    }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))))) (expression_statement "iVar1 = FUN_000435ec(param_1,uVar2);" (assignment_expression "iVar1 = FUN_000435ec(param_1,uVar2)" identifier = (call_expression "FUN_000435ec(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid code_props_translate_code(code_props *self)\n\n{\n  anon_enum_32 aVar1;\n  char *pcVar2;\n  int sc_context;\n  \n  aVar1 = self->kind;\n  if (aVar1 == CODE_PROPS_SIZE) {\n    sc_context = 6;\n  }\n  else if (aVar1 == CODE_PROPS_RULE_ACTION) {\n    sc_context = 5;\n  }\n  else {\n    if (aVar1 != CODE_PROPS_PLAIN) {\n      return;\n    }\n    sc_context = 0;\n  }\n  pcVar2 = translate_action(self,sc_context);\n  self->code = pcVar2;\n  return;\n}\n\n" comment (function_definition "void code_props_translate_code(code_props *self)\n\n{\n  anon_enum_32 aVar1;\n  char *pcVar2;\n  int sc_context;\n  \n  aVar1 = self->kind;\n  if (aVar1 == CODE_PROPS_SIZE) {\n    sc_context = 6;\n  }\n  else if (aVar1 == CODE_PROPS_RULE_ACTION) {\n    sc_context = 5;\n  }\n  else {\n    if (aVar1 != CODE_PROPS_PLAIN) {\n      return;\n    }\n    sc_context = 0;\n  }\n  pcVar2 = translate_action(self,sc_context);\n  self->code = pcVar2;\n  return;\n}" primitive_type (function_declarator "code_props_translate_code(code_props *self)" identifier (parameter_list "(code_props *self)" ( (parameter_declaration "code_props *self" type_identifier (pointer_declarator "*self" * identifier)) ))) (compound_statement "{\n  anon_enum_32 aVar1;\n  char *pcVar2;\n  int sc_context;\n  \n  aVar1 = self->kind;\n  if (aVar1 == CODE_PROPS_SIZE) {\n    sc_context = 6;\n  }\n  else if (aVar1 == CODE_PROPS_RULE_ACTION) {\n    sc_context = 5;\n  }\n  else {\n    if (aVar1 != CODE_PROPS_PLAIN) {\n      return;\n    }\n    sc_context = 0;\n  }\n  pcVar2 = translate_action(self,sc_context);\n  self->code = pcVar2;\n  return;\n}" { (declaration "anon_enum_32 aVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int sc_context;" primitive_type identifier ;) (expression_statement "aVar1 = self->kind;" (assignment_expression "aVar1 = self->kind" identifier = (field_expression "self->kind" identifier -> field_identifier)) ;) (if_statement "if (aVar1 == CODE_PROPS_SIZE) {\n    sc_context = 6;\n  }\n  else if (aVar1 == CODE_PROPS_RULE_ACTION) {\n    sc_context = 5;\n  }\n  else {\n    if (aVar1 != CODE_PROPS_PLAIN) {\n      return;\n    }\n    sc_context = 0;\n  }" if (parenthesized_expression "(aVar1 == CODE_PROPS_SIZE)" ( (binary_expression "aVar1 == CODE_PROPS_SIZE" identifier == identifier) )) (compound_statement "{\n    sc_context = 6;\n  }" { (expression_statement "sc_context = 6;" (assignment_expression "sc_context = 6" identifier = number_literal) ;) }) (else_clause "else if (aVar1 == CODE_PROPS_RULE_ACTION) {\n    sc_context = 5;\n  }\n  else {\n    if (aVar1 != CODE_PROPS_PLAIN) {\n      return;\n    }\n    sc_context = 0;\n  }" else (if_statement "if (aVar1 == CODE_PROPS_RULE_ACTION) {\n    sc_context = 5;\n  }\n  else {\n    if (aVar1 != CODE_PROPS_PLAIN) {\n      return;\n    }\n    sc_context = 0;\n  }" if (parenthesized_expression "(aVar1 == CODE_PROPS_RULE_ACTION)" ( (binary_expression "aVar1 == CODE_PROPS_RULE_ACTION" identifier == identifier) )) (compound_statement "{\n    sc_context = 5;\n  }" { (expression_statement "sc_context = 5;" (assignment_expression "sc_context = 5" identifier = number_literal) ;) }) (else_clause "else {\n    if (aVar1 != CODE_PROPS_PLAIN) {\n      return;\n    }\n    sc_context = 0;\n  }" else (compound_statement "{\n    if (aVar1 != CODE_PROPS_PLAIN) {\n      return;\n    }\n    sc_context = 0;\n  }" { (if_statement "if (aVar1 != CODE_PROPS_PLAIN) {\n      return;\n    }" if (parenthesized_expression "(aVar1 != CODE_PROPS_PLAIN)" ( (binary_expression "aVar1 != CODE_PROPS_PLAIN" identifier != identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "sc_context = 0;" (assignment_expression "sc_context = 0" identifier = number_literal) ;) }))))) (expression_statement "pcVar2 = translate_action(self,sc_context);" (assignment_expression "pcVar2 = translate_action(self,sc_context)" identifier = (call_expression "translate_action(self,sc_context)" identifier (argument_list "(self,sc_context)" ( identifier , identifier )))) ;) (expression_statement "self->code = pcVar2;" (assignment_expression "self->code = pcVar2" (field_expression "self->code" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void code_props_translate_code(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_1;\n  if (iVar1 == 2) {\n    uVar2 = 6;\n  }\n  else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }\n  iVar1 = FUN_000435ec(param_1,uVar2);\n  param_1[1] = iVar1;\n  return;\n}\n\n" (function_definition "void code_props_translate_code(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_1;\n  if (iVar1 == 2) {\n    uVar2 = 6;\n  }\n  else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }\n  iVar1 = FUN_000435ec(param_1,uVar2);\n  param_1[1] = iVar1;\n  return;\n}" primitive_type (function_declarator "code_props_translate_code(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_1;\n  if (iVar1 == 2) {\n    uVar2 = 6;\n  }\n  else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }\n  iVar1 = FUN_000435ec(param_1,uVar2);\n  param_1[1] = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 == 2) {\n    uVar2 = 6;\n  }\n  else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 6;\n  }" { (expression_statement "uVar2 = 6;" (assignment_expression "uVar2 = 6" identifier = number_literal) ;) }) (else_clause "else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" else (if_statement "if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 5;\n  }" { (expression_statement "uVar2 = 5;" (assignment_expression "uVar2 = 5" identifier = number_literal) ;) }) (else_clause "else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" else (compound_statement "{\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" { (if_statement "if (iVar1 != 1) {\n      return;\n    }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))))) (expression_statement "iVar1 = FUN_000435ec(param_1,uVar2);" (assignment_expression "iVar1 = FUN_000435ec(param_1,uVar2)" identifier = (call_expression "FUN_000435ec(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void code_props_translate_code(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_1;\n  if (iVar1 == 2) {\n    uVar2 = 6;\n  }\n  else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }\n  iVar1 = FUN_000435ec(param_1,uVar2);\n  param_1[1] = iVar1;\n  return;\n}" (primitive_type "void") (function_declarator "code_props_translate_code(int *param_1)" (identifier "code_props_translate_code") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *param_1;\n  if (iVar1 == 2) {\n    uVar2 = 6;\n  }\n  else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }\n  iVar1 = FUN_000435ec(param_1,uVar2);\n  param_1[1] = iVar1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar1 == 2) {\n    uVar2 = 6;\n  }\n  else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 2)" (( "(") (binary_expression "iVar1 == 2" (identifier "iVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    uVar2 = 6;\n  }" ({ "{") (expression_statement "uVar2 = 6;" (assignment_expression "uVar2 = 6" (identifier "uVar2") (= "=") (number_literal "6")) (; ";")) (} "}")) (else_clause "else if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" (else "else") (if_statement "if (iVar1 == 3) {\n    uVar2 = 5;\n  }\n  else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 3)" (( "(") (binary_expression "iVar1 == 3" (identifier "iVar1") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    uVar2 = 5;\n  }" ({ "{") (expression_statement "uVar2 = 5;" (assignment_expression "uVar2 = 5" (identifier "uVar2") (= "=") (number_literal "5")) (; ";")) (} "}")) (else_clause "else {\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" (else "else") (compound_statement "{\n    if (iVar1 != 1) {\n      return;\n    }\n    uVar2 = 0;\n  }" ({ "{") (if_statement "if (iVar1 != 1) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))))) (expression_statement "iVar1 = FUN_000435ec(param_1,uVar2);" (assignment_expression "iVar1 = FUN_000435ec(param_1,uVar2)" (identifier "iVar1") (= "=") (call_expression "FUN_000435ec(param_1,uVar2)" (identifier "FUN_000435ec") (argument_list "(param_1,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))))

void MASKED(int *param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = *param_1;
  if (iVar1 == 2) {
    uVar2 = 6;
  }
  else if (iVar1 == 3) {
    uVar2 = 5;
  }
  else {
    if (iVar1 != 1) {
      return;
    }
    uVar2 = 0;
  }
  iVar1 = FUN_000435ec(param_1,uVar2);
  param_1[1] = iVar1;
  return;
}

