
int get_permissions(char *name,int desc,mode_t mode,permission_context *ctx)

{
  undefined3 extraout_var;
  acl_t p_Var1;
  int *piVar2;
  _Bool _Var3;
  
  *(undefined1 *)&ctx->acl = 0;
  *(undefined1 *)((int)&ctx->acl + 1) = 0;
  *(undefined1 *)((int)&ctx->acl + 2) = 0;
  *(undefined1 *)((int)&ctx->acl + 3) = 0;
  *(undefined1 *)&ctx->default_acl = 0;
  *(undefined1 *)((int)&ctx->default_acl + 1) = 0;
  *(undefined1 *)((int)&ctx->default_acl + 2) = 0;
  *(undefined1 *)((int)&ctx->default_acl + 3) = 0;
  ctx->acls_not_supported = false;
  ctx->field_0xd = 0;
  ctx->field_0xe = 0;
  ctx->field_0xf = 0;
  ctx->mode = mode;
  if (desc == -1) {
    p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x8000);
    ctx->acl = p_Var1;
  }
  else {
    p_Var1 = (acl_t)(*(code *)PTR_acl_get_fd_0004457c)(desc);
    ctx->acl = p_Var1;
  }
  if (p_Var1 != (acl_t)0x0) {
    if ((mode & 0xf000) == 0x4000) {
      p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x4000);
      ctx->default_acl = p_Var1;
      return -(uint)(p_Var1 == (acl_t)0x0);
    }
    return 0;
  }
  piVar2 = (int *)(*(code *)PTR___errno_location_00044514)();
  _Var3 = acl_errno_valid(*piVar2);
  return -CONCAT31(extraout_var,_Var3);
}



int get_permissions(undefined4 param_1,int param_2,uint param_3,uint *param_4)

{
  uint uVar1;
  undefined4 *puVar2;
  int iVar3;
  
  *(undefined1 *)(param_4 + 1) = 0;
  *(undefined1 *)((int)param_4 + 5) = 0;
  *(undefined1 *)((int)param_4 + 6) = 0;
  *(undefined1 *)((int)param_4 + 7) = 0;
  *(undefined1 *)(param_4 + 2) = 0;
  *(undefined1 *)((int)param_4 + 9) = 0;
  *(undefined1 *)((int)param_4 + 10) = 0;
  *(undefined1 *)((int)param_4 + 0xb) = 0;
  *(undefined1 *)(param_4 + 3) = 0;
  *(undefined1 *)((int)param_4 + 0xd) = 0;
  *(undefined1 *)((int)param_4 + 0xe) = 0;
  *(undefined1 *)((int)param_4 + 0xf) = 0;
  *param_4 = param_3;
  if (param_2 == -1) {
    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);
    param_4[1] = uVar1;
  }
  else {
    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);
    param_4[1] = uVar1;
  }
  if (uVar1 != 0) {
    if ((param_3 & 0xf000) == 0x4000) {
      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);
      param_4[2] = uVar1;
      return -(uint)(uVar1 == 0);
    }
    return 0;
  }
  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();
  iVar3 = acl_errno_valid(*puVar2);
  return -iVar3;
}


lui gp,0x2
addiu gp,gp,-0x890
addu gp,gp,t9
addiu sp,sp,-0x28
sb zero,0x4(a3)
li v1,-0x1
sb zero,0x5(a3)
sb zero,0x6(a3)
sw gp,0x10(sp)
sw s2,0x20(sp)
or s2,a0,zero
sw s1,0x1c(sp)
or s1,a2,zero
sw s0,0x18(sp)
or s0,a3,zero
sw ra,0x24(sp)
sb zero,0x7(a3)
sb zero,0x8(a3)
sb zero,0x9(a3)
sb zero,0xa(a3)
sb zero,0xb(a3)
sb zero,0xc(a3)
sb zero,0xd(a3)
sb zero,0xe(a3)
sb zero,0xf(a3)
beq a1,v1,0x0002ca2c
_sw a2,0x0(a3)
lw t9,-0x7b74(gp)
jalr t9
_or a0,a1,zero
lw gp,0x10(sp)
beq v0,zero,0x0002ca44
_sw v0,0x4(s0)
li v0,0x4000
andi s1,s1,0xf000
beq s1,v0,0x0002ca7c
_lw ra,0x24(sp)
or v0,zero,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7bbc(gp)
jalr t9
_ori a1,zero,0x8000
lw gp,0x10(sp)
bne v0,zero,0x0002ca04
_sw v0,0x4(s0)
lw t9,-0x7bdc(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7d34(gp)
bal 0x0002e5f0
_lw a0,0x0(v0)
lw ra,0x24(sp)
subu v0,zero,v0
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7bbc(gp)
li a1,0x4000
jalr t9
_or a0,s2,zero
lw ra,0x24(sp)
sltiu v1,v0,0x1
lw s2,0x20(sp)
lw s1,0x1c(sp)
sw v0,0x8(s0)
subu v0,zero,v1
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int get_permissions(undefined4 param_1,int param_2,uint param_3,uint *param_4)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  *(undefined1 *)(param_4 + 1) = 0;\n  *(undefined1 *)((int)param_4 + 5) = 0;\n  *(undefined1 *)((int)param_4 + 6) = 0;\n  *(undefined1 *)((int)param_4 + 7) = 0;\n  *(undefined1 *)(param_4 + 2) = 0;\n  *(undefined1 *)((int)param_4 + 9) = 0;\n  *(undefined1 *)((int)param_4 + 10) = 0;\n  *(undefined1 *)((int)param_4 + 0xb) = 0;\n  *(undefined1 *)(param_4 + 3) = 0;\n  *(undefined1 *)((int)param_4 + 0xd) = 0;\n  *(undefined1 *)((int)param_4 + 0xe) = 0;\n  *(undefined1 *)((int)param_4 + 0xf) = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();\n  iVar3 = acl_errno_valid(*puVar2);\n  return -iVar3;\n}\n\n" (function_definition "int get_permissions(undefined4 param_1,int param_2,uint param_3,uint *param_4)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  *(undefined1 *)(param_4 + 1) = 0;\n  *(undefined1 *)((int)param_4 + 5) = 0;\n  *(undefined1 *)((int)param_4 + 6) = 0;\n  *(undefined1 *)((int)param_4 + 7) = 0;\n  *(undefined1 *)(param_4 + 2) = 0;\n  *(undefined1 *)((int)param_4 + 9) = 0;\n  *(undefined1 *)((int)param_4 + 10) = 0;\n  *(undefined1 *)((int)param_4 + 0xb) = 0;\n  *(undefined1 *)(param_4 + 3) = 0;\n  *(undefined1 *)((int)param_4 + 0xd) = 0;\n  *(undefined1 *)((int)param_4 + 0xe) = 0;\n  *(undefined1 *)((int)param_4 + 0xf) = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();\n  iVar3 = acl_errno_valid(*puVar2);\n  return -iVar3;\n}" primitive_type (function_declarator "get_permissions(undefined4 param_1,int param_2,uint param_3,uint *param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3,uint *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  *(undefined1 *)(param_4 + 1) = 0;\n  *(undefined1 *)((int)param_4 + 5) = 0;\n  *(undefined1 *)((int)param_4 + 6) = 0;\n  *(undefined1 *)((int)param_4 + 7) = 0;\n  *(undefined1 *)(param_4 + 2) = 0;\n  *(undefined1 *)((int)param_4 + 9) = 0;\n  *(undefined1 *)((int)param_4 + 10) = 0;\n  *(undefined1 *)((int)param_4 + 0xb) = 0;\n  *(undefined1 *)(param_4 + 3) = 0;\n  *(undefined1 *)((int)param_4 + 0xd) = 0;\n  *(undefined1 *)((int)param_4 + 0xe) = 0;\n  *(undefined1 *)((int)param_4 + 0xf) = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();\n  iVar3 = acl_errno_valid(*puVar2);\n  return -iVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "*(undefined1 *)(param_4 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_4 + 1) = 0" (pointer_expression "*(undefined1 *)(param_4 + 1)" * (cast_expression "(undefined1 *)(param_4 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 5) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 5) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 5)" * (cast_expression "(undefined1 *)((int)param_4 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 5)" ( (binary_expression "(int)param_4 + 5" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 6) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 6) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 6)" * (cast_expression "(undefined1 *)((int)param_4 + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 6)" ( (binary_expression "(int)param_4 + 6" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 7) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 7) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 7)" * (cast_expression "(undefined1 *)((int)param_4 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 7)" ( (binary_expression "(int)param_4 + 7" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_4 + 2) = 0;" (assignment_expression "*(undefined1 *)(param_4 + 2) = 0" (pointer_expression "*(undefined1 *)(param_4 + 2)" * (cast_expression "(undefined1 *)(param_4 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 2)" ( (binary_expression "param_4 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 9) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 9) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 9)" * (cast_expression "(undefined1 *)((int)param_4 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 9)" ( (binary_expression "(int)param_4 + 9" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 10) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 10) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 10)" * (cast_expression "(undefined1 *)((int)param_4 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 10)" ( (binary_expression "(int)param_4 + 10" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 0xb) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xb) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xb)" * (cast_expression "(undefined1 *)((int)param_4 + 0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 0xb)" ( (binary_expression "(int)param_4 + 0xb" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_4 + 3) = 0;" (assignment_expression "*(undefined1 *)(param_4 + 3) = 0" (pointer_expression "*(undefined1 *)(param_4 + 3)" * (cast_expression "(undefined1 *)(param_4 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 3)" ( (binary_expression "param_4 + 3" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 0xd) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xd) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xd)" * (cast_expression "(undefined1 *)((int)param_4 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 0xd)" ( (binary_expression "(int)param_4 + 0xd" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 0xe) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xe) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xe)" * (cast_expression "(undefined1 *)((int)param_4 + 0xe)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 0xe)" ( (binary_expression "(int)param_4 + 0xe" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 0xf) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xf) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xf)" * (cast_expression "(undefined1 *)((int)param_4 + 0xf)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 0xf)" ( (binary_expression "(int)param_4 + 0xf" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*param_4 = param_3;" (assignment_expression "*param_4 = param_3" (pointer_expression "*param_4" * identifier) = identifier) ;) (if_statement "if (param_2 == -1) {\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }" if (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);" (assignment_expression "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000)" identifier = (call_expression "(*(code *)PTR_acl_get_file_00044534)(param_1,0x8000)" (parenthesized_expression "(*(code *)PTR_acl_get_file_00044534)" ( (pointer_expression "*(code *)PTR_acl_get_file_00044534" * (cast_expression "(code *)PTR_acl_get_file_00044534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x8000)" ( identifier , number_literal )))) ;) (expression_statement "param_4[1] = uVar1;" (assignment_expression "param_4[1] = uVar1" (subscript_expression "param_4[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }" else (compound_statement "{\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2)" identifier = (call_expression "(*(code *)PTR_acl_get_fd_0004457c)(param_2)" (parenthesized_expression "(*(code *)PTR_acl_get_fd_0004457c)" ( (pointer_expression "*(code *)PTR_acl_get_fd_0004457c" * (cast_expression "(code *)PTR_acl_get_fd_0004457c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "param_4[1] = uVar1;" (assignment_expression "param_4[1] = uVar1" (subscript_expression "param_4[1]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }" { (if_statement "if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }" if (parenthesized_expression "((param_3 & 0xf000) == 0x4000)" ( (binary_expression "(param_3 & 0xf000) == 0x4000" (parenthesized_expression "(param_3 & 0xf000)" ( (binary_expression "param_3 & 0xf000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }" { (expression_statement "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);" (assignment_expression "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000)" identifier = (call_expression "(*(code *)PTR_acl_get_file_00044534)(param_1,0x4000)" (parenthesized_expression "(*(code *)PTR_acl_get_file_00044534)" ( (pointer_expression "*(code *)PTR_acl_get_file_00044534" * (cast_expression "(code *)PTR_acl_get_file_00044534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x4000)" ( identifier , number_literal )))) ;) (expression_statement "param_4[2] = uVar1;" (assignment_expression "param_4[2] = uVar1" (subscript_expression "param_4[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return -(uint)(uVar1 == 0);" return (unary_expression "-(uint)(uVar1 == 0)" - (call_expression "(uint)(uVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00044514)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00044514)()" (parenthesized_expression "(*(code *)PTR___errno_location_00044514)" ( (pointer_expression "*(code *)PTR___errno_location_00044514" * (cast_expression "(code *)PTR___errno_location_00044514" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar3 = acl_errno_valid(*puVar2);" (assignment_expression "iVar3 = acl_errno_valid(*puVar2)" identifier = (call_expression "acl_errno_valid(*puVar2)" identifier (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) )))) ;) (return_statement "return -iVar3;" return (unary_expression "-iVar3" - identifier) ;) })))
(translation_unit "int get_permissions(char *name,int desc,mode_t mode,permission_context *ctx)\n\n{\n  undefined3 extraout_var;\n  acl_t p_Var1;\n  int *piVar2;\n  _Bool _Var3;\n  \n  *(undefined1 *)&ctx->acl = 0;\n  *(undefined1 *)((int)&ctx->acl + 1) = 0;\n  *(undefined1 *)((int)&ctx->acl + 2) = 0;\n  *(undefined1 *)((int)&ctx->acl + 3) = 0;\n  *(undefined1 *)&ctx->default_acl = 0;\n  *(undefined1 *)((int)&ctx->default_acl + 1) = 0;\n  *(undefined1 *)((int)&ctx->default_acl + 2) = 0;\n  *(undefined1 *)((int)&ctx->default_acl + 3) = 0;\n  ctx->acls_not_supported = false;\n  ctx->field_0xd = 0;\n  ctx->field_0xe = 0;\n  ctx->field_0xf = 0;\n  ctx->mode = mode;\n  if (desc == -1) {\n    p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x8000);\n    ctx->acl = p_Var1;\n  }\n  else {\n    p_Var1 = (acl_t)(*(code *)PTR_acl_get_fd_0004457c)(desc);\n    ctx->acl = p_Var1;\n  }\n  if (p_Var1 != (acl_t)0x0) {\n    if ((mode & 0xf000) == 0x4000) {\n      p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x4000);\n      ctx->default_acl = p_Var1;\n      return -(uint)(p_Var1 == (acl_t)0x0);\n    }\n    return 0;\n  }\n  piVar2 = (int *)(*(code *)PTR___errno_location_00044514)();\n  _Var3 = acl_errno_valid(*piVar2);\n  return -CONCAT31(extraout_var,_Var3);\n}\n\n" (function_definition "int get_permissions(char *name,int desc,mode_t mode,permission_context *ctx)\n\n{\n  undefined3 extraout_var;\n  acl_t p_Var1;\n  int *piVar2;\n  _Bool _Var3;\n  \n  *(undefined1 *)&ctx->acl = 0;\n  *(undefined1 *)((int)&ctx->acl + 1) = 0;\n  *(undefined1 *)((int)&ctx->acl + 2) = 0;\n  *(undefined1 *)((int)&ctx->acl + 3) = 0;\n  *(undefined1 *)&ctx->default_acl = 0;\n  *(undefined1 *)((int)&ctx->default_acl + 1) = 0;\n  *(undefined1 *)((int)&ctx->default_acl + 2) = 0;\n  *(undefined1 *)((int)&ctx->default_acl + 3) = 0;\n  ctx->acls_not_supported = false;\n  ctx->field_0xd = 0;\n  ctx->field_0xe = 0;\n  ctx->field_0xf = 0;\n  ctx->mode = mode;\n  if (desc == -1) {\n    p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x8000);\n    ctx->acl = p_Var1;\n  }\n  else {\n    p_Var1 = (acl_t)(*(code *)PTR_acl_get_fd_0004457c)(desc);\n    ctx->acl = p_Var1;\n  }\n  if (p_Var1 != (acl_t)0x0) {\n    if ((mode & 0xf000) == 0x4000) {\n      p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x4000);\n      ctx->default_acl = p_Var1;\n      return -(uint)(p_Var1 == (acl_t)0x0);\n    }\n    return 0;\n  }\n  piVar2 = (int *)(*(code *)PTR___errno_location_00044514)();\n  _Var3 = acl_errno_valid(*piVar2);\n  return -CONCAT31(extraout_var,_Var3);\n}" primitive_type (function_declarator "get_permissions(char *name,int desc,mode_t mode,permission_context *ctx)" identifier (parameter_list "(char *name,int desc,mode_t mode,permission_context *ctx)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int desc" primitive_type identifier) , (parameter_declaration "mode_t mode" type_identifier identifier) , (parameter_declaration "permission_context *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) ))) (compound_statement "{\n  undefined3 extraout_var;\n  acl_t p_Var1;\n  int *piVar2;\n  _Bool _Var3;\n  \n  *(undefined1 *)&ctx->acl = 0;\n  *(undefined1 *)((int)&ctx->acl + 1) = 0;\n  *(undefined1 *)((int)&ctx->acl + 2) = 0;\n  *(undefined1 *)((int)&ctx->acl + 3) = 0;\n  *(undefined1 *)&ctx->default_acl = 0;\n  *(undefined1 *)((int)&ctx->default_acl + 1) = 0;\n  *(undefined1 *)((int)&ctx->default_acl + 2) = 0;\n  *(undefined1 *)((int)&ctx->default_acl + 3) = 0;\n  ctx->acls_not_supported = false;\n  ctx->field_0xd = 0;\n  ctx->field_0xe = 0;\n  ctx->field_0xf = 0;\n  ctx->mode = mode;\n  if (desc == -1) {\n    p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x8000);\n    ctx->acl = p_Var1;\n  }\n  else {\n    p_Var1 = (acl_t)(*(code *)PTR_acl_get_fd_0004457c)(desc);\n    ctx->acl = p_Var1;\n  }\n  if (p_Var1 != (acl_t)0x0) {\n    if ((mode & 0xf000) == 0x4000) {\n      p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x4000);\n      ctx->default_acl = p_Var1;\n      return -(uint)(p_Var1 == (acl_t)0x0);\n    }\n    return 0;\n  }\n  piVar2 = (int *)(*(code *)PTR___errno_location_00044514)();\n  _Var3 = acl_errno_valid(*piVar2);\n  return -CONCAT31(extraout_var,_Var3);\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "acl_t p_Var1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "_Bool _Var3;" type_identifier identifier ;) (expression_statement "*(undefined1 *)&ctx->acl = 0;" (assignment_expression "*(undefined1 *)&ctx->acl = 0" (pointer_expression "*(undefined1 *)&ctx->acl" * (cast_expression "(undefined1 *)&ctx->acl" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ctx->acl" & (field_expression "ctx->acl" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)&ctx->acl + 1) = 0;" (assignment_expression "*(undefined1 *)((int)&ctx->acl + 1) = 0" (pointer_expression "*(undefined1 *)((int)&ctx->acl + 1)" * (cast_expression "(undefined1 *)((int)&ctx->acl + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ctx->acl + 1)" ( (binary_expression "(int)&ctx->acl + 1" (cast_expression "(int)&ctx->acl" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ctx->acl" & (field_expression "ctx->acl" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)&ctx->acl + 2) = 0;" (assignment_expression "*(undefined1 *)((int)&ctx->acl + 2) = 0" (pointer_expression "*(undefined1 *)((int)&ctx->acl + 2)" * (cast_expression "(undefined1 *)((int)&ctx->acl + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ctx->acl + 2)" ( (binary_expression "(int)&ctx->acl + 2" (cast_expression "(int)&ctx->acl" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ctx->acl" & (field_expression "ctx->acl" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)&ctx->acl + 3) = 0;" (assignment_expression "*(undefined1 *)((int)&ctx->acl + 3) = 0" (pointer_expression "*(undefined1 *)((int)&ctx->acl + 3)" * (cast_expression "(undefined1 *)((int)&ctx->acl + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ctx->acl + 3)" ( (binary_expression "(int)&ctx->acl + 3" (cast_expression "(int)&ctx->acl" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ctx->acl" & (field_expression "ctx->acl" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)&ctx->default_acl = 0;" (assignment_expression "*(undefined1 *)&ctx->default_acl = 0" (pointer_expression "*(undefined1 *)&ctx->default_acl" * (cast_expression "(undefined1 *)&ctx->default_acl" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ctx->default_acl" & (field_expression "ctx->default_acl" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)&ctx->default_acl + 1) = 0;" (assignment_expression "*(undefined1 *)((int)&ctx->default_acl + 1) = 0" (pointer_expression "*(undefined1 *)((int)&ctx->default_acl + 1)" * (cast_expression "(undefined1 *)((int)&ctx->default_acl + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ctx->default_acl + 1)" ( (binary_expression "(int)&ctx->default_acl + 1" (cast_expression "(int)&ctx->default_acl" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ctx->default_acl" & (field_expression "ctx->default_acl" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)&ctx->default_acl + 2) = 0;" (assignment_expression "*(undefined1 *)((int)&ctx->default_acl + 2) = 0" (pointer_expression "*(undefined1 *)((int)&ctx->default_acl + 2)" * (cast_expression "(undefined1 *)((int)&ctx->default_acl + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ctx->default_acl + 2)" ( (binary_expression "(int)&ctx->default_acl + 2" (cast_expression "(int)&ctx->default_acl" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ctx->default_acl" & (field_expression "ctx->default_acl" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)&ctx->default_acl + 3) = 0;" (assignment_expression "*(undefined1 *)((int)&ctx->default_acl + 3) = 0" (pointer_expression "*(undefined1 *)((int)&ctx->default_acl + 3)" * (cast_expression "(undefined1 *)((int)&ctx->default_acl + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ctx->default_acl + 3)" ( (binary_expression "(int)&ctx->default_acl + 3" (cast_expression "(int)&ctx->default_acl" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ctx->default_acl" & (field_expression "ctx->default_acl" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "ctx->acls_not_supported = false;" (assignment_expression "ctx->acls_not_supported = false" (field_expression "ctx->acls_not_supported" identifier -> field_identifier) = false) ;) (expression_statement "ctx->field_0xd = 0;" (assignment_expression "ctx->field_0xd = 0" (field_expression "ctx->field_0xd" identifier -> field_identifier) = number_literal) ;) (expression_statement "ctx->field_0xe = 0;" (assignment_expression "ctx->field_0xe = 0" (field_expression "ctx->field_0xe" identifier -> field_identifier) = number_literal) ;) (expression_statement "ctx->field_0xf = 0;" (assignment_expression "ctx->field_0xf = 0" (field_expression "ctx->field_0xf" identifier -> field_identifier) = number_literal) ;) (expression_statement "ctx->mode = mode;" (assignment_expression "ctx->mode = mode" (field_expression "ctx->mode" identifier -> field_identifier) = identifier) ;) (if_statement "if (desc == -1) {\n    p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x8000);\n    ctx->acl = p_Var1;\n  }\n  else {\n    p_Var1 = (acl_t)(*(code *)PTR_acl_get_fd_0004457c)(desc);\n    ctx->acl = p_Var1;\n  }" if (parenthesized_expression "(desc == -1)" ( (binary_expression "desc == -1" identifier == number_literal) )) (compound_statement "{\n    p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x8000);\n    ctx->acl = p_Var1;\n  }" { (expression_statement "p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x8000);" (assignment_expression "p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x8000)" identifier = (call_expression "(acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x8000)" (call_expression "(acl_t)(*(code *)PTR_acl_get_file_00044534)" (parenthesized_expression "(acl_t)" ( identifier )) (argument_list "(*(code *)PTR_acl_get_file_00044534)" ( (pointer_expression "*(code *)PTR_acl_get_file_00044534" * (cast_expression "(code *)PTR_acl_get_file_00044534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(name,0x8000)" ( identifier , number_literal )))) ;) (expression_statement "ctx->acl = p_Var1;" (assignment_expression "ctx->acl = p_Var1" (field_expression "ctx->acl" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n    p_Var1 = (acl_t)(*(code *)PTR_acl_get_fd_0004457c)(desc);\n    ctx->acl = p_Var1;\n  }" else (compound_statement "{\n    p_Var1 = (acl_t)(*(code *)PTR_acl_get_fd_0004457c)(desc);\n    ctx->acl = p_Var1;\n  }" { (expression_statement "p_Var1 = (acl_t)(*(code *)PTR_acl_get_fd_0004457c)(desc);" (assignment_expression "p_Var1 = (acl_t)(*(code *)PTR_acl_get_fd_0004457c)(desc)" identifier = (call_expression "(acl_t)(*(code *)PTR_acl_get_fd_0004457c)(desc)" (call_expression "(acl_t)(*(code *)PTR_acl_get_fd_0004457c)" (parenthesized_expression "(acl_t)" ( identifier )) (argument_list "(*(code *)PTR_acl_get_fd_0004457c)" ( (pointer_expression "*(code *)PTR_acl_get_fd_0004457c" * (cast_expression "(code *)PTR_acl_get_fd_0004457c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(desc)" ( identifier )))) ;) (expression_statement "ctx->acl = p_Var1;" (assignment_expression "ctx->acl = p_Var1" (field_expression "ctx->acl" identifier -> field_identifier) = identifier) ;) }))) (if_statement "if (p_Var1 != (acl_t)0x0) {\n    if ((mode & 0xf000) == 0x4000) {\n      p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x4000);\n      ctx->default_acl = p_Var1;\n      return -(uint)(p_Var1 == (acl_t)0x0);\n    }\n    return 0;\n  }" if (parenthesized_expression "(p_Var1 != (acl_t)0x0)" ( (binary_expression "p_Var1 != (acl_t)0x0" identifier != (cast_expression "(acl_t)0x0" ( (type_descriptor "acl_t" type_identifier) ) number_literal)) )) (compound_statement "{\n    if ((mode & 0xf000) == 0x4000) {\n      p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x4000);\n      ctx->default_acl = p_Var1;\n      return -(uint)(p_Var1 == (acl_t)0x0);\n    }\n    return 0;\n  }" { (if_statement "if ((mode & 0xf000) == 0x4000) {\n      p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x4000);\n      ctx->default_acl = p_Var1;\n      return -(uint)(p_Var1 == (acl_t)0x0);\n    }" if (parenthesized_expression "((mode & 0xf000) == 0x4000)" ( (binary_expression "(mode & 0xf000) == 0x4000" (parenthesized_expression "(mode & 0xf000)" ( (binary_expression "mode & 0xf000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x4000);\n      ctx->default_acl = p_Var1;\n      return -(uint)(p_Var1 == (acl_t)0x0);\n    }" { (expression_statement "p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x4000);" (assignment_expression "p_Var1 = (acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x4000)" identifier = (call_expression "(acl_t)(*(code *)PTR_acl_get_file_00044534)(name,0x4000)" (call_expression "(acl_t)(*(code *)PTR_acl_get_file_00044534)" (parenthesized_expression "(acl_t)" ( identifier )) (argument_list "(*(code *)PTR_acl_get_file_00044534)" ( (pointer_expression "*(code *)PTR_acl_get_file_00044534" * (cast_expression "(code *)PTR_acl_get_file_00044534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(name,0x4000)" ( identifier , number_literal )))) ;) (expression_statement "ctx->default_acl = p_Var1;" (assignment_expression "ctx->default_acl = p_Var1" (field_expression "ctx->default_acl" identifier -> field_identifier) = identifier) ;) (return_statement "return -(uint)(p_Var1 == (acl_t)0x0);" return (unary_expression "-(uint)(p_Var1 == (acl_t)0x0)" - (call_expression "(uint)(p_Var1 == (acl_t)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(p_Var1 == (acl_t)0x0)" ( (binary_expression "p_Var1 == (acl_t)0x0" identifier == (cast_expression "(acl_t)0x0" ( (type_descriptor "acl_t" type_identifier) ) number_literal)) )))) ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_00044514)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00044514)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00044514)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00044514)()" (parenthesized_expression "(*(code *)PTR___errno_location_00044514)" ( (pointer_expression "*(code *)PTR___errno_location_00044514" * (cast_expression "(code *)PTR___errno_location_00044514" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "_Var3 = acl_errno_valid(*piVar2);" (assignment_expression "_Var3 = acl_errno_valid(*piVar2)" identifier = (call_expression "acl_errno_valid(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (return_statement "return -CONCAT31(extraout_var,_Var3);" return (unary_expression "-CONCAT31(extraout_var,_Var3)" - (call_expression "CONCAT31(extraout_var,_Var3)" identifier (argument_list "(extraout_var,_Var3)" ( identifier , identifier )))) ;) })))
(translation_unit "int get_permissions(undefined4 param_1,int param_2,uint param_3,uint *param_4)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  *(undefined1 *)(param_4 + 1) = 0;\n  *(undefined1 *)((int)param_4 + 5) = 0;\n  *(undefined1 *)((int)param_4 + 6) = 0;\n  *(undefined1 *)((int)param_4 + 7) = 0;\n  *(undefined1 *)(param_4 + 2) = 0;\n  *(undefined1 *)((int)param_4 + 9) = 0;\n  *(undefined1 *)((int)param_4 + 10) = 0;\n  *(undefined1 *)((int)param_4 + 0xb) = 0;\n  *(undefined1 *)(param_4 + 3) = 0;\n  *(undefined1 *)((int)param_4 + 0xd) = 0;\n  *(undefined1 *)((int)param_4 + 0xe) = 0;\n  *(undefined1 *)((int)param_4 + 0xf) = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();\n  iVar3 = acl_errno_valid(*puVar2);\n  return -iVar3;\n}\n\n" (function_definition "int get_permissions(undefined4 param_1,int param_2,uint param_3,uint *param_4)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  *(undefined1 *)(param_4 + 1) = 0;\n  *(undefined1 *)((int)param_4 + 5) = 0;\n  *(undefined1 *)((int)param_4 + 6) = 0;\n  *(undefined1 *)((int)param_4 + 7) = 0;\n  *(undefined1 *)(param_4 + 2) = 0;\n  *(undefined1 *)((int)param_4 + 9) = 0;\n  *(undefined1 *)((int)param_4 + 10) = 0;\n  *(undefined1 *)((int)param_4 + 0xb) = 0;\n  *(undefined1 *)(param_4 + 3) = 0;\n  *(undefined1 *)((int)param_4 + 0xd) = 0;\n  *(undefined1 *)((int)param_4 + 0xe) = 0;\n  *(undefined1 *)((int)param_4 + 0xf) = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();\n  iVar3 = acl_errno_valid(*puVar2);\n  return -iVar3;\n}" primitive_type (function_declarator "get_permissions(undefined4 param_1,int param_2,uint param_3,uint *param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3,uint *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  *(undefined1 *)(param_4 + 1) = 0;\n  *(undefined1 *)((int)param_4 + 5) = 0;\n  *(undefined1 *)((int)param_4 + 6) = 0;\n  *(undefined1 *)((int)param_4 + 7) = 0;\n  *(undefined1 *)(param_4 + 2) = 0;\n  *(undefined1 *)((int)param_4 + 9) = 0;\n  *(undefined1 *)((int)param_4 + 10) = 0;\n  *(undefined1 *)((int)param_4 + 0xb) = 0;\n  *(undefined1 *)(param_4 + 3) = 0;\n  *(undefined1 *)((int)param_4 + 0xd) = 0;\n  *(undefined1 *)((int)param_4 + 0xe) = 0;\n  *(undefined1 *)((int)param_4 + 0xf) = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();\n  iVar3 = acl_errno_valid(*puVar2);\n  return -iVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "*(undefined1 *)(param_4 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_4 + 1) = 0" (pointer_expression "*(undefined1 *)(param_4 + 1)" * (cast_expression "(undefined1 *)(param_4 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 5) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 5) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 5)" * (cast_expression "(undefined1 *)((int)param_4 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 5)" ( (binary_expression "(int)param_4 + 5" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 6) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 6) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 6)" * (cast_expression "(undefined1 *)((int)param_4 + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 6)" ( (binary_expression "(int)param_4 + 6" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 7) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 7) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 7)" * (cast_expression "(undefined1 *)((int)param_4 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 7)" ( (binary_expression "(int)param_4 + 7" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_4 + 2) = 0;" (assignment_expression "*(undefined1 *)(param_4 + 2) = 0" (pointer_expression "*(undefined1 *)(param_4 + 2)" * (cast_expression "(undefined1 *)(param_4 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 2)" ( (binary_expression "param_4 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 9) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 9) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 9)" * (cast_expression "(undefined1 *)((int)param_4 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 9)" ( (binary_expression "(int)param_4 + 9" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 10) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 10) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 10)" * (cast_expression "(undefined1 *)((int)param_4 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 10)" ( (binary_expression "(int)param_4 + 10" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 0xb) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xb) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xb)" * (cast_expression "(undefined1 *)((int)param_4 + 0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 0xb)" ( (binary_expression "(int)param_4 + 0xb" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_4 + 3) = 0;" (assignment_expression "*(undefined1 *)(param_4 + 3) = 0" (pointer_expression "*(undefined1 *)(param_4 + 3)" * (cast_expression "(undefined1 *)(param_4 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 3)" ( (binary_expression "param_4 + 3" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 0xd) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xd) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xd)" * (cast_expression "(undefined1 *)((int)param_4 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 0xd)" ( (binary_expression "(int)param_4 + 0xd" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 0xe) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xe) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xe)" * (cast_expression "(undefined1 *)((int)param_4 + 0xe)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 0xe)" ( (binary_expression "(int)param_4 + 0xe" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_4 + 0xf) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xf) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xf)" * (cast_expression "(undefined1 *)((int)param_4 + 0xf)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 0xf)" ( (binary_expression "(int)param_4 + 0xf" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*param_4 = param_3;" (assignment_expression "*param_4 = param_3" (pointer_expression "*param_4" * identifier) = identifier) ;) (if_statement "if (param_2 == -1) {\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }" if (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);" (assignment_expression "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000)" identifier = (call_expression "(*(code *)PTR_acl_get_file_00044534)(param_1,0x8000)" (parenthesized_expression "(*(code *)PTR_acl_get_file_00044534)" ( (pointer_expression "*(code *)PTR_acl_get_file_00044534" * (cast_expression "(code *)PTR_acl_get_file_00044534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x8000)" ( identifier , number_literal )))) ;) (expression_statement "param_4[1] = uVar1;" (assignment_expression "param_4[1] = uVar1" (subscript_expression "param_4[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }" else (compound_statement "{\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2)" identifier = (call_expression "(*(code *)PTR_acl_get_fd_0004457c)(param_2)" (parenthesized_expression "(*(code *)PTR_acl_get_fd_0004457c)" ( (pointer_expression "*(code *)PTR_acl_get_fd_0004457c" * (cast_expression "(code *)PTR_acl_get_fd_0004457c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "param_4[1] = uVar1;" (assignment_expression "param_4[1] = uVar1" (subscript_expression "param_4[1]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }" { (if_statement "if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }" if (parenthesized_expression "((param_3 & 0xf000) == 0x4000)" ( (binary_expression "(param_3 & 0xf000) == 0x4000" (parenthesized_expression "(param_3 & 0xf000)" ( (binary_expression "param_3 & 0xf000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }" { (expression_statement "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);" (assignment_expression "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000)" identifier = (call_expression "(*(code *)PTR_acl_get_file_00044534)(param_1,0x4000)" (parenthesized_expression "(*(code *)PTR_acl_get_file_00044534)" ( (pointer_expression "*(code *)PTR_acl_get_file_00044534" * (cast_expression "(code *)PTR_acl_get_file_00044534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x4000)" ( identifier , number_literal )))) ;) (expression_statement "param_4[2] = uVar1;" (assignment_expression "param_4[2] = uVar1" (subscript_expression "param_4[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return -(uint)(uVar1 == 0);" return (unary_expression "-(uint)(uVar1 == 0)" - (call_expression "(uint)(uVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00044514)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00044514)()" (parenthesized_expression "(*(code *)PTR___errno_location_00044514)" ( (pointer_expression "*(code *)PTR___errno_location_00044514" * (cast_expression "(code *)PTR___errno_location_00044514" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar3 = acl_errno_valid(*puVar2);" (assignment_expression "iVar3 = acl_errno_valid(*puVar2)" identifier = (call_expression "acl_errno_valid(*puVar2)" identifier (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) )))) ;) (return_statement "return -iVar3;" return (unary_expression "-iVar3" - identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) ;) })) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (return_statement return (unary_expression - IDENT) ;) })))
(function_definition "int get_permissions(undefined4 param_1,int param_2,uint param_3,uint *param_4)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  *(undefined1 *)(param_4 + 1) = 0;\n  *(undefined1 *)((int)param_4 + 5) = 0;\n  *(undefined1 *)((int)param_4 + 6) = 0;\n  *(undefined1 *)((int)param_4 + 7) = 0;\n  *(undefined1 *)(param_4 + 2) = 0;\n  *(undefined1 *)((int)param_4 + 9) = 0;\n  *(undefined1 *)((int)param_4 + 10) = 0;\n  *(undefined1 *)((int)param_4 + 0xb) = 0;\n  *(undefined1 *)(param_4 + 3) = 0;\n  *(undefined1 *)((int)param_4 + 0xd) = 0;\n  *(undefined1 *)((int)param_4 + 0xe) = 0;\n  *(undefined1 *)((int)param_4 + 0xf) = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();\n  iVar3 = acl_errno_valid(*puVar2);\n  return -iVar3;\n}" (primitive_type "int") (function_declarator "get_permissions(undefined4 param_1,int param_2,uint param_3,uint *param_4)" (identifier "get_permissions") (parameter_list "(undefined4 param_1,int param_2,uint param_3,uint *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "uint *param_4" (type_identifier "uint") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  *(undefined1 *)(param_4 + 1) = 0;\n  *(undefined1 *)((int)param_4 + 5) = 0;\n  *(undefined1 *)((int)param_4 + 6) = 0;\n  *(undefined1 *)((int)param_4 + 7) = 0;\n  *(undefined1 *)(param_4 + 2) = 0;\n  *(undefined1 *)((int)param_4 + 9) = 0;\n  *(undefined1 *)((int)param_4 + 10) = 0;\n  *(undefined1 *)((int)param_4 + 0xb) = 0;\n  *(undefined1 *)(param_4 + 3) = 0;\n  *(undefined1 *)((int)param_4 + 0xd) = 0;\n  *(undefined1 *)((int)param_4 + 0xe) = 0;\n  *(undefined1 *)((int)param_4 + 0xf) = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();\n  iVar3 = acl_errno_valid(*puVar2);\n  return -iVar3;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "*(undefined1 *)(param_4 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_4 + 1) = 0" (pointer_expression "*(undefined1 *)(param_4 + 1)" (* "*") (cast_expression "(undefined1 *)(param_4 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 1)" (( "(") (binary_expression "param_4 + 1" (identifier "param_4") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_4 + 5) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 5) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 5)" (* "*") (cast_expression "(undefined1 *)((int)param_4 + 5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + 5)" (( "(") (binary_expression "(int)param_4 + 5" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (number_literal "5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_4 + 6) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 6) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 6)" (* "*") (cast_expression "(undefined1 *)((int)param_4 + 6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + 6)" (( "(") (binary_expression "(int)param_4 + 6" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (number_literal "6")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_4 + 7) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 7) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 7)" (* "*") (cast_expression "(undefined1 *)((int)param_4 + 7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + 7)" (( "(") (binary_expression "(int)param_4 + 7" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (number_literal "7")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_4 + 2) = 0;" (assignment_expression "*(undefined1 *)(param_4 + 2) = 0" (pointer_expression "*(undefined1 *)(param_4 + 2)" (* "*") (cast_expression "(undefined1 *)(param_4 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 2)" (( "(") (binary_expression "param_4 + 2" (identifier "param_4") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_4 + 9) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 9) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 9)" (* "*") (cast_expression "(undefined1 *)((int)param_4 + 9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + 9)" (( "(") (binary_expression "(int)param_4 + 9" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (number_literal "9")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_4 + 10) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 10) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 10)" (* "*") (cast_expression "(undefined1 *)((int)param_4 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + 10)" (( "(") (binary_expression "(int)param_4 + 10" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_4 + 0xb) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xb) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xb)" (* "*") (cast_expression "(undefined1 *)((int)param_4 + 0xb)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + 0xb)" (( "(") (binary_expression "(int)param_4 + 0xb" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (number_literal "0xb")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_4 + 3) = 0;" (assignment_expression "*(undefined1 *)(param_4 + 3) = 0" (pointer_expression "*(undefined1 *)(param_4 + 3)" (* "*") (cast_expression "(undefined1 *)(param_4 + 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 3)" (( "(") (binary_expression "param_4 + 3" (identifier "param_4") (+ "+") (number_literal "3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_4 + 0xd) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xd) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xd)" (* "*") (cast_expression "(undefined1 *)((int)param_4 + 0xd)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + 0xd)" (( "(") (binary_expression "(int)param_4 + 0xd" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (number_literal "0xd")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_4 + 0xe) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xe) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xe)" (* "*") (cast_expression "(undefined1 *)((int)param_4 + 0xe)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + 0xe)" (( "(") (binary_expression "(int)param_4 + 0xe" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (number_literal "0xe")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_4 + 0xf) = 0;" (assignment_expression "*(undefined1 *)((int)param_4 + 0xf) = 0" (pointer_expression "*(undefined1 *)((int)param_4 + 0xf)" (* "*") (cast_expression "(undefined1 *)((int)param_4 + 0xf)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + 0xf)" (( "(") (binary_expression "(int)param_4 + 0xf" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (number_literal "0xf")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_4 = param_3;" (assignment_expression "*param_4 = param_3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_2 == -1) {\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }" (if "if") (parenthesized_expression "(param_2 == -1)" (( "(") (binary_expression "param_2 == -1" (identifier "param_2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);\n    param_4[1] = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);" (assignment_expression "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_acl_get_file_00044534)(param_1,0x8000)" (parenthesized_expression "(*(code *)PTR_acl_get_file_00044534)" (( "(") (pointer_expression "*(code *)PTR_acl_get_file_00044534" (* "*") (cast_expression "(code *)PTR_acl_get_file_00044534" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_acl_get_file_00044534"))) () ")")) (argument_list "(param_1,0x8000)" (( "(") (identifier "param_1") (, ",") (number_literal "0x8000") () ")")))) (; ";")) (expression_statement "param_4[1] = uVar1;" (assignment_expression "param_4[1] = uVar1" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }" (else "else") (compound_statement "{\n    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);\n    param_4[1] = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_acl_get_fd_0004457c)(param_2)" (parenthesized_expression "(*(code *)PTR_acl_get_fd_0004457c)" (( "(") (pointer_expression "*(code *)PTR_acl_get_fd_0004457c" (* "*") (cast_expression "(code *)PTR_acl_get_fd_0004457c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_acl_get_fd_0004457c"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "param_4[1] = uVar1;" (assignment_expression "param_4[1] = uVar1" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (} "}")))) (if_statement "if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }" ({ "{") (if_statement "if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }" (if "if") (parenthesized_expression "((param_3 & 0xf000) == 0x4000)" (( "(") (binary_expression "(param_3 & 0xf000) == 0x4000" (parenthesized_expression "(param_3 & 0xf000)" (( "(") (binary_expression "param_3 & 0xf000" (identifier "param_3") (& "&") (number_literal "0xf000")) () ")")) (== "==") (number_literal "0x4000")) () ")")) (compound_statement "{\n      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);" (assignment_expression "uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_acl_get_file_00044534)(param_1,0x4000)" (parenthesized_expression "(*(code *)PTR_acl_get_file_00044534)" (( "(") (pointer_expression "*(code *)PTR_acl_get_file_00044534" (* "*") (cast_expression "(code *)PTR_acl_get_file_00044534" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_acl_get_file_00044534"))) () ")")) (argument_list "(param_1,0x4000)" (( "(") (identifier "param_1") (, ",") (number_literal "0x4000") () ")")))) (; ";")) (expression_statement "param_4[2] = uVar1;" (assignment_expression "param_4[2] = uVar1" (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return -(uint)(uVar1 == 0);" (return "return") (unary_expression "-(uint)(uVar1 == 0)" (- "-") (call_expression "(uint)(uVar1 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00044514)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00044514)()" (parenthesized_expression "(*(code *)PTR___errno_location_00044514)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00044514" (* "*") (cast_expression "(code *)PTR___errno_location_00044514" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00044514"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar3 = acl_errno_valid(*puVar2);" (assignment_expression "iVar3 = acl_errno_valid(*puVar2)" (identifier "iVar3") (= "=") (call_expression "acl_errno_valid(*puVar2)" (identifier "acl_errno_valid") (argument_list "(*puVar2)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) () ")")))) (; ";")) (return_statement "return -iVar3;" (return "return") (unary_expression "-iVar3" (- "-") (identifier "iVar3")) (; ";")) (} "}")))

int function_1(char *name,int var_1,type_1 var_3,type_2 *ctx)

{
  type_3 extraout_var;
  type_4 var_2;
  int *piVar2;
  type_5 _Var3;
  
  *(type_6 *)&ctx->acl = 0;
  *(type_6 *)((int)&ctx->acl + 1) = 0;
  *(type_6 *)((int)&ctx->acl + 2) = 0;
  *(type_6 *)((int)&ctx->acl + 3) = 0;
  *(type_6 *)&ctx->default_acl = 0;
  *(type_6 *)((int)&ctx->default_acl + 1) = 0;
  *(type_6 *)((int)&ctx->default_acl + 2) = 0;
  *(type_6 *)((int)&ctx->default_acl + 3) = 0;
  ctx->acls_not_supported = false;
  ctx->field_0xd = 0;
  ctx->field_0xe = 0;
  ctx->field_0xf = 0;
  ctx->var_3 = var_3;
  if (var_1 == -1) {
    var_2 = (type_4)(*(type_7 *)PTR_acl_get_file_00044534)(name,0x8000);
    ctx->acl = var_2;
  }
  else {
    var_2 = (type_4)(*(type_7 *)PTR_acl_get_fd_0004457c)(var_1);
    ctx->acl = var_2;
  }
  if (var_2 != (type_4)0x0) {
    if ((var_3 & 0xf000) == 0x4000) {
      var_2 = (type_4)(*(type_7 *)PTR_acl_get_file_00044534)(name,0x4000);
      ctx->default_acl = var_2;
      return -(uint)(var_2 == (type_4)0x0);
    }
    return 0;
  }
  piVar2 = (int *)(*(type_7 *)PTR___errno_location_00044514)();
  _Var3 = var_4(*piVar2);
  return -var_5(extraout_var,_Var3);
}


(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: (primitive_type) declarator: (identifier)) (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: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (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: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) 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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) 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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) 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: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) 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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) 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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) 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: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) 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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) 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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (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: (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) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (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) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (unary_expression argument: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (return_statement (unary_expression argument: (identifier))))))

int MASKED(undefined4 param_1,int param_2,uint param_3,uint *param_4)

{
  uint uVar1;
  undefined4 *puVar2;
  int iVar3;
  
  *(undefined1 *)(param_4 + 1) = 0;
  *(undefined1 *)((int)param_4 + 5) = 0;
  *(undefined1 *)((int)param_4 + 6) = 0;
  *(undefined1 *)((int)param_4 + 7) = 0;
  *(undefined1 *)(param_4 + 2) = 0;
  *(undefined1 *)((int)param_4 + 9) = 0;
  *(undefined1 *)((int)param_4 + 10) = 0;
  *(undefined1 *)((int)param_4 + 0xb) = 0;
  *(undefined1 *)(param_4 + 3) = 0;
  *(undefined1 *)((int)param_4 + 0xd) = 0;
  *(undefined1 *)((int)param_4 + 0xe) = 0;
  *(undefined1 *)((int)param_4 + 0xf) = 0;
  *param_4 = param_3;
  if (param_2 == -1) {
    uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x8000);
    param_4[1] = uVar1;
  }
  else {
    uVar1 = (*(code *)PTR_acl_get_fd_0004457c)(param_2);
    param_4[1] = uVar1;
  }
  if (uVar1 != 0) {
    if ((param_3 & 0xf000) == 0x4000) {
      uVar1 = (*(code *)PTR_acl_get_file_00044534)(param_1,0x4000);
      param_4[2] = uVar1;
      return -(uint)(uVar1 == 0);
    }
    return 0;
  }
  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00044514)();
  iVar3 = acl_errno_valid(*puVar2);
  return -iVar3;
}

