
int pollwrap_get_fd_events(pollwrapper *pw,int fd)

{
  void *pvVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  pollwrapper *pw_00;
  undefined *puVar6;
  pollwrap_fdtopos f2p_find;
  
  puVar6 = PTR___stack_chk_guard_000b0c9c;
  iVar4 = *(int *)PTR___stack_chk_guard_000b0c9c;
  if (-1 < fd) {
    f2p_find.fd = fd;
    pvVar1 = find234(pw->fdtopos,&f2p_find,(cmpfn234)0x0);
    if (pvVar1 == (void *)0x0) {
      iVar2 = 0;
    }
    else {
      iVar2 = (int)pw->fds[*(int *)((int)pvVar1 + 4)].revents;
    }
    if (iVar4 == *(int *)puVar6) {
      return iVar2;
    }
    (*(code *)PTR___stack_chk_fail_000b0c70)();
  }
  puVar6 = PTR_DAT_000b01d0 + -0x21e4;
  pw_00 = (pollwrapper *)(PTR_DAT_000b01d0 + -0x21d4);
  (*(code *)PTR___assert_fail_000b0ac0)(pw_00,puVar6,0x78,PTR_DAT_000b01d0 + -0x21a0);
  uVar3 = pollwrap_get_fd_events(pw_00,(int)puVar6);
  uVar5 = (uint)((uVar3 & 0xd9) != 0);
  if ((uVar3 & 0x10c) != 0) {
    uVar5 = uVar5 | 2;
  }
  if ((uVar3 & 2) != 0) {
    uVar5 = uVar5 | 4;
  }
  return uVar5;
}



uint pollwrap_get_fd_events(int *param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  int local_1c [2];
  int local_14;
  
  puVar1 = PTR___stack_chk_guard_000b0c9c;
  local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;
  if (-1 < param_2) {
    local_1c[0] = param_2;
    iVar2 = find234(param_1[3],local_1c,0);
    if (iVar2 == 0) {
      uVar3 = 0;
    }
    else {
      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);
    }
    if (local_14 == *(int *)puVar1) {
      return uVar3;
    }
    (*(code *)PTR___stack_chk_fail_000b0c70)();
  }
  (*(code *)PTR___assert_fail_000b0ac0)
            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);
  uVar3 = pollwrap_get_fd_events();
  uVar4 = (uint)((uVar3 & 0xd9) != 0);
  if ((uVar3 & 0x10c) != 0) {
    uVar4 = uVar4 | 2;
  }
  if ((uVar3 & 2) != 0) {
    uVar4 = uVar4 | 4;
  }
  return uVar4;
}


lui gp,0x3
addiu gp,gp,0x37e4
addu gp,gp,t9
addiu sp,sp,-0x38
sw s0,0x2c(sp)
lw s0,-0x74b4(gp)
sw gp,0x10(sp)
sw ra,0x34(sp)
sw s1,0x30(sp)
lw v1,0x0(s0)
sw v1,0x24(sp)
bltz a1,0x00084a0c
_lw t9,-0x7e98(gp)
or s1,a0,zero
lw a0,0xc(a0)
or v0,a1,zero
or a2,zero,zero
sw v0,0x1c(sp)
bal 0x0007e394
_addiu a1,sp,0x1c
beq v0,zero,0x000849f8
_lw gp,0x10(sp)
lw v1,0x4(v0)
lw v0,0x0(s1)
sll v1,v1,0x3
addu v0,v0,v1
lh v0,0x6(v0)
lw a0,0x24(sp)
lw v1,0x0(s0)
bne a0,v1,0x00084a00
_lw ra,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x38
b 0x000849d8
_or v0,zero,zero
lw t9,-0x74e0(gp)
jalr t9
_nop
lw a3,-0x7f80(gp)
li a2,0x78
lw a1,-0x7f80(gp)
lw a0,-0x7f80(gp)
lw t9,-0x7690(gp)
addiu a3,a3,-0x21a0
addiu a1,a1,-0x21e4
jalr t9
_addiu a0,a0,-0x21d4
(translation_unit "uint pollwrap_get_fd_events(int *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int local_1c [2];\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if (-1 < param_2) {\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  (*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);\n  uVar3 = pollwrap_get_fd_events();\n  uVar4 = (uint)((uVar3 & 0xd9) != 0);\n  if ((uVar3 & 0x10c) != 0) {\n    uVar4 = uVar4 | 2;\n  }\n  if ((uVar3 & 2) != 0) {\n    uVar4 = uVar4 | 4;\n  }\n  return uVar4;\n}\n\n" (function_definition "uint pollwrap_get_fd_events(int *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int local_1c [2];\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if (-1 < param_2) {\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  (*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);\n  uVar3 = pollwrap_get_fd_events();\n  uVar4 = (uint)((uVar3 & 0xd9) != 0);\n  if ((uVar3 & 0x10c) != 0) {\n    uVar4 = uVar4 | 2;\n  }\n  if ((uVar3 & 2) != 0) {\n    uVar4 = uVar4 | 4;\n  }\n  return uVar4;\n}" type_identifier (function_declarator "pollwrap_get_fd_events(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int local_1c [2];\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if (-1 < param_2) {\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  (*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);\n  uVar3 = pollwrap_get_fd_events();\n  uVar4 = (uint)((uVar3 & 0xd9) != 0);\n  if ((uVar3 & 0x10c) != 0) {\n    uVar4 = uVar4 | 2;\n  }\n  if ((uVar3 & 2) != 0) {\n    uVar4 = uVar4 | 4;\n  }\n  return uVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int local_1c [2];" primitive_type (array_declarator "local_1c [2]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (-1 < param_2) {\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" { (expression_statement "local_1c[0] = param_2;" (assignment_expression "local_1c[0] = param_2" (subscript_expression "local_1c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = find234(param_1[3],local_1c,0);" (assignment_expression "iVar2 = find234(param_1[3],local_1c,0)" identifier = (call_expression "find234(param_1[3],local_1c,0)" identifier (argument_list "(param_1[3],local_1c,0)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 0;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }" else (compound_statement "{\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }" { (expression_statement "uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);" (assignment_expression "uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" identifier = (binary_expression "(uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" ( (binary_expression "*param_1 + *(int *)(iVar2 + 4) * 8 + 6" (binary_expression "*param_1 + *(int *)(iVar2 + 4) * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "*(int *)(iVar2 + 4) * 8" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) * number_literal)) + number_literal) ))))) ;) }))) (if_statement "if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }" if (parenthesized_expression "(local_14 == *(int *)puVar1)" ( (binary_expression "local_14 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return uVar3;\n    }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "(*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);" (call_expression "(*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b0ac0)" ( (pointer_expression "*(code *)PTR___assert_fail_000b0ac0" * (cast_expression "(code *)PTR___assert_fail_000b0ac0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0)" ( (binary_expression "PTR_DAT_000b01d0 + -0x21d4" identifier + number_literal) , (binary_expression "PTR_DAT_000b01d0 + -0x21e4" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000b01d0 + -0x21a0" identifier + number_literal) ))) ;) (expression_statement "uVar3 = pollwrap_get_fd_events();" (assignment_expression "uVar3 = pollwrap_get_fd_events()" identifier = (call_expression "pollwrap_get_fd_events()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = (uint)((uVar3 & 0xd9) != 0);" (assignment_expression "uVar4 = (uint)((uVar3 & 0xd9) != 0)" identifier = (call_expression "(uint)((uVar3 & 0xd9) != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uVar3 & 0xd9) != 0)" ( (binary_expression "(uVar3 & 0xd9) != 0" (parenthesized_expression "(uVar3 & 0xd9)" ( (binary_expression "uVar3 & 0xd9" identifier & number_literal) )) != number_literal) )))) ;) (if_statement "if ((uVar3 & 0x10c) != 0) {\n    uVar4 = uVar4 | 2;\n  }" if (parenthesized_expression "((uVar3 & 0x10c) != 0)" ( (binary_expression "(uVar3 & 0x10c) != 0" (parenthesized_expression "(uVar3 & 0x10c)" ( (binary_expression "uVar3 & 0x10c" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar4 = uVar4 | 2;\n  }" { (expression_statement "uVar4 = uVar4 | 2;" (assignment_expression "uVar4 = uVar4 | 2" identifier = (binary_expression "uVar4 | 2" identifier | number_literal)) ;) })) (if_statement "if ((uVar3 & 2) != 0) {\n    uVar4 = uVar4 | 4;\n  }" if (parenthesized_expression "((uVar3 & 2) != 0)" ( (binary_expression "(uVar3 & 2) != 0" (parenthesized_expression "(uVar3 & 2)" ( (binary_expression "uVar3 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar4 = uVar4 | 4;\n  }" { (expression_statement "uVar4 = uVar4 | 4;" (assignment_expression "uVar4 = uVar4 | 4" identifier = (binary_expression "uVar4 | 4" identifier | number_literal)) ;) })) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "int pollwrap_get_fd_events(pollwrapper *pw,int fd)\n\n{\n  void *pvVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  pollwrapper *pw_00;\n  undefined *puVar6;\n  pollwrap_fdtopos f2p_find;\n  \n  puVar6 = PTR___stack_chk_guard_000b0c9c;\n  iVar4 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if (-1 < fd) {\n    f2p_find.fd = fd;\n    pvVar1 = find234(pw->fdtopos,&f2p_find,(cmpfn234)0x0);\n    if (pvVar1 == (void *)0x0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (int)pw->fds[*(int *)((int)pvVar1 + 4)].revents;\n    }\n    if (iVar4 == *(int *)puVar6) {\n      return iVar2;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  puVar6 = PTR_DAT_000b01d0 + -0x21e4;\n  pw_00 = (pollwrapper *)(PTR_DAT_000b01d0 + -0x21d4);\n  (*(code *)PTR___assert_fail_000b0ac0)(pw_00,puVar6,0x78,PTR_DAT_000b01d0 + -0x21a0);\n  uVar3 = pollwrap_get_fd_events(pw_00,(int)puVar6);\n  uVar5 = (uint)((uVar3 & 0xd9) != 0);\n  if ((uVar3 & 0x10c) != 0) {\n    uVar5 = uVar5 | 2;\n  }\n  if ((uVar3 & 2) != 0) {\n    uVar5 = uVar5 | 4;\n  }\n  return uVar5;\n}\n\n" (function_definition "int pollwrap_get_fd_events(pollwrapper *pw,int fd)\n\n{\n  void *pvVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  pollwrapper *pw_00;\n  undefined *puVar6;\n  pollwrap_fdtopos f2p_find;\n  \n  puVar6 = PTR___stack_chk_guard_000b0c9c;\n  iVar4 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if (-1 < fd) {\n    f2p_find.fd = fd;\n    pvVar1 = find234(pw->fdtopos,&f2p_find,(cmpfn234)0x0);\n    if (pvVar1 == (void *)0x0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (int)pw->fds[*(int *)((int)pvVar1 + 4)].revents;\n    }\n    if (iVar4 == *(int *)puVar6) {\n      return iVar2;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  puVar6 = PTR_DAT_000b01d0 + -0x21e4;\n  pw_00 = (pollwrapper *)(PTR_DAT_000b01d0 + -0x21d4);\n  (*(code *)PTR___assert_fail_000b0ac0)(pw_00,puVar6,0x78,PTR_DAT_000b01d0 + -0x21a0);\n  uVar3 = pollwrap_get_fd_events(pw_00,(int)puVar6);\n  uVar5 = (uint)((uVar3 & 0xd9) != 0);\n  if ((uVar3 & 0x10c) != 0) {\n    uVar5 = uVar5 | 2;\n  }\n  if ((uVar3 & 2) != 0) {\n    uVar5 = uVar5 | 4;\n  }\n  return uVar5;\n}" primitive_type (function_declarator "pollwrap_get_fd_events(pollwrapper *pw,int fd)" identifier (parameter_list "(pollwrapper *pw,int fd)" ( (parameter_declaration "pollwrapper *pw" type_identifier (pointer_declarator "*pw" * identifier)) , (parameter_declaration "int fd" primitive_type identifier) ))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  pollwrapper *pw_00;\n  undefined *puVar6;\n  pollwrap_fdtopos f2p_find;\n  \n  puVar6 = PTR___stack_chk_guard_000b0c9c;\n  iVar4 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if (-1 < fd) {\n    f2p_find.fd = fd;\n    pvVar1 = find234(pw->fdtopos,&f2p_find,(cmpfn234)0x0);\n    if (pvVar1 == (void *)0x0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (int)pw->fds[*(int *)((int)pvVar1 + 4)].revents;\n    }\n    if (iVar4 == *(int *)puVar6) {\n      return iVar2;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  puVar6 = PTR_DAT_000b01d0 + -0x21e4;\n  pw_00 = (pollwrapper *)(PTR_DAT_000b01d0 + -0x21d4);\n  (*(code *)PTR___assert_fail_000b0ac0)(pw_00,puVar6,0x78,PTR_DAT_000b01d0 + -0x21a0);\n  uVar3 = pollwrap_get_fd_events(pw_00,(int)puVar6);\n  uVar5 = (uint)((uVar3 & 0xd9) != 0);\n  if ((uVar3 & 0x10c) != 0) {\n    uVar5 = uVar5 | 2;\n  }\n  if ((uVar3 & 2) != 0) {\n    uVar5 = uVar5 | 4;\n  }\n  return uVar5;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "pollwrapper *pw_00;" type_identifier (pointer_declarator "*pw_00" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "pollwrap_fdtopos f2p_find;" type_identifier identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "iVar4 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "iVar4 = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (-1 < fd) {\n    f2p_find.fd = fd;\n    pvVar1 = find234(pw->fdtopos,&f2p_find,(cmpfn234)0x0);\n    if (pvVar1 == (void *)0x0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (int)pw->fds[*(int *)((int)pvVar1 + 4)].revents;\n    }\n    if (iVar4 == *(int *)puVar6) {\n      return iVar2;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" if (parenthesized_expression "(-1 < fd)" ( (binary_expression "-1 < fd" number_literal < identifier) )) (compound_statement "{\n    f2p_find.fd = fd;\n    pvVar1 = find234(pw->fdtopos,&f2p_find,(cmpfn234)0x0);\n    if (pvVar1 == (void *)0x0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (int)pw->fds[*(int *)((int)pvVar1 + 4)].revents;\n    }\n    if (iVar4 == *(int *)puVar6) {\n      return iVar2;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" { (expression_statement "f2p_find.fd = fd;" (assignment_expression "f2p_find.fd = fd" (field_expression "f2p_find.fd" identifier . field_identifier) = identifier) ;) (expression_statement "pvVar1 = find234(pw->fdtopos,&f2p_find,(cmpfn234)0x0);" (assignment_expression "pvVar1 = find234(pw->fdtopos,&f2p_find,(cmpfn234)0x0)" identifier = (call_expression "find234(pw->fdtopos,&f2p_find,(cmpfn234)0x0)" identifier (argument_list "(pw->fdtopos,&f2p_find,(cmpfn234)0x0)" ( (field_expression "pw->fdtopos" identifier -> field_identifier) , (pointer_expression "&f2p_find" & identifier) , (cast_expression "(cmpfn234)0x0" ( (type_descriptor "cmpfn234" type_identifier) ) number_literal) )))) ;) (if_statement "if (pvVar1 == (void *)0x0) {\n      iVar2 = 0;\n    }\n    else {\n      iVar2 = (int)pw->fds[*(int *)((int)pvVar1 + 4)].revents;\n    }" if (parenthesized_expression "(pvVar1 == (void *)0x0)" ( (binary_expression "pvVar1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = 0;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar2 = (int)pw->fds[*(int *)((int)pvVar1 + 4)].revents;\n    }" else (compound_statement "{\n      iVar2 = (int)pw->fds[*(int *)((int)pvVar1 + 4)].revents;\n    }" { (expression_statement "iVar2 = (int)pw->fds[*(int *)((int)pvVar1 + 4)].revents;" (assignment_expression "iVar2 = (int)pw->fds[*(int *)((int)pvVar1 + 4)].revents" identifier = (cast_expression "(int)pw->fds[*(int *)((int)pvVar1 + 4)].revents" ( (type_descriptor "int" primitive_type) ) (field_expression "pw->fds[*(int *)((int)pvVar1 + 4)].revents" (subscript_expression "pw->fds[*(int *)((int)pvVar1 + 4)]" (field_expression "pw->fds" identifier -> field_identifier) [ (pointer_expression "*(int *)((int)pvVar1 + 4)" * (cast_expression "(int *)((int)pvVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 4)" ( (binary_expression "(int)pvVar1 + 4" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ]) . field_identifier))) ;) }))) (if_statement "if (iVar4 == *(int *)puVar6) {\n      return iVar2;\n    }" if (parenthesized_expression "(iVar4 == *(int *)puVar6)" ( (binary_expression "iVar4 == *(int *)puVar6" identifier == (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar6 = PTR_DAT_000b01d0 + -0x21e4;" (assignment_expression "puVar6 = PTR_DAT_000b01d0 + -0x21e4" identifier = (binary_expression "PTR_DAT_000b01d0 + -0x21e4" identifier + number_literal)) ;) (expression_statement "pw_00 = (pollwrapper *)(PTR_DAT_000b01d0 + -0x21d4);" (assignment_expression "pw_00 = (pollwrapper *)(PTR_DAT_000b01d0 + -0x21d4)" identifier = (cast_expression "(pollwrapper *)(PTR_DAT_000b01d0 + -0x21d4)" ( (type_descriptor "pollwrapper *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b01d0 + -0x21d4)" ( (binary_expression "PTR_DAT_000b01d0 + -0x21d4" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR___assert_fail_000b0ac0)(pw_00,puVar6,0x78,PTR_DAT_000b01d0 + -0x21a0);" (call_expression "(*(code *)PTR___assert_fail_000b0ac0)(pw_00,puVar6,0x78,PTR_DAT_000b01d0 + -0x21a0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b0ac0)" ( (pointer_expression "*(code *)PTR___assert_fail_000b0ac0" * (cast_expression "(code *)PTR___assert_fail_000b0ac0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pw_00,puVar6,0x78,PTR_DAT_000b01d0 + -0x21a0)" ( identifier , identifier , number_literal , (binary_expression "PTR_DAT_000b01d0 + -0x21a0" identifier + number_literal) ))) ;) (expression_statement "uVar3 = pollwrap_get_fd_events(pw_00,(int)puVar6);" (assignment_expression "uVar3 = pollwrap_get_fd_events(pw_00,(int)puVar6)" identifier = (call_expression "pollwrap_get_fd_events(pw_00,(int)puVar6)" identifier (argument_list "(pw_00,(int)puVar6)" ( identifier , (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "uVar5 = (uint)((uVar3 & 0xd9) != 0);" (assignment_expression "uVar5 = (uint)((uVar3 & 0xd9) != 0)" identifier = (call_expression "(uint)((uVar3 & 0xd9) != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uVar3 & 0xd9) != 0)" ( (binary_expression "(uVar3 & 0xd9) != 0" (parenthesized_expression "(uVar3 & 0xd9)" ( (binary_expression "uVar3 & 0xd9" identifier & number_literal) )) != number_literal) )))) ;) (if_statement "if ((uVar3 & 0x10c) != 0) {\n    uVar5 = uVar5 | 2;\n  }" if (parenthesized_expression "((uVar3 & 0x10c) != 0)" ( (binary_expression "(uVar3 & 0x10c) != 0" (parenthesized_expression "(uVar3 & 0x10c)" ( (binary_expression "uVar3 & 0x10c" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar5 = uVar5 | 2;\n  }" { (expression_statement "uVar5 = uVar5 | 2;" (assignment_expression "uVar5 = uVar5 | 2" identifier = (binary_expression "uVar5 | 2" identifier | number_literal)) ;) })) (if_statement "if ((uVar3 & 2) != 0) {\n    uVar5 = uVar5 | 4;\n  }" if (parenthesized_expression "((uVar3 & 2) != 0)" ( (binary_expression "(uVar3 & 2) != 0" (parenthesized_expression "(uVar3 & 2)" ( (binary_expression "uVar3 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar5 = uVar5 | 4;\n  }" { (expression_statement "uVar5 = uVar5 | 4;" (assignment_expression "uVar5 = uVar5 | 4" identifier = (binary_expression "uVar5 | 4" identifier | number_literal)) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "uint pollwrap_get_fd_events(int *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int local_1c [2];\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if (-1 < param_2) {\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  (*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);\n  uVar3 = pollwrap_get_fd_events();\n  uVar4 = (uint)((uVar3 & 0xd9) != 0);\n  if ((uVar3 & 0x10c) != 0) {\n    uVar4 = uVar4 | 2;\n  }\n  if ((uVar3 & 2) != 0) {\n    uVar4 = uVar4 | 4;\n  }\n  return uVar4;\n}\n\n" (function_definition "uint pollwrap_get_fd_events(int *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int local_1c [2];\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if (-1 < param_2) {\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  (*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);\n  uVar3 = pollwrap_get_fd_events();\n  uVar4 = (uint)((uVar3 & 0xd9) != 0);\n  if ((uVar3 & 0x10c) != 0) {\n    uVar4 = uVar4 | 2;\n  }\n  if ((uVar3 & 2) != 0) {\n    uVar4 = uVar4 | 4;\n  }\n  return uVar4;\n}" type_identifier (function_declarator "pollwrap_get_fd_events(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int local_1c [2];\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if (-1 < param_2) {\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  (*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);\n  uVar3 = pollwrap_get_fd_events();\n  uVar4 = (uint)((uVar3 & 0xd9) != 0);\n  if ((uVar3 & 0x10c) != 0) {\n    uVar4 = uVar4 | 2;\n  }\n  if ((uVar3 & 2) != 0) {\n    uVar4 = uVar4 | 4;\n  }\n  return uVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int local_1c [2];" primitive_type (array_declarator "local_1c [2]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (-1 < param_2) {\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" { (expression_statement "local_1c[0] = param_2;" (assignment_expression "local_1c[0] = param_2" (subscript_expression "local_1c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = find234(param_1[3],local_1c,0);" (assignment_expression "iVar2 = find234(param_1[3],local_1c,0)" identifier = (call_expression "find234(param_1[3],local_1c,0)" identifier (argument_list "(param_1[3],local_1c,0)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 0;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }" else (compound_statement "{\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }" { (expression_statement "uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);" (assignment_expression "uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" identifier = (binary_expression "(uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" ( (binary_expression "*param_1 + *(int *)(iVar2 + 4) * 8 + 6" (binary_expression "*param_1 + *(int *)(iVar2 + 4) * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "*(int *)(iVar2 + 4) * 8" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) * number_literal)) + number_literal) ))))) ;) }))) (if_statement "if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }" if (parenthesized_expression "(local_14 == *(int *)puVar1)" ( (binary_expression "local_14 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return uVar3;\n    }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "(*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);" (call_expression "(*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b0ac0)" ( (pointer_expression "*(code *)PTR___assert_fail_000b0ac0" * (cast_expression "(code *)PTR___assert_fail_000b0ac0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0)" ( (binary_expression "PTR_DAT_000b01d0 + -0x21d4" identifier + number_literal) , (binary_expression "PTR_DAT_000b01d0 + -0x21e4" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000b01d0 + -0x21a0" identifier + number_literal) ))) ;) (expression_statement "uVar3 = pollwrap_get_fd_events();" (assignment_expression "uVar3 = pollwrap_get_fd_events()" identifier = (call_expression "pollwrap_get_fd_events()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = (uint)((uVar3 & 0xd9) != 0);" (assignment_expression "uVar4 = (uint)((uVar3 & 0xd9) != 0)" identifier = (call_expression "(uint)((uVar3 & 0xd9) != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uVar3 & 0xd9) != 0)" ( (binary_expression "(uVar3 & 0xd9) != 0" (parenthesized_expression "(uVar3 & 0xd9)" ( (binary_expression "uVar3 & 0xd9" identifier & number_literal) )) != number_literal) )))) ;) (if_statement "if ((uVar3 & 0x10c) != 0) {\n    uVar4 = uVar4 | 2;\n  }" if (parenthesized_expression "((uVar3 & 0x10c) != 0)" ( (binary_expression "(uVar3 & 0x10c) != 0" (parenthesized_expression "(uVar3 & 0x10c)" ( (binary_expression "uVar3 & 0x10c" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar4 = uVar4 | 2;\n  }" { (expression_statement "uVar4 = uVar4 | 2;" (assignment_expression "uVar4 = uVar4 | 2" identifier = (binary_expression "uVar4 | 2" identifier | number_literal)) ;) })) (if_statement "if ((uVar3 & 2) != 0) {\n    uVar4 = uVar4 | 4;\n  }" if (parenthesized_expression "((uVar3 & 2) != 0)" ( (binary_expression "(uVar3 & 2) != 0" (parenthesized_expression "(uVar3 & 2)" ( (binary_expression "uVar3 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar4 = uVar4 | 4;\n  }" { (expression_statement "uVar4 = uVar4 | 4;" (assignment_expression "uVar4 = uVar4 | 4" identifier = (binary_expression "uVar4 | 4" identifier | number_literal)) ;) })) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint pollwrap_get_fd_events(int *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int local_1c [2];\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if (-1 < param_2) {\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  (*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);\n  uVar3 = pollwrap_get_fd_events();\n  uVar4 = (uint)((uVar3 & 0xd9) != 0);\n  if ((uVar3 & 0x10c) != 0) {\n    uVar4 = uVar4 | 2;\n  }\n  if ((uVar3 & 2) != 0) {\n    uVar4 = uVar4 | 4;\n  }\n  return uVar4;\n}" (type_identifier "uint") (function_declarator "pollwrap_get_fd_events(int *param_1,int param_2)" (identifier "pollwrap_get_fd_events") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int local_1c [2];\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if (-1 < param_2) {\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  (*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);\n  uVar3 = pollwrap_get_fd_events();\n  uVar4 = (uint)((uVar3 & 0xd9) != 0);\n  if ((uVar3 & 0x10c) != 0) {\n    uVar4 = uVar4 | 2;\n  }\n  if ((uVar3 & 2) != 0) {\n    uVar4 = uVar4 | 4;\n  }\n  return uVar4;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int local_1c [2];" (primitive_type "int") (array_declarator "local_1c [2]" (identifier "local_1c") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b0c9c" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000b0c9c")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b0c9c" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b0c9c")))) (; ";")) (if_statement "if (-1 < param_2) {\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" (if "if") (parenthesized_expression "(-1 < param_2)" (( "(") (binary_expression "-1 < param_2" (number_literal "-1") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    local_1c[0] = param_2;\n    iVar2 = find234(param_1[3],local_1c,0);\n    if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }\n    if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" ({ "{") (expression_statement "local_1c[0] = param_2;" (assignment_expression "local_1c[0] = param_2" (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar2 = find234(param_1[3],local_1c,0);" (assignment_expression "iVar2 = find234(param_1[3],local_1c,0)" (identifier "iVar2") (= "=") (call_expression "find234(param_1[3],local_1c,0)" (identifier "find234") (argument_list "(param_1[3],local_1c,0)" (( "(") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (, ",") (identifier "local_1c") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 0;\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }" (else "else") (compound_statement "{\n      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);\n    }" ({ "{") (expression_statement "uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);" (assignment_expression "uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" (identifier "uVar3") (= "=") (binary_expression "(uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + *(int *)(iVar2 + 4) * 8 + 6)" (( "(") (binary_expression "*param_1 + *(int *)(iVar2 + 4) * 8 + 6" (binary_expression "*param_1 + *(int *)(iVar2 + 4) * 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "*(int *)(iVar2 + 4) * 8" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (* "*") (number_literal "8"))) (+ "+") (number_literal "6")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (local_14 == *(int *)puVar1) {\n      return uVar3;\n    }" (if "if") (parenthesized_expression "(local_14 == *(int *)puVar1)" (( "(") (binary_expression "local_14 == *(int *)puVar1" (identifier "local_14") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n      return uVar3;\n    }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b0c70"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);" (call_expression "(*(code *)PTR___assert_fail_000b0ac0)\n            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b0ac0)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000b0ac0" (* "*") (cast_expression "(code *)PTR___assert_fail_000b0ac0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b0ac0"))) () ")")) (argument_list "(PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0)" (( "(") (binary_expression "PTR_DAT_000b01d0 + -0x21d4" (identifier "PTR_DAT_000b01d0") (+ "+") (number_literal "-0x21d4")) (, ",") (binary_expression "PTR_DAT_000b01d0 + -0x21e4" (identifier "PTR_DAT_000b01d0") (+ "+") (number_literal "-0x21e4")) (, ",") (number_literal "0x78") (, ",") (binary_expression "PTR_DAT_000b01d0 + -0x21a0" (identifier "PTR_DAT_000b01d0") (+ "+") (number_literal "-0x21a0")) () ")"))) (; ";")) (expression_statement "uVar3 = pollwrap_get_fd_events();" (assignment_expression "uVar3 = pollwrap_get_fd_events()" (identifier "uVar3") (= "=") (call_expression "pollwrap_get_fd_events()" (identifier "pollwrap_get_fd_events") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = (uint)((uVar3 & 0xd9) != 0);" (assignment_expression "uVar4 = (uint)((uVar3 & 0xd9) != 0)" (identifier "uVar4") (= "=") (call_expression "(uint)((uVar3 & 0xd9) != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((uVar3 & 0xd9) != 0)" (( "(") (binary_expression "(uVar3 & 0xd9) != 0" (parenthesized_expression "(uVar3 & 0xd9)" (( "(") (binary_expression "uVar3 & 0xd9" (identifier "uVar3") (& "&") (number_literal "0xd9")) () ")")) (!= "!=") (number_literal "0")) () ")")))) (; ";")) (if_statement "if ((uVar3 & 0x10c) != 0) {\n    uVar4 = uVar4 | 2;\n  }" (if "if") (parenthesized_expression "((uVar3 & 0x10c) != 0)" (( "(") (binary_expression "(uVar3 & 0x10c) != 0" (parenthesized_expression "(uVar3 & 0x10c)" (( "(") (binary_expression "uVar3 & 0x10c" (identifier "uVar3") (& "&") (number_literal "0x10c")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = uVar4 | 2;\n  }" ({ "{") (expression_statement "uVar4 = uVar4 | 2;" (assignment_expression "uVar4 = uVar4 | 2" (identifier "uVar4") (= "=") (binary_expression "uVar4 | 2" (identifier "uVar4") (| "|") (number_literal "2"))) (; ";")) (} "}"))) (if_statement "if ((uVar3 & 2) != 0) {\n    uVar4 = uVar4 | 4;\n  }" (if "if") (parenthesized_expression "((uVar3 & 2) != 0)" (( "(") (binary_expression "(uVar3 & 2) != 0" (parenthesized_expression "(uVar3 & 2)" (( "(") (binary_expression "uVar3 & 2" (identifier "uVar3") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = uVar4 | 4;\n  }" ({ "{") (expression_statement "uVar4 = uVar4 | 4;" (assignment_expression "uVar4 = uVar4 | 4" (identifier "uVar4") (= "=") (binary_expression "uVar4 | 4" (identifier "uVar4") (| "|") (number_literal "4"))) (; ";")) (} "}"))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

int function_1(type_1 *pw,int var_1)

{
  void *var_3;
  int iVar2;
  type_2 var_6;
  int var_4;
  type_2 var_7;
  type_1 *pw_00;
  type_3 *puVar6;
  type_4 f2p_find;
  
  puVar6 = PTR___stack_chk_guard_000b0c9c;
  var_4 = *(int *)PTR___stack_chk_guard_000b0c9c;
  if (-1 < var_1) {
    f2p_find.var_1 = var_1;
    var_3 = var_2(pw->fdtopos,&f2p_find,(type_5)0x0);
    if (var_3 == (void *)0x0) {
      iVar2 = 0;
    }
    else {
      iVar2 = (int)pw->fds[*(int *)((int)var_3 + 4)].revents;
    }
    if (var_4 == *(int *)puVar6) {
      return iVar2;
    }
    (*(type_6 *)PTR___stack_chk_fail_000b0c70)();
  }
  puVar6 = var_5 + -0x21e4;
  pw_00 = (type_1 *)(var_5 + -0x21d4);
  (*(type_6 *)PTR___assert_fail_000b0ac0)(pw_00,puVar6,0x78,var_5 + -0x21a0);
  var_6 = function_1(pw_00,(int)puVar6);
  var_7 = (type_2)((var_6 & 0xd9) != 0);
  if ((var_6 & 0x10c) != 0) {
    var_7 = var_7 | 2;
  }
  if ((var_6 & 2) != 0) {
    var_7 = var_7 | 4;
  }
  return var_7;
}


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

uint MASKED(int *param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  int local_1c [2];
  int local_14;
  
  puVar1 = PTR___stack_chk_guard_000b0c9c;
  local_14 = *(int *)PTR___stack_chk_guard_000b0c9c;
  if (-1 < param_2) {
    local_1c[0] = param_2;
    iVar2 = find234(param_1[3],local_1c,0);
    if (iVar2 == 0) {
      uVar3 = 0;
    }
    else {
      uVar3 = (uint)*(short *)(*param_1 + *(int *)(iVar2 + 4) * 8 + 6);
    }
    if (local_14 == *(int *)puVar1) {
      return uVar3;
    }
    (*(code *)PTR___stack_chk_fail_000b0c70)();
  }
  (*(code *)PTR___assert_fail_000b0ac0)
            (PTR_DAT_000b01d0 + -0x21d4,PTR_DAT_000b01d0 + -0x21e4,0x78,PTR_DAT_000b01d0 + -0x21a0);
  uVar3 = MASKED();
  uVar4 = (uint)((uVar3 & 0xd9) != 0);
  if ((uVar3 & 0x10c) != 0) {
    uVar4 = uVar4 | 2;
  }
  if ((uVar3 & 2) != 0) {
    uVar4 = uVar4 | 4;
  }
  return uVar4;
}

