
/* WARNING: Enum "GIOFlags": Some values do not have unique names */

void uxsel_del(int fd)

{
  void *e;
  int local_c;
  
  local_c = fd;
  e = find234(fds,&local_c,uxsel_fd_findcmp);
  if (e != (void *)0x0) {
    if (*(uxsel_id **)((long)e + 0x10) != (uxsel_id *)0x0) {
      uxsel_input_remove(*(uxsel_id **)((long)e + 0x10));
    }
    del234(fds,e);
    safefree(e);
  }
  return;
}



void FUN_0018e566(undefined4 param_1)

{
  long lVar1;
  undefined4 local_c;
  
  local_c = param_1;
  lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);
  if (lVar1 != 0) {
    if (*(long *)(lVar1 + 0x10) != 0) {
      FUN_00175dab();
    }
    FUN_0017395e(DAT_001efde8,lVar1);
    FUN_00127101(lVar1);
  }
  return;
}


PUSH RBX
SUB RSP,0x10
MOV dword ptr [RSP + 0xc],EDI
LEA RSI,[RSP + 0xc]
LEA RDX,[0x18e536]
MOV RDI,qword ptr [0x001efde8]
CALL 0x001738e2
TEST RAX,RAX
JZ 0x0018e5b4
MOV RBX,RAX
MOV RDI,qword ptr [RAX + 0x10]
TEST RDI,RDI
JZ 0x0018e59d
CALL 0x00175dab
MOV RSI,RBX
MOV RDI,qword ptr [0x001efde8]
CALL 0x0017395e
MOV RDI,RBX
CALL 0x00127101
ADD RSP,0x10
POP RBX
RET
(translation_unit "void FUN_0018e566(undefined4 param_1)\n\n{\n  long lVar1;\n  undefined4 local_c;\n  \n  local_c = param_1;\n  lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);\n  if (lVar1 != 0) {\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0018e566(undefined4 param_1)\n\n{\n  long lVar1;\n  undefined4 local_c;\n  \n  local_c = param_1;\n  lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);\n  if (lVar1 != 0) {\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0018e566(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined4 local_c;\n  \n  local_c = param_1;\n  lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);\n  if (lVar1 != 0) {\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_c;" type_identifier identifier ;) (expression_statement "local_c = param_1;" (assignment_expression "local_c = param_1" identifier = identifier) ;) (expression_statement "lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);" (assignment_expression "lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536)" identifier = (call_expression "FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536)" identifier (argument_list "(DAT_001efde8,&local_c,FUN_0018e536)" ( identifier , (pointer_expression "&local_c" & identifier) , identifier )))) ;) (if_statement "if (lVar1 != 0) {\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }" { (if_statement "if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }" if (parenthesized_expression "(*(long *)(lVar1 + 0x10) != 0)" ( (binary_expression "*(long *)(lVar1 + 0x10) != 0" (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_00175dab();\n    }" { (expression_statement "FUN_00175dab();" (call_expression "FUN_00175dab()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_0017395e(DAT_001efde8,lVar1);" (call_expression "FUN_0017395e(DAT_001efde8,lVar1)" identifier (argument_list "(DAT_001efde8,lVar1)" ( identifier , identifier ))) ;) (expression_statement "FUN_00127101(lVar1);" (call_expression "FUN_00127101(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "GIOFlags": Some values do not have unique names */\n\nvoid uxsel_del(int fd)\n\n{\n  void *e;\n  int local_c;\n  \n  local_c = fd;\n  e = find234(fds,&local_c,uxsel_fd_findcmp);\n  if (e != (void *)0x0) {\n    if (*(uxsel_id **)((long)e + 0x10) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((long)e + 0x10));\n    }\n    del234(fds,e);\n    safefree(e);\n  }\n  return;\n}\n\n" comment (function_definition "void uxsel_del(int fd)\n\n{\n  void *e;\n  int local_c;\n  \n  local_c = fd;\n  e = find234(fds,&local_c,uxsel_fd_findcmp);\n  if (e != (void *)0x0) {\n    if (*(uxsel_id **)((long)e + 0x10) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((long)e + 0x10));\n    }\n    del234(fds,e);\n    safefree(e);\n  }\n  return;\n}" primitive_type (function_declarator "uxsel_del(int fd)" identifier (parameter_list "(int fd)" ( (parameter_declaration "int fd" primitive_type identifier) ))) (compound_statement "{\n  void *e;\n  int local_c;\n  \n  local_c = fd;\n  e = find234(fds,&local_c,uxsel_fd_findcmp);\n  if (e != (void *)0x0) {\n    if (*(uxsel_id **)((long)e + 0x10) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((long)e + 0x10));\n    }\n    del234(fds,e);\n    safefree(e);\n  }\n  return;\n}" { (declaration "void *e;" primitive_type (pointer_declarator "*e" * identifier) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = fd;" (assignment_expression "local_c = fd" identifier = identifier) ;) (expression_statement "e = find234(fds,&local_c,uxsel_fd_findcmp);" (assignment_expression "e = find234(fds,&local_c,uxsel_fd_findcmp)" identifier = (call_expression "find234(fds,&local_c,uxsel_fd_findcmp)" identifier (argument_list "(fds,&local_c,uxsel_fd_findcmp)" ( identifier , (pointer_expression "&local_c" & identifier) , identifier )))) ;) (if_statement "if (e != (void *)0x0) {\n    if (*(uxsel_id **)((long)e + 0x10) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((long)e + 0x10));\n    }\n    del234(fds,e);\n    safefree(e);\n  }" if (parenthesized_expression "(e != (void *)0x0)" ( (binary_expression "e != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(uxsel_id **)((long)e + 0x10) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((long)e + 0x10));\n    }\n    del234(fds,e);\n    safefree(e);\n  }" { (if_statement "if (*(uxsel_id **)((long)e + 0x10) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((long)e + 0x10));\n    }" if (parenthesized_expression "(*(uxsel_id **)((long)e + 0x10) != (uxsel_id *)0x0)" ( (binary_expression "*(uxsel_id **)((long)e + 0x10) != (uxsel_id *)0x0" (pointer_expression "*(uxsel_id **)((long)e + 0x10)" * (cast_expression "(uxsel_id **)((long)e + 0x10)" ( (type_descriptor "uxsel_id **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)e + 0x10)" ( (binary_expression "(long)e + 0x10" (cast_expression "(long)e" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (cast_expression "(uxsel_id *)0x0" ( (type_descriptor "uxsel_id *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uxsel_input_remove(*(uxsel_id **)((long)e + 0x10));\n    }" { (expression_statement "uxsel_input_remove(*(uxsel_id **)((long)e + 0x10));" (call_expression "uxsel_input_remove(*(uxsel_id **)((long)e + 0x10))" identifier (argument_list "(*(uxsel_id **)((long)e + 0x10))" ( (pointer_expression "*(uxsel_id **)((long)e + 0x10)" * (cast_expression "(uxsel_id **)((long)e + 0x10)" ( (type_descriptor "uxsel_id **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)e + 0x10)" ( (binary_expression "(long)e + 0x10" (cast_expression "(long)e" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ))) ;) })) (expression_statement "del234(fds,e);" (call_expression "del234(fds,e)" identifier (argument_list "(fds,e)" ( identifier , identifier ))) ;) (expression_statement "safefree(e);" (call_expression "safefree(e)" identifier (argument_list "(e)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0018e566(undefined4 param_1)\n\n{\n  long lVar1;\n  undefined4 local_c;\n  \n  local_c = param_1;\n  lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);\n  if (lVar1 != 0) {\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0018e566(undefined4 param_1)\n\n{\n  long lVar1;\n  undefined4 local_c;\n  \n  local_c = param_1;\n  lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);\n  if (lVar1 != 0) {\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0018e566(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined4 local_c;\n  \n  local_c = param_1;\n  lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);\n  if (lVar1 != 0) {\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_c;" type_identifier identifier ;) (expression_statement "local_c = param_1;" (assignment_expression "local_c = param_1" identifier = identifier) ;) (expression_statement "lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);" (assignment_expression "lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536)" identifier = (call_expression "FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536)" identifier (argument_list "(DAT_001efde8,&local_c,FUN_0018e536)" ( identifier , (pointer_expression "&local_c" & identifier) , identifier )))) ;) (if_statement "if (lVar1 != 0) {\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }" { (if_statement "if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }" if (parenthesized_expression "(*(long *)(lVar1 + 0x10) != 0)" ( (binary_expression "*(long *)(lVar1 + 0x10) != 0" (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_00175dab();\n    }" { (expression_statement "FUN_00175dab();" (call_expression "FUN_00175dab()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_0017395e(DAT_001efde8,lVar1);" (call_expression "FUN_0017395e(DAT_001efde8,lVar1)" identifier (argument_list "(DAT_001efde8,lVar1)" ( identifier , identifier ))) ;) (expression_statement "FUN_00127101(lVar1);" (call_expression "FUN_00127101(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0018e566(undefined4 param_1)\n\n{\n  long lVar1;\n  undefined4 local_c;\n  \n  local_c = param_1;\n  lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);\n  if (lVar1 != 0) {\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0018e566(undefined4 param_1)" (identifier "FUN_0018e566") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  undefined4 local_c;\n  \n  local_c = param_1;\n  lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);\n  if (lVar1 != 0) {\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined4 local_c;" (type_identifier "undefined4") (identifier "local_c") (; ";")) (expression_statement "local_c = param_1;" (assignment_expression "local_c = param_1" (identifier "local_c") (= "=") (identifier "param_1")) (; ";")) (expression_statement "lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);" (assignment_expression "lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536)" (identifier "lVar1") (= "=") (call_expression "FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536)" (identifier "FUN_001738e2") (argument_list "(DAT_001efde8,&local_c,FUN_0018e536)" (( "(") (identifier "DAT_001efde8") (, ",") (pointer_expression "&local_c" (& "&") (identifier "local_c")) (, ",") (identifier "FUN_0018e536") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }\n    FUN_0017395e(DAT_001efde8,lVar1);\n    FUN_00127101(lVar1);\n  }" ({ "{") (if_statement "if (*(long *)(lVar1 + 0x10) != 0) {\n      FUN_00175dab();\n    }" (if "if") (parenthesized_expression "(*(long *)(lVar1 + 0x10) != 0)" (( "(") (binary_expression "*(long *)(lVar1 + 0x10) != 0" (pointer_expression "*(long *)(lVar1 + 0x10)" (* "*") (cast_expression "(long *)(lVar1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00175dab();\n    }" ({ "{") (expression_statement "FUN_00175dab();" (call_expression "FUN_00175dab()" (identifier "FUN_00175dab") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0017395e(DAT_001efde8,lVar1);" (call_expression "FUN_0017395e(DAT_001efde8,lVar1)" (identifier "FUN_0017395e") (argument_list "(DAT_001efde8,lVar1)" (( "(") (identifier "DAT_001efde8") (, ",") (identifier "lVar1") () ")"))) (; ";")) (expression_statement "FUN_00127101(lVar1);" (call_expression "FUN_00127101(lVar1)" (identifier "FUN_00127101") (argument_list "(lVar1)" (( "(") (identifier "lVar1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "GIOFlags": Some values do not have unique names */

void function_1(int fd)

{
  void *var_2;
  int local_c;
  
  local_c = fd;
  var_2 = var_1(fds,&local_c,uxsel_fd_findcmp);
  if (var_2 != (void *)0x0) {
    if (*(type_1 **)((long)var_2 + 0x10) != (type_1 *)0x0) {
      var_3(*(type_1 **)((long)var_2 + 0x10));
    }
    var_4(fds,var_2);
    var_5(var_2);
  }
  return;
}


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

void MASKED(undefined4 param_1)

{
  long lVar1;
  undefined4 local_c;
  
  local_c = param_1;
  lVar1 = FUN_001738e2(DAT_001efde8,&local_c,FUN_0018e536);
  if (lVar1 != 0) {
    if (*(long *)(lVar1 + 0x10) != 0) {
      FUN_00175dab();
    }
    FUN_0017395e(DAT_001efde8,lVar1);
    FUN_00127101(lVar1);
  }
  return;
}

