
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  _Bool _Var1;
  acl_t p_Var2;
  int *piVar3;
  
  ctx->acl = (acl_t)0x0;
  ctx->default_acl = (acl_t)0x0;
  *(undefined4 *)&ctx->acls_not_supported = 0;
  ctx->mode = mode;
  if (desc == -1) {
    p_Var2 = (acl_t)acl_get_file(name,0x8000);
    ctx->acl = p_Var2;
  }
  else {
    p_Var2 = (acl_t)acl_get_fd(desc);
    ctx->acl = p_Var2;
  }
  if (p_Var2 != (acl_t)0x0) {
    if ((mode & 0xf000) == 0x4000) {
      p_Var2 = (acl_t)acl_get_file(name,0x4000);
      ctx->default_acl = p_Var2;
      return -(uint)(p_Var2 == (acl_t)0x0);
    }
    return 0;
  }
  piVar3 = __errno_location();
  _Var1 = acl_errno_valid(*piVar3);
  return -(uint)_Var1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  uint uVar1;
  int *piVar2;
  
  param_4[1] = 0;
  param_4[2] = 0;
  param_4[3] = 0;
  *param_4 = param_3;
  if (param_2 == -1) {
    uVar1 = acl_get_file(param_1,0x8000);
    param_4[1] = uVar1;
  }
  else {
    uVar1 = acl_get_fd(param_2);
    param_4[1] = uVar1;
  }
  if (uVar1 != 0) {
    if ((param_3 & 0xf000) == 0x4000) {
      uVar1 = acl_get_file(param_1,0x4000);
      param_4[2] = uVar1;
      return -(uint)(uVar1 == 0);
    }
    return 0;
  }
  piVar2 = __errno_location();
  uVar1 = FUN_0002c390(*piVar2);
  return -(uVar1 & 0xff);
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x1c]
CALL 0x000132d0
ADD EBX,0x12324
MOV EDI,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x14]
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI + 0x8],0x0
MOV dword ptr [ESI + 0xc],0x0
MOV dword ptr [ESI],EDI
CMP EDX,-0x1
JZ 0x00028d30
SUB ESP,0xc
PUSH EDX
CALL 0x00012410
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
TEST EAX,EAX
JZ 0x00028d4b
AND EDI,0xf000
XOR EAX,EAX
CMP EDI,0x4000
JZ 0x00028d70
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH 0x8000
PUSH dword ptr [ESP + 0x1c]
CALL 0x00012530
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
TEST EAX,EAX
JNZ 0x00028d19
CALL 0x00012590
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0002c390
ADD ESP,0x10
MOVZX EAX,AL
POP EBX
POP ESI
NEG EAX
POP EDI
RET
SUB ESP,0x8
PUSH 0x4000
PUSH dword ptr [ESP + 0x1c]
CALL 0x00012530
ADD ESP,0x10
TEST EAX,EAX
MOV dword ptr [ESI + 0x8],EAX
POP EBX
SETZ AL
POP ESI
POP EDI
MOVZX EAX,AL
NEG EAX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00028cd0(undefined4 param_1,int param_2,uint param_3,uint *param_4)\n\n{\n  uint uVar1;\n  int *piVar2;\n  \n  param_4[1] = 0;\n  param_4[2] = 0;\n  param_4[3] = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = acl_get_file(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  piVar2 = __errno_location();\n  uVar1 = FUN_0002c390(*piVar2);\n  return -(uVar1 & 0xff);\n}\n\n" comment (function_definition "int FUN_00028cd0(undefined4 param_1,int param_2,uint param_3,uint *param_4)\n\n{\n  uint uVar1;\n  int *piVar2;\n  \n  param_4[1] = 0;\n  param_4[2] = 0;\n  param_4[3] = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = acl_get_file(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  piVar2 = __errno_location();\n  uVar1 = FUN_0002c390(*piVar2);\n  return -(uVar1 & 0xff);\n}" primitive_type (function_declarator "FUN_00028cd0(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  int *piVar2;\n  \n  param_4[1] = 0;\n  param_4[2] = 0;\n  param_4[3] = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = acl_get_file(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  piVar2 = __errno_location();\n  uVar1 = FUN_0002c390(*piVar2);\n  return -(uVar1 & 0xff);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "param_4[1] = 0;" (assignment_expression "param_4[1] = 0" (subscript_expression "param_4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_4[2] = 0;" (assignment_expression "param_4[2] = 0" (subscript_expression "param_4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_4[3] = 0;" (assignment_expression "param_4[3] = 0" (subscript_expression "param_4[3]" 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 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = acl_get_fd(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 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }" { (expression_statement "uVar1 = acl_get_file(param_1,0x8000);" (assignment_expression "uVar1 = acl_get_file(param_1,0x8000)" identifier = (call_expression "acl_get_file(param_1,0x8000)" 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 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }" else (compound_statement "{\n    uVar1 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }" { (expression_statement "uVar1 = acl_get_fd(param_2);" (assignment_expression "uVar1 = acl_get_fd(param_2)" identifier = (call_expression "acl_get_fd(param_2)" 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 = acl_get_file(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 = acl_get_file(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 = acl_get_file(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 = acl_get_file(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }" { (expression_statement "uVar1 = acl_get_file(param_1,0x4000);" (assignment_expression "uVar1 = acl_get_file(param_1,0x4000)" identifier = (call_expression "acl_get_file(param_1,0x4000)" 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 "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = FUN_0002c390(*piVar2);" (assignment_expression "uVar1 = FUN_0002c390(*piVar2)" identifier = (call_expression "FUN_0002c390(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (return_statement "return -(uVar1 & 0xff);" return (unary_expression "-(uVar1 & 0xff)" - (parenthesized_expression "(uVar1 & 0xff)" ( (binary_expression "uVar1 & 0xff" identifier & number_literal) ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint get_permissions(char *name,int desc,mode_t mode,permission_context *ctx)\n\n{\n  _Bool _Var1;\n  acl_t p_Var2;\n  int *piVar3;\n  \n  ctx->acl = (acl_t)0x0;\n  ctx->default_acl = (acl_t)0x0;\n  *(undefined4 *)&ctx->acls_not_supported = 0;\n  ctx->mode = mode;\n  if (desc == -1) {\n    p_Var2 = (acl_t)acl_get_file(name,0x8000);\n    ctx->acl = p_Var2;\n  }\n  else {\n    p_Var2 = (acl_t)acl_get_fd(desc);\n    ctx->acl = p_Var2;\n  }\n  if (p_Var2 != (acl_t)0x0) {\n    if ((mode & 0xf000) == 0x4000) {\n      p_Var2 = (acl_t)acl_get_file(name,0x4000);\n      ctx->default_acl = p_Var2;\n      return -(uint)(p_Var2 == (acl_t)0x0);\n    }\n    return 0;\n  }\n  piVar3 = __errno_location();\n  _Var1 = acl_errno_valid(*piVar3);\n  return -(uint)_Var1;\n}\n\n" comment (function_definition "int get_permissions(char *name,int desc,mode_t mode,permission_context *ctx)\n\n{\n  _Bool _Var1;\n  acl_t p_Var2;\n  int *piVar3;\n  \n  ctx->acl = (acl_t)0x0;\n  ctx->default_acl = (acl_t)0x0;\n  *(undefined4 *)&ctx->acls_not_supported = 0;\n  ctx->mode = mode;\n  if (desc == -1) {\n    p_Var2 = (acl_t)acl_get_file(name,0x8000);\n    ctx->acl = p_Var2;\n  }\n  else {\n    p_Var2 = (acl_t)acl_get_fd(desc);\n    ctx->acl = p_Var2;\n  }\n  if (p_Var2 != (acl_t)0x0) {\n    if ((mode & 0xf000) == 0x4000) {\n      p_Var2 = (acl_t)acl_get_file(name,0x4000);\n      ctx->default_acl = p_Var2;\n      return -(uint)(p_Var2 == (acl_t)0x0);\n    }\n    return 0;\n  }\n  piVar3 = __errno_location();\n  _Var1 = acl_errno_valid(*piVar3);\n  return -(uint)_Var1;\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  _Bool _Var1;\n  acl_t p_Var2;\n  int *piVar3;\n  \n  ctx->acl = (acl_t)0x0;\n  ctx->default_acl = (acl_t)0x0;\n  *(undefined4 *)&ctx->acls_not_supported = 0;\n  ctx->mode = mode;\n  if (desc == -1) {\n    p_Var2 = (acl_t)acl_get_file(name,0x8000);\n    ctx->acl = p_Var2;\n  }\n  else {\n    p_Var2 = (acl_t)acl_get_fd(desc);\n    ctx->acl = p_Var2;\n  }\n  if (p_Var2 != (acl_t)0x0) {\n    if ((mode & 0xf000) == 0x4000) {\n      p_Var2 = (acl_t)acl_get_file(name,0x4000);\n      ctx->default_acl = p_Var2;\n      return -(uint)(p_Var2 == (acl_t)0x0);\n    }\n    return 0;\n  }\n  piVar3 = __errno_location();\n  _Var1 = acl_errno_valid(*piVar3);\n  return -(uint)_Var1;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "acl_t p_Var2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "ctx->acl = (acl_t)0x0;" (assignment_expression "ctx->acl = (acl_t)0x0" (field_expression "ctx->acl" identifier -> field_identifier) = (cast_expression "(acl_t)0x0" ( (type_descriptor "acl_t" type_identifier) ) number_literal)) ;) (expression_statement "ctx->default_acl = (acl_t)0x0;" (assignment_expression "ctx->default_acl = (acl_t)0x0" (field_expression "ctx->default_acl" identifier -> field_identifier) = (cast_expression "(acl_t)0x0" ( (type_descriptor "acl_t" type_identifier) ) number_literal)) ;) (expression_statement "*(undefined4 *)&ctx->acls_not_supported = 0;" (assignment_expression "*(undefined4 *)&ctx->acls_not_supported = 0" (pointer_expression "*(undefined4 *)&ctx->acls_not_supported" * (cast_expression "(undefined4 *)&ctx->acls_not_supported" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ctx->acls_not_supported" & (field_expression "ctx->acls_not_supported" 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_Var2 = (acl_t)acl_get_file(name,0x8000);\n    ctx->acl = p_Var2;\n  }\n  else {\n    p_Var2 = (acl_t)acl_get_fd(desc);\n    ctx->acl = p_Var2;\n  }" if (parenthesized_expression "(desc == -1)" ( (binary_expression "desc == -1" identifier == number_literal) )) (compound_statement "{\n    p_Var2 = (acl_t)acl_get_file(name,0x8000);\n    ctx->acl = p_Var2;\n  }" { (expression_statement "p_Var2 = (acl_t)acl_get_file(name,0x8000);" (assignment_expression "p_Var2 = (acl_t)acl_get_file(name,0x8000)" identifier = (cast_expression "(acl_t)acl_get_file(name,0x8000)" ( (type_descriptor "acl_t" type_identifier) ) (call_expression "acl_get_file(name,0x8000)" identifier (argument_list "(name,0x8000)" ( identifier , number_literal ))))) ;) (expression_statement "ctx->acl = p_Var2;" (assignment_expression "ctx->acl = p_Var2" (field_expression "ctx->acl" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n    p_Var2 = (acl_t)acl_get_fd(desc);\n    ctx->acl = p_Var2;\n  }" else (compound_statement "{\n    p_Var2 = (acl_t)acl_get_fd(desc);\n    ctx->acl = p_Var2;\n  }" { (expression_statement "p_Var2 = (acl_t)acl_get_fd(desc);" (assignment_expression "p_Var2 = (acl_t)acl_get_fd(desc)" identifier = (cast_expression "(acl_t)acl_get_fd(desc)" ( (type_descriptor "acl_t" type_identifier) ) (call_expression "acl_get_fd(desc)" identifier (argument_list "(desc)" ( identifier ))))) ;) (expression_statement "ctx->acl = p_Var2;" (assignment_expression "ctx->acl = p_Var2" (field_expression "ctx->acl" identifier -> field_identifier) = identifier) ;) }))) (if_statement "if (p_Var2 != (acl_t)0x0) {\n    if ((mode & 0xf000) == 0x4000) {\n      p_Var2 = (acl_t)acl_get_file(name,0x4000);\n      ctx->default_acl = p_Var2;\n      return -(uint)(p_Var2 == (acl_t)0x0);\n    }\n    return 0;\n  }" if (parenthesized_expression "(p_Var2 != (acl_t)0x0)" ( (binary_expression "p_Var2 != (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_Var2 = (acl_t)acl_get_file(name,0x4000);\n      ctx->default_acl = p_Var2;\n      return -(uint)(p_Var2 == (acl_t)0x0);\n    }\n    return 0;\n  }" { (if_statement "if ((mode & 0xf000) == 0x4000) {\n      p_Var2 = (acl_t)acl_get_file(name,0x4000);\n      ctx->default_acl = p_Var2;\n      return -(uint)(p_Var2 == (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_Var2 = (acl_t)acl_get_file(name,0x4000);\n      ctx->default_acl = p_Var2;\n      return -(uint)(p_Var2 == (acl_t)0x0);\n    }" { (expression_statement "p_Var2 = (acl_t)acl_get_file(name,0x4000);" (assignment_expression "p_Var2 = (acl_t)acl_get_file(name,0x4000)" identifier = (cast_expression "(acl_t)acl_get_file(name,0x4000)" ( (type_descriptor "acl_t" type_identifier) ) (call_expression "acl_get_file(name,0x4000)" identifier (argument_list "(name,0x4000)" ( identifier , number_literal ))))) ;) (expression_statement "ctx->default_acl = p_Var2;" (assignment_expression "ctx->default_acl = p_Var2" (field_expression "ctx->default_acl" identifier -> field_identifier) = identifier) ;) (return_statement "return -(uint)(p_Var2 == (acl_t)0x0);" return (unary_expression "-(uint)(p_Var2 == (acl_t)0x0)" - (call_expression "(uint)(p_Var2 == (acl_t)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(p_Var2 == (acl_t)0x0)" ( (binary_expression "p_Var2 == (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 "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "_Var1 = acl_errno_valid(*piVar3);" (assignment_expression "_Var1 = acl_errno_valid(*piVar3)" identifier = (call_expression "acl_errno_valid(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (return_statement "return -(uint)_Var1;" return (unary_expression "-(uint)_Var1" - (cast_expression "(uint)_Var1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) })))
(translation_unit "int FUN_00028cd0(undefined4 param_1,int param_2,uint param_3,uint *param_4)\n\n{\n  uint uVar1;\n  int *piVar2;\n  \n  param_4[1] = 0;\n  param_4[2] = 0;\n  param_4[3] = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = acl_get_file(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  piVar2 = __errno_location();\n  uVar1 = FUN_0002c390(*piVar2);\n  return -(uVar1 & 0xff);\n}\n\n" (function_definition "int FUN_00028cd0(undefined4 param_1,int param_2,uint param_3,uint *param_4)\n\n{\n  uint uVar1;\n  int *piVar2;\n  \n  param_4[1] = 0;\n  param_4[2] = 0;\n  param_4[3] = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = acl_get_file(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  piVar2 = __errno_location();\n  uVar1 = FUN_0002c390(*piVar2);\n  return -(uVar1 & 0xff);\n}" primitive_type (function_declarator "FUN_00028cd0(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  int *piVar2;\n  \n  param_4[1] = 0;\n  param_4[2] = 0;\n  param_4[3] = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = acl_get_file(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  piVar2 = __errno_location();\n  uVar1 = FUN_0002c390(*piVar2);\n  return -(uVar1 & 0xff);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "param_4[1] = 0;" (assignment_expression "param_4[1] = 0" (subscript_expression "param_4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_4[2] = 0;" (assignment_expression "param_4[2] = 0" (subscript_expression "param_4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_4[3] = 0;" (assignment_expression "param_4[3] = 0" (subscript_expression "param_4[3]" 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 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = acl_get_fd(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 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }" { (expression_statement "uVar1 = acl_get_file(param_1,0x8000);" (assignment_expression "uVar1 = acl_get_file(param_1,0x8000)" identifier = (call_expression "acl_get_file(param_1,0x8000)" 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 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }" else (compound_statement "{\n    uVar1 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }" { (expression_statement "uVar1 = acl_get_fd(param_2);" (assignment_expression "uVar1 = acl_get_fd(param_2)" identifier = (call_expression "acl_get_fd(param_2)" 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 = acl_get_file(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 = acl_get_file(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 = acl_get_file(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 = acl_get_file(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }" { (expression_statement "uVar1 = acl_get_file(param_1,0x4000);" (assignment_expression "uVar1 = acl_get_file(param_1,0x4000)" identifier = (call_expression "acl_get_file(param_1,0x4000)" 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 "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = FUN_0002c390(*piVar2);" (assignment_expression "uVar1 = FUN_0002c390(*piVar2)" identifier = (call_expression "FUN_0002c390(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (return_statement "return -(uVar1 & 0xff);" return (unary_expression "-(uVar1 & 0xff)" - (parenthesized_expression "(uVar1 & 0xff)" ( (binary_expression "uVar1 & 0xff" identifier & number_literal) ))) ;) })))
(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) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression 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 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 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 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 = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (return_statement return (unary_expression - (parenthesized_expression ( (binary_expression IDENT & LIT) ))) ;) })))
(function_definition "int FUN_00028cd0(undefined4 param_1,int param_2,uint param_3,uint *param_4)\n\n{\n  uint uVar1;\n  int *piVar2;\n  \n  param_4[1] = 0;\n  param_4[2] = 0;\n  param_4[3] = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = acl_get_file(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  piVar2 = __errno_location();\n  uVar1 = FUN_0002c390(*piVar2);\n  return -(uVar1 & 0xff);\n}" (primitive_type "int") (function_declarator "FUN_00028cd0(undefined4 param_1,int param_2,uint param_3,uint *param_4)" (identifier "FUN_00028cd0") (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  int *piVar2;\n  \n  param_4[1] = 0;\n  param_4[2] = 0;\n  param_4[3] = 0;\n  *param_4 = param_3;\n  if (param_2 == -1) {\n    uVar1 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }\n  if (uVar1 != 0) {\n    if ((param_3 & 0xf000) == 0x4000) {\n      uVar1 = acl_get_file(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }\n    return 0;\n  }\n  piVar2 = __errno_location();\n  uVar1 = FUN_0002c390(*piVar2);\n  return -(uVar1 & 0xff);\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (expression_statement "param_4[1] = 0;" (assignment_expression "param_4[1] = 0" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_4[2] = 0;" (assignment_expression "param_4[2] = 0" (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_4[3] = 0;" (assignment_expression "param_4[3] = 0" (subscript_expression "param_4[3]" (identifier "param_4") ([ "[") (number_literal "3") (] "]")) (= "=") (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 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }\n  else {\n    uVar1 = acl_get_fd(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 = acl_get_file(param_1,0x8000);\n    param_4[1] = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = acl_get_file(param_1,0x8000);" (assignment_expression "uVar1 = acl_get_file(param_1,0x8000)" (identifier "uVar1") (= "=") (call_expression "acl_get_file(param_1,0x8000)" (identifier "acl_get_file") (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 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }" (else "else") (compound_statement "{\n    uVar1 = acl_get_fd(param_2);\n    param_4[1] = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = acl_get_fd(param_2);" (assignment_expression "uVar1 = acl_get_fd(param_2)" (identifier "uVar1") (= "=") (call_expression "acl_get_fd(param_2)" (identifier "acl_get_fd") (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 = acl_get_file(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 = acl_get_file(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 = acl_get_file(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 = acl_get_file(param_1,0x4000);\n      param_4[2] = uVar1;\n      return -(uint)(uVar1 == 0);\n    }" ({ "{") (expression_statement "uVar1 = acl_get_file(param_1,0x4000);" (assignment_expression "uVar1 = acl_get_file(param_1,0x4000)" (identifier "uVar1") (= "=") (call_expression "acl_get_file(param_1,0x4000)" (identifier "acl_get_file") (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 "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar1 = FUN_0002c390(*piVar2);" (assignment_expression "uVar1 = FUN_0002c390(*piVar2)" (identifier "uVar1") (= "=") (call_expression "FUN_0002c390(*piVar2)" (identifier "FUN_0002c390") (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")")))) (; ";")) (return_statement "return -(uVar1 & 0xff);" (return "return") (unary_expression "-(uVar1 & 0xff)" (- "-") (parenthesized_expression "(uVar1 & 0xff)" (( "(") (binary_expression "uVar1 & 0xff" (identifier "uVar1") (& "&") (number_literal "0xff")) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  type_3 _Var1;
  type_4 var_4;
  int *piVar3;
  
  ctx->acl = (type_4)0x0;
  ctx->default_acl = (type_4)0x0;
  *(type_5 *)&ctx->acls_not_supported = 0;
  ctx->var_5 = var_5;
  if (var_1 == -1) {
    var_4 = (type_4)var_2(name,0x8000);
    ctx->acl = var_4;
  }
  else {
    var_4 = (type_4)var_3(var_1);
    ctx->acl = var_4;
  }
  if (var_4 != (type_4)0x0) {
    if ((var_5 & 0xf000) == 0x4000) {
      var_4 = (type_4)var_2(name,0x4000);
      ctx->default_acl = var_4;
      return -(type_6)(var_4 == (type_4)0x0);
    }
    return 0;
  }
  piVar3 = var_6();
  _Var1 = var_7(*piVar3);
  return -(type_6)_Var1;
}


(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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (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: (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: (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: (call_expression function: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  uint uVar1;
  int *piVar2;
  
  param_4[1] = 0;
  param_4[2] = 0;
  param_4[3] = 0;
  *param_4 = param_3;
  if (param_2 == -1) {
    uVar1 = acl_get_file(param_1,0x8000);
    param_4[1] = uVar1;
  }
  else {
    uVar1 = acl_get_fd(param_2);
    param_4[1] = uVar1;
  }
  if (uVar1 != 0) {
    if ((param_3 & 0xf000) == 0x4000) {
      uVar1 = acl_get_file(param_1,0x4000);
      param_4[2] = uVar1;
      return -(uint)(uVar1 == 0);
    }
    return 0;
  }
  piVar2 = __errno_location();
  uVar1 = FUN_0002c390(*piVar2);
  return -(uVar1 & 0xff);
}

