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

int acl_access_nontrivial(acl_t acl)

{
  int iVar1;
  int in_GS_OFFSET;
  acl_entry_t ace;
  acl_tag_t tag;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x28bb9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = acl_get_entry(acl,0,&ace);
  if (0 < iVar1) {
    do {
      iVar1 = acl_get_tag_type(ace,&tag);
      if (iVar1 < 0) {
        iVar1 = -1;
        break;
      }
      if ((0x1f < tag - 1U) || ((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0)) {
        iVar1 = 1;
        break;
      }
      iVar1 = acl_get_entry(acl,1,&ace);
    } while (0 < iVar1);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int FUN_00028bb0(undefined4 param_1)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x28bb9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = acl_get_entry(param_1,0,&local_28);
  if (0 < iVar1) {
    do {
      iVar1 = acl_get_tag_type(local_28,&local_24);
      if (iVar1 < 0) {
        iVar1 = -1;
        break;
      }
      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {
        iVar1 = 1;
        break;
      }
      iVar1 = acl_get_entry(param_1,1,&local_28);
    } while (0 < iVar1);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002d5d0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000132d0
ADD EBX,0x12447
SUB ESP,0x20
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x10],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x34]
LEA EDI,[ESP + 0x8]
PUSH EDI
PUSH 0x0
PUSH ESI
CALL 0x000125d0
ADD ESP,0x10
TEST EAX,EAX
JLE 0x00028c32
LEA EBP,[ESP + 0x8]
JMP 0x00028c0d
MOV EDX,0x80000009
BT EDX,EAX
JNC 0x00028c2d
SUB ESP,0x4
PUSH EDI
PUSH 0x1
PUSH ESI
CALL 0x000125d0
ADD ESP,0x10
TEST EAX,EAX
JLE 0x00028c32
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [ESP + 0x10]
CALL 0x000122e0
ADD ESP,0x10
TEST EAX,EAX
JS 0x00028c50
MOV EAX,dword ptr [ESP + 0x8]
SUB EAX,0x1
CMP EAX,0x1f
JBE 0x00028bf0
MOV EAX,0x1
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x00028c57
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,0xffffffff
JMP 0x00028c32
CALL 0x0002d5d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00028bb0(undefined4 param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x28bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = acl_get_entry(param_1,0,&local_28);\n  if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002d5d0();\n}\n\n" comment (function_definition "int FUN_00028bb0(undefined4 param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x28bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = acl_get_entry(param_1,0,&local_28);\n  if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002d5d0();\n}" primitive_type (function_declarator "FUN_00028bb0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x28bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = acl_get_entry(param_1,0,&local_28);\n  if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002d5d0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x28bb9;" (assignment_expression "uStack_14 = 0x28bb9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = acl_get_entry(param_1,0,&local_28);" (assignment_expression "iVar1 = acl_get_entry(param_1,0,&local_28)" identifier = (call_expression "acl_get_entry(param_1,0,&local_28)" identifier (argument_list "(param_1,0,&local_28)" ( identifier , number_literal , (pointer_expression "&local_28" & identifier) )))) ;) (if_statement "if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }" { (do_statement "do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);" do (compound_statement "{\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    }" { (expression_statement "iVar1 = acl_get_tag_type(local_28,&local_24);" (assignment_expression "iVar1 = acl_get_tag_type(local_28,&local_24)" identifier = (call_expression "acl_get_tag_type(local_28,&local_24)" identifier (argument_list "(local_28,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar1 = -1;\n        break;\n      }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (break_statement "break;" break ;) })) (if_statement "if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }" if (parenthesized_expression "((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0))" ( (binary_expression "(0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)" (parenthesized_expression "(0x1f < local_24 - 1U)" ( (binary_expression "0x1f < local_24 - 1U" number_literal < (binary_expression "local_24 - 1U" identifier - number_literal)) )) || (parenthesized_expression "((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)" ( (binary_expression "(0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0" (parenthesized_expression "(0x80000009U >> (local_24 - 1U & 0x1f) & 1)" ( (binary_expression "0x80000009U >> (local_24 - 1U & 0x1f) & 1" (binary_expression "0x80000009U >> (local_24 - 1U & 0x1f)" number_literal >> (parenthesized_expression "(local_24 - 1U & 0x1f)" ( (binary_expression "local_24 - 1U & 0x1f" (binary_expression "local_24 - 1U" identifier - number_literal) & number_literal) ))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        iVar1 = 1;\n        break;\n      }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (break_statement "break;" break ;) })) (expression_statement "iVar1 = acl_get_entry(param_1,1,&local_28);" (assignment_expression "iVar1 = acl_get_entry(param_1,1,&local_28)" identifier = (call_expression "acl_get_entry(param_1,1,&local_28)" identifier (argument_list "(param_1,1,&local_28)" ( identifier , number_literal , (pointer_expression "&local_28" & identifier) )))) ;) }) while (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "FUN_0002d5d0();" (call_expression "FUN_0002d5d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint acl_access_nontrivial(acl_t acl)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  acl_entry_t ace;\n  acl_tag_t tag;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x28bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = acl_get_entry(acl,0,&ace);\n  if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(ace,&tag);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < tag - 1U) || ((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(acl,1,&ace);\n    } while (0 < iVar1);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int acl_access_nontrivial(acl_t acl)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  acl_entry_t ace;\n  acl_tag_t tag;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x28bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = acl_get_entry(acl,0,&ace);\n  if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(ace,&tag);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < tag - 1U) || ((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(acl,1,&ace);\n    } while (0 < iVar1);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "acl_access_nontrivial(acl_t acl)" identifier (parameter_list "(acl_t acl)" ( (parameter_declaration "acl_t acl" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  acl_entry_t ace;\n  acl_tag_t tag;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x28bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = acl_get_entry(acl,0,&ace);\n  if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(ace,&tag);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < tag - 1U) || ((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(acl,1,&ace);\n    } while (0 < iVar1);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "acl_entry_t ace;" type_identifier identifier ;) (declaration "acl_tag_t tag;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x28bb9;" (assignment_expression "uStack_14 = 0x28bb9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = acl_get_entry(acl,0,&ace);" (assignment_expression "iVar1 = acl_get_entry(acl,0,&ace)" identifier = (call_expression "acl_get_entry(acl,0,&ace)" identifier (argument_list "(acl,0,&ace)" ( identifier , number_literal , (pointer_expression "&ace" & identifier) )))) ;) (if_statement "if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(ace,&tag);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < tag - 1U) || ((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(acl,1,&ace);\n    } while (0 < iVar1);\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    do {\n      iVar1 = acl_get_tag_type(ace,&tag);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < tag - 1U) || ((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(acl,1,&ace);\n    } while (0 < iVar1);\n  }" { (do_statement "do {\n      iVar1 = acl_get_tag_type(ace,&tag);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < tag - 1U) || ((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(acl,1,&ace);\n    } while (0 < iVar1);" do (compound_statement "{\n      iVar1 = acl_get_tag_type(ace,&tag);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < tag - 1U) || ((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(acl,1,&ace);\n    }" { (expression_statement "iVar1 = acl_get_tag_type(ace,&tag);" (assignment_expression "iVar1 = acl_get_tag_type(ace,&tag)" identifier = (call_expression "acl_get_tag_type(ace,&tag)" identifier (argument_list "(ace,&tag)" ( identifier , (pointer_expression "&tag" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar1 = -1;\n        break;\n      }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (break_statement "break;" break ;) })) (if_statement "if ((0x1f < tag - 1U) || ((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }" if (parenthesized_expression "((0x1f < tag - 1U) || ((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0))" ( (binary_expression "(0x1f < tag - 1U) || ((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0)" (parenthesized_expression "(0x1f < tag - 1U)" ( (binary_expression "0x1f < tag - 1U" number_literal < (binary_expression "tag - 1U" identifier - number_literal)) )) || (parenthesized_expression "((0x80000009U >> (tag - 1U & 0x1f) & 1) == 0)" ( (binary_expression "(0x80000009U >> (tag - 1U & 0x1f) & 1) == 0" (parenthesized_expression "(0x80000009U >> (tag - 1U & 0x1f) & 1)" ( (binary_expression "0x80000009U >> (tag - 1U & 0x1f) & 1" (binary_expression "0x80000009U >> (tag - 1U & 0x1f)" number_literal >> (parenthesized_expression "(tag - 1U & 0x1f)" ( (binary_expression "tag - 1U & 0x1f" (binary_expression "tag - 1U" identifier - number_literal) & number_literal) ))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        iVar1 = 1;\n        break;\n      }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (break_statement "break;" break ;) })) (expression_statement "iVar1 = acl_get_entry(acl,1,&ace);" (assignment_expression "iVar1 = acl_get_entry(acl,1,&ace)" identifier = (call_expression "acl_get_entry(acl,1,&ace)" identifier (argument_list "(acl,1,&ace)" ( identifier , number_literal , (pointer_expression "&ace" & identifier) )))) ;) }) while (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_00028bb0(undefined4 param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x28bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = acl_get_entry(param_1,0,&local_28);\n  if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0002d5d0();\n}\n\n" (function_definition "int FUN_00028bb0(undefined4 param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x28bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = acl_get_entry(param_1,0,&local_28);\n  if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0002d5d0();\n}" primitive_type (function_declarator "FUN_00028bb0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x28bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = acl_get_entry(param_1,0,&local_28);\n  if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0002d5d0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x28bb9;" (assignment_expression "uStack_14 = 0x28bb9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = acl_get_entry(param_1,0,&local_28);" (assignment_expression "iVar1 = acl_get_entry(param_1,0,&local_28)" identifier = (call_expression "acl_get_entry(param_1,0,&local_28)" identifier (argument_list "(param_1,0,&local_28)" ( identifier , number_literal , (pointer_expression "&local_28" & identifier) )))) ;) (if_statement "if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }" { (do_statement "do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);" do (compound_statement "{\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    }" { (expression_statement "iVar1 = acl_get_tag_type(local_28,&local_24);" (assignment_expression "iVar1 = acl_get_tag_type(local_28,&local_24)" identifier = (call_expression "acl_get_tag_type(local_28,&local_24)" identifier (argument_list "(local_28,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar1 = -1;\n        break;\n      }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (break_statement "break;" break ;) })) (if_statement "if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }" if (parenthesized_expression "((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0))" ( (binary_expression "(0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)" (parenthesized_expression "(0x1f < local_24 - 1U)" ( (binary_expression "0x1f < local_24 - 1U" number_literal < (binary_expression "local_24 - 1U" identifier - number_literal)) )) || (parenthesized_expression "((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)" ( (binary_expression "(0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0" (parenthesized_expression "(0x80000009U >> (local_24 - 1U & 0x1f) & 1)" ( (binary_expression "0x80000009U >> (local_24 - 1U & 0x1f) & 1" (binary_expression "0x80000009U >> (local_24 - 1U & 0x1f)" number_literal >> (parenthesized_expression "(local_24 - 1U & 0x1f)" ( (binary_expression "local_24 - 1U & 0x1f" (binary_expression "local_24 - 1U" identifier - number_literal) & number_literal) ))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        iVar1 = 1;\n        break;\n      }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (break_statement "break;" break ;) })) (expression_statement "iVar1 = acl_get_entry(param_1,1,&local_28);" (assignment_expression "iVar1 = acl_get_entry(param_1,1,&local_28)" identifier = (call_expression "acl_get_entry(param_1,1,&local_28)" identifier (argument_list "(param_1,1,&local_28)" ( identifier , number_literal , (pointer_expression "&local_28" & identifier) )))) ;) }) while (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "FUN_0002d5d0();" (call_expression "FUN_0002d5d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (break_statement break ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT >> (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))) & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) )))) ;) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_00028bb0(undefined4 param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x28bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = acl_get_entry(param_1,0,&local_28);\n  if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0002d5d0();\n}" (primitive_type "int") (function_declarator "FUN_00028bb0(undefined4 param_1)" (identifier "FUN_00028bb0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x28bb9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = acl_get_entry(param_1,0,&local_28);\n  if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0002d5d0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x28bb9;" (assignment_expression "uStack_14 = 0x28bb9" (identifier "uStack_14") (= "=") (number_literal "0x28bb9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar1 = acl_get_entry(param_1,0,&local_28);" (assignment_expression "iVar1 = acl_get_entry(param_1,0,&local_28)" (identifier "iVar1") (= "=") (call_expression "acl_get_entry(param_1,0,&local_28)" (identifier "acl_get_entry") (argument_list "(param_1,0,&local_28)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")")))) (; ";")) (if_statement "if (0 < iVar1) {\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }" (if "if") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);\n  }" ({ "{") (do_statement "do {\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    } while (0 < iVar1);" (do "do") (compound_statement "{\n      iVar1 = acl_get_tag_type(local_28,&local_24);\n      if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }\n      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }\n      iVar1 = acl_get_entry(param_1,1,&local_28);\n    }" ({ "{") (expression_statement "iVar1 = acl_get_tag_type(local_28,&local_24);" (assignment_expression "iVar1 = acl_get_tag_type(local_28,&local_24)" (identifier "iVar1") (= "=") (call_expression "acl_get_tag_type(local_28,&local_24)" (identifier "acl_get_tag_type") (argument_list "(local_28,&local_24)" (( "(") (identifier "local_28") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n        iVar1 = -1;\n        break;\n      }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = -1;\n        break;\n      }" ({ "{") (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (if_statement "if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {\n        iVar1 = 1;\n        break;\n      }" (if "if") (parenthesized_expression "((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0))" (( "(") (binary_expression "(0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)" (parenthesized_expression "(0x1f < local_24 - 1U)" (( "(") (binary_expression "0x1f < local_24 - 1U" (number_literal "0x1f") (< "<") (binary_expression "local_24 - 1U" (identifier "local_24") (- "-") (number_literal "1U"))) () ")")) (|| "||") (parenthesized_expression "((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)" (( "(") (binary_expression "(0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0" (parenthesized_expression "(0x80000009U >> (local_24 - 1U & 0x1f) & 1)" (( "(") (binary_expression "0x80000009U >> (local_24 - 1U & 0x1f) & 1" (binary_expression "0x80000009U >> (local_24 - 1U & 0x1f)" (number_literal "0x80000009U") (>> ">>") (parenthesized_expression "(local_24 - 1U & 0x1f)" (( "(") (binary_expression "local_24 - 1U & 0x1f" (binary_expression "local_24 - 1U" (identifier "local_24") (- "-") (number_literal "1U")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        iVar1 = 1;\n        break;\n      }" ({ "{") (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "iVar1 = acl_get_entry(param_1,1,&local_28);" (assignment_expression "iVar1 = acl_get_entry(param_1,1,&local_28)" (identifier "iVar1") (= "=") (call_expression "acl_get_entry(param_1,1,&local_28)" (identifier "acl_get_entry") (argument_list "(param_1,1,&local_28)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "FUN_0002d5d0();" (call_expression "FUN_0002d5d0()" (identifier "FUN_0002d5d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(type_1 acl)

{
  int var_3;
  int var_1;
  type_2 ace;
  type_3 var_5;
  int var_6;
  type_4 uStack_14;
  
  uStack_14 = 0x28bb9;
  var_6 = *(int *)(var_1 + 0x14);
  var_3 = var_2(acl,0,&ace);
  if (0 < var_3) {
    do {
      var_3 = var_4(ace,&var_5);
      if (var_3 < 0) {
        var_3 = -1;
        break;
      }
      if ((0x1f < var_5 - 1U) || ((0x80000009U >> (var_5 - 1U & 0x1f) & 1) == 0)) {
        var_3 = 1;
        break;
      }
      var_3 = var_2(acl,1,&ace);
    } while (0 < var_3);
  }
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


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

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

int MASKED(undefined4 param_1)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x28bb9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = acl_get_entry(param_1,0,&local_28);
  if (0 < iVar1) {
    do {
      iVar1 = acl_get_tag_type(local_28,&local_24);
      if (iVar1 < 0) {
        iVar1 = -1;
        break;
      }
      if ((0x1f < local_24 - 1U) || ((0x80000009U >> (local_24 - 1U & 0x1f) & 1) == 0)) {
        iVar1 = 1;
        break;
      }
      iVar1 = acl_get_entry(param_1,1,&local_28);
    } while (0 < iVar1);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002d5d0();
}

