
int rpl_lgetfilecon(char *file,security_context_t *con)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_lgetfilecon_00033394)();
  iVar1 = map_to_failure(iVar1,con);
  return iVar1;
}



int rpl_lgetfilecon(undefined4 param_1,undefined4 *param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  undefined4 uVar5;
  code *pcVar6;
  
  iVar4 = (*(code *)PTR_lgetfilecon_00033394)();
  puVar1 = PTR_LAB_00033108;
  if (iVar4 == 0) {
    iVar4 = -1;
    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();
    *puVar3 = 0x7a;
  }
  else if (iVar4 == 10) {
    uVar5 = *param_2;
    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))
                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);
    if (iVar2 == 0) {
      iVar4 = -1;
      (**(code **)(puVar1 + 0x13310))(uVar5);
      pcVar6 = *(code **)(puVar1 + 0x13354);
      *param_2 = 0;
      puVar3 = (undefined4 *)(*pcVar6)();
      *puVar3 = 0x3d;
    }
  }
  return iVar4;
}


lui gp,0x2
addiu gp,gp,-0x2f14
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7d3c(gp)
sw s0,0x18(sp)
sw ra,0x1c(sp)
sw gp,0x10(sp)
jalr t9
_or s0,a1,zero
or a1,s0,zero
lw gp,0x10(sp)
or a0,v0,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x2120
b 0x0001dee0
_addiu sp,sp,0x20
(translation_unit "int rpl_lgetfilecon(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  \n  iVar4 = (*(code *)PTR_lgetfilecon_00033394)();\n  puVar1 = PTR_LAB_00033108;\n  if (iVar4 == 0) {\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }\n  else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int rpl_lgetfilecon(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  \n  iVar4 = (*(code *)PTR_lgetfilecon_00033394)();\n  puVar1 = PTR_LAB_00033108;\n  if (iVar4 == 0) {\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }\n  else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "rpl_lgetfilecon(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  \n  iVar4 = (*(code *)PTR_lgetfilecon_00033394)();\n  puVar1 = PTR_LAB_00033108;\n  if (iVar4 == 0) {\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }\n  else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "iVar4 = (*(code *)PTR_lgetfilecon_00033394)();" (assignment_expression "iVar4 = (*(code *)PTR_lgetfilecon_00033394)()" identifier = (call_expression "(*(code *)PTR_lgetfilecon_00033394)()" (parenthesized_expression "(*(code *)PTR_lgetfilecon_00033394)" ( (pointer_expression "*(code *)PTR_lgetfilecon_00033394" * (cast_expression "(code *)PTR_lgetfilecon_00033394" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR_LAB_00033108;" (assignment_expression "puVar1 = PTR_LAB_00033108" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }\n  else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();" (assignment_expression "puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))()" identifier = (cast_expression "(undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(PTR_LAB_00033108 + 0x13354))()" (parenthesized_expression "(**(code **)(PTR_LAB_00033108 + 0x13354))" ( (pointer_expression "**(code **)(PTR_LAB_00033108 + 0x13354)" * (pointer_expression "*(code **)(PTR_LAB_00033108 + 0x13354)" * (cast_expression "(code **)(PTR_LAB_00033108 + 0x13354)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_LAB_00033108 + 0x13354)" ( (binary_expression "PTR_LAB_00033108 + 0x13354" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 0x7a;" (assignment_expression "*puVar3 = 0x7a" (pointer_expression "*puVar3" * identifier) = number_literal) ;) }) (else_clause "else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" else (if_statement "if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" if (parenthesized_expression "(iVar4 == 10)" ( (binary_expression "iVar4 == 10" identifier == number_literal) )) (compound_statement "{\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" { (expression_statement "uVar5 = *param_2;" (assignment_expression "uVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);" (assignment_expression "iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0)" identifier = (call_expression "(**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0)" (parenthesized_expression "(**(code **)(PTR_LAB_00033108 + 0x13424))" ( (pointer_expression "**(code **)(PTR_LAB_00033108 + 0x13424)" * (pointer_expression "*(code **)(PTR_LAB_00033108 + 0x13424)" * (cast_expression "(code **)(PTR_LAB_00033108 + 0x13424)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_LAB_00033108 + 0x13424)" ( (binary_expression "PTR_LAB_00033108 + 0x13424" identifier + number_literal) ))))) )) (argument_list "(uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0)" ( identifier , (binary_expression "*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0" (pointer_expression "*(int *)(PTR_LAB_00033108 + 0x13108)" * (cast_expression "(int *)(PTR_LAB_00033108 + 0x13108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00033108 + 0x13108)" ( (binary_expression "PTR_LAB_00033108 + 0x13108" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar1 + 0x13310))(uVar5);" (call_expression "(**(code **)(puVar1 + 0x13310))(uVar5)" (parenthesized_expression "(**(code **)(puVar1 + 0x13310))" ( (pointer_expression "**(code **)(puVar1 + 0x13310)" * (pointer_expression "*(code **)(puVar1 + 0x13310)" * (cast_expression "(code **)(puVar1 + 0x13310)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x13310)" ( (binary_expression "puVar1 + 0x13310" identifier + number_literal) ))))) )) (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "pcVar6 = *(code **)(puVar1 + 0x13354);" (assignment_expression "pcVar6 = *(code **)(puVar1 + 0x13354)" identifier = (pointer_expression "*(code **)(puVar1 + 0x13354)" * (cast_expression "(code **)(puVar1 + 0x13354)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x13354)" ( (binary_expression "puVar1 + 0x13354" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)(*pcVar6)();" (assignment_expression "puVar3 = (undefined4 *)(*pcVar6)()" identifier = (cast_expression "(undefined4 *)(*pcVar6)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 0x3d;" (assignment_expression "*puVar3 = 0x3d" (pointer_expression "*puVar3" * identifier) = number_literal) ;) })) })))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int rpl_lgetfilecon(char *file,security_context_t *con)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_lgetfilecon_00033394)();\n  iVar1 = map_to_failure(iVar1,con);\n  return iVar1;\n}\n\n" (function_definition "int rpl_lgetfilecon(char *file,security_context_t *con)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_lgetfilecon_00033394)();\n  iVar1 = map_to_failure(iVar1,con);\n  return iVar1;\n}" primitive_type (function_declarator "rpl_lgetfilecon(char *file,security_context_t *con)" identifier (parameter_list "(char *file,security_context_t *con)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "security_context_t *con" type_identifier (pointer_declarator "*con" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_lgetfilecon_00033394)();\n  iVar1 = map_to_failure(iVar1,con);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_lgetfilecon_00033394)();" (assignment_expression "iVar1 = (*(code *)PTR_lgetfilecon_00033394)()" identifier = (call_expression "(*(code *)PTR_lgetfilecon_00033394)()" (parenthesized_expression "(*(code *)PTR_lgetfilecon_00033394)" ( (pointer_expression "*(code *)PTR_lgetfilecon_00033394" * (cast_expression "(code *)PTR_lgetfilecon_00033394" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar1 = map_to_failure(iVar1,con);" (assignment_expression "iVar1 = map_to_failure(iVar1,con)" identifier = (call_expression "map_to_failure(iVar1,con)" identifier (argument_list "(iVar1,con)" ( identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int rpl_lgetfilecon(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  \n  iVar4 = (*(code *)PTR_lgetfilecon_00033394)();\n  puVar1 = PTR_LAB_00033108;\n  if (iVar4 == 0) {\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }\n  else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int rpl_lgetfilecon(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  \n  iVar4 = (*(code *)PTR_lgetfilecon_00033394)();\n  puVar1 = PTR_LAB_00033108;\n  if (iVar4 == 0) {\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }\n  else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "rpl_lgetfilecon(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  \n  iVar4 = (*(code *)PTR_lgetfilecon_00033394)();\n  puVar1 = PTR_LAB_00033108;\n  if (iVar4 == 0) {\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }\n  else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "iVar4 = (*(code *)PTR_lgetfilecon_00033394)();" (assignment_expression "iVar4 = (*(code *)PTR_lgetfilecon_00033394)()" identifier = (call_expression "(*(code *)PTR_lgetfilecon_00033394)()" (parenthesized_expression "(*(code *)PTR_lgetfilecon_00033394)" ( (pointer_expression "*(code *)PTR_lgetfilecon_00033394" * (cast_expression "(code *)PTR_lgetfilecon_00033394" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR_LAB_00033108;" (assignment_expression "puVar1 = PTR_LAB_00033108" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }\n  else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();" (assignment_expression "puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))()" identifier = (cast_expression "(undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(PTR_LAB_00033108 + 0x13354))()" (parenthesized_expression "(**(code **)(PTR_LAB_00033108 + 0x13354))" ( (pointer_expression "**(code **)(PTR_LAB_00033108 + 0x13354)" * (pointer_expression "*(code **)(PTR_LAB_00033108 + 0x13354)" * (cast_expression "(code **)(PTR_LAB_00033108 + 0x13354)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_LAB_00033108 + 0x13354)" ( (binary_expression "PTR_LAB_00033108 + 0x13354" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 0x7a;" (assignment_expression "*puVar3 = 0x7a" (pointer_expression "*puVar3" * identifier) = number_literal) ;) }) (else_clause "else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" else (if_statement "if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" if (parenthesized_expression "(iVar4 == 10)" ( (binary_expression "iVar4 == 10" identifier == number_literal) )) (compound_statement "{\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" { (expression_statement "uVar5 = *param_2;" (assignment_expression "uVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);" (assignment_expression "iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0)" identifier = (call_expression "(**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0)" (parenthesized_expression "(**(code **)(PTR_LAB_00033108 + 0x13424))" ( (pointer_expression "**(code **)(PTR_LAB_00033108 + 0x13424)" * (pointer_expression "*(code **)(PTR_LAB_00033108 + 0x13424)" * (cast_expression "(code **)(PTR_LAB_00033108 + 0x13424)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_LAB_00033108 + 0x13424)" ( (binary_expression "PTR_LAB_00033108 + 0x13424" identifier + number_literal) ))))) )) (argument_list "(uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0)" ( identifier , (binary_expression "*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0" (pointer_expression "*(int *)(PTR_LAB_00033108 + 0x13108)" * (cast_expression "(int *)(PTR_LAB_00033108 + 0x13108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00033108 + 0x13108)" ( (binary_expression "PTR_LAB_00033108 + 0x13108" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar1 + 0x13310))(uVar5);" (call_expression "(**(code **)(puVar1 + 0x13310))(uVar5)" (parenthesized_expression "(**(code **)(puVar1 + 0x13310))" ( (pointer_expression "**(code **)(puVar1 + 0x13310)" * (pointer_expression "*(code **)(puVar1 + 0x13310)" * (cast_expression "(code **)(puVar1 + 0x13310)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x13310)" ( (binary_expression "puVar1 + 0x13310" identifier + number_literal) ))))) )) (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "pcVar6 = *(code **)(puVar1 + 0x13354);" (assignment_expression "pcVar6 = *(code **)(puVar1 + 0x13354)" identifier = (pointer_expression "*(code **)(puVar1 + 0x13354)" * (cast_expression "(code **)(puVar1 + 0x13354)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x13354)" ( (binary_expression "puVar1 + 0x13354" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)(*pcVar6)();" (assignment_expression "puVar3 = (undefined4 *)(*pcVar6)()" identifier = (cast_expression "(undefined4 *)(*pcVar6)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 0x3d;" (assignment_expression "*puVar3 = 0x3d" (pointer_expression "*puVar3" * identifier) = number_literal) ;) })) })))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) })))) (return_statement return IDENT ;) })))
(function_definition "int rpl_lgetfilecon(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  \n  iVar4 = (*(code *)PTR_lgetfilecon_00033394)();\n  puVar1 = PTR_LAB_00033108;\n  if (iVar4 == 0) {\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }\n  else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "rpl_lgetfilecon(undefined4 param_1,undefined4 *param_2)" (identifier "rpl_lgetfilecon") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  code *pcVar6;\n  \n  iVar4 = (*(code *)PTR_lgetfilecon_00033394)();\n  puVar1 = PTR_LAB_00033108;\n  if (iVar4 == 0) {\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }\n  else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return iVar4;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_lgetfilecon_00033394)();" (assignment_expression "iVar4 = (*(code *)PTR_lgetfilecon_00033394)()" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_lgetfilecon_00033394)()" (parenthesized_expression "(*(code *)PTR_lgetfilecon_00033394)" (( "(") (pointer_expression "*(code *)PTR_lgetfilecon_00033394" (* "*") (cast_expression "(code *)PTR_lgetfilecon_00033394" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_lgetfilecon_00033394"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_LAB_00033108;" (assignment_expression "puVar1 = PTR_LAB_00033108" (identifier "puVar1") (= "=") (identifier "PTR_LAB_00033108")) (; ";")) (if_statement "if (iVar4 == 0) {\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }\n  else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = -1;\n    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();\n    *puVar3 = 0x7a;\n  }" ({ "{") (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (expression_statement "puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();" (assignment_expression "puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(PTR_LAB_00033108 + 0x13354))()" (parenthesized_expression "(**(code **)(PTR_LAB_00033108 + 0x13354))" (( "(") (pointer_expression "**(code **)(PTR_LAB_00033108 + 0x13354)" (* "*") (pointer_expression "*(code **)(PTR_LAB_00033108 + 0x13354)" (* "*") (cast_expression "(code **)(PTR_LAB_00033108 + 0x13354)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_LAB_00033108 + 0x13354)" (( "(") (binary_expression "PTR_LAB_00033108 + 0x13354" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x13354")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar3 = 0x7a;" (assignment_expression "*puVar3 = 0x7a" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x7a")) (; ";")) (} "}")) (else_clause "else if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" (else "else") (if_statement "if (iVar4 == 10) {\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 == 10)" (( "(") (binary_expression "iVar4 == 10" (identifier "iVar4") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n    uVar5 = *param_2;\n    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);\n    if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }\n  }" ({ "{") (expression_statement "uVar5 = *param_2;" (assignment_expression "uVar5 = *param_2" (identifier "uVar5") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);" (assignment_expression "iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(PTR_LAB_00033108 + 0x13424))\n                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0)" (parenthesized_expression "(**(code **)(PTR_LAB_00033108 + 0x13424))" (( "(") (pointer_expression "**(code **)(PTR_LAB_00033108 + 0x13424)" (* "*") (pointer_expression "*(code **)(PTR_LAB_00033108 + 0x13424)" (* "*") (cast_expression "(code **)(PTR_LAB_00033108 + 0x13424)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_LAB_00033108 + 0x13424)" (( "(") (binary_expression "PTR_LAB_00033108 + 0x13424" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x13424")) () ")"))))) () ")")) (argument_list "(uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0)" (( "(") (identifier "uVar5") (, ",") (binary_expression "*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0" (pointer_expression "*(int *)(PTR_LAB_00033108 + 0x13108)" (* "*") (cast_expression "(int *)(PTR_LAB_00033108 + 0x13108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00033108 + 0x13108)" (( "(") (binary_expression "PTR_LAB_00033108 + 0x13108" (identifier "PTR_LAB_00033108") (+ "+") (number_literal "0x13108")) () ")")))) (+ "+") (number_literal "0x21d0")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = -1;\n      (**(code **)(puVar1 + 0x13310))(uVar5);\n      pcVar6 = *(code **)(puVar1 + 0x13354);\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*pcVar6)();\n      *puVar3 = 0x3d;\n    }" ({ "{") (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (expression_statement "(**(code **)(puVar1 + 0x13310))(uVar5);" (call_expression "(**(code **)(puVar1 + 0x13310))(uVar5)" (parenthesized_expression "(**(code **)(puVar1 + 0x13310))" (( "(") (pointer_expression "**(code **)(puVar1 + 0x13310)" (* "*") (pointer_expression "*(code **)(puVar1 + 0x13310)" (* "*") (cast_expression "(code **)(puVar1 + 0x13310)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x13310)" (( "(") (binary_expression "puVar1 + 0x13310" (identifier "puVar1") (+ "+") (number_literal "0x13310")) () ")"))))) () ")")) (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "pcVar6 = *(code **)(puVar1 + 0x13354);" (assignment_expression "pcVar6 = *(code **)(puVar1 + 0x13354)" (identifier "pcVar6") (= "=") (pointer_expression "*(code **)(puVar1 + 0x13354)" (* "*") (cast_expression "(code **)(puVar1 + 0x13354)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x13354)" (( "(") (binary_expression "puVar1 + 0x13354" (identifier "puVar1") (+ "+") (number_literal "0x13354")) () ")"))))) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = (undefined4 *)(*pcVar6)();" (assignment_expression "puVar3 = (undefined4 *)(*pcVar6)()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(*pcVar6)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar3 = 0x3d;" (assignment_expression "*puVar3 = 0x3d" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x3d")) (; ";")) (} "}"))) (} "}"))))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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: (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)))) (expression_statement (assignment_expression left: (identifier) right: (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))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (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: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) (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 (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,undefined4 *param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  undefined4 uVar5;
  code *pcVar6;
  
  iVar4 = (*(code *)PTR_lgetfilecon_00033394)();
  puVar1 = PTR_LAB_00033108;
  if (iVar4 == 0) {
    iVar4 = -1;
    puVar3 = (undefined4 *)(**(code **)(PTR_LAB_00033108 + 0x13354))();
    *puVar3 = 0x7a;
  }
  else if (iVar4 == 10) {
    uVar5 = *param_2;
    iVar2 = (**(code **)(PTR_LAB_00033108 + 0x13424))
                      (uVar5,*(int *)(PTR_LAB_00033108 + 0x13108) + 0x21d0);
    if (iVar2 == 0) {
      iVar4 = -1;
      (**(code **)(puVar1 + 0x13310))(uVar5);
      pcVar6 = *(code **)(puVar1 + 0x13354);
      *param_2 = 0;
      puVar3 = (undefined4 *)(*pcVar6)();
      *puVar3 = 0x3d;
    }
  }
  return iVar4;
}

