
void uxsel_del(int fd)

{
  undefined *puVar1;
  void *e;
  int local_res0 [4];
  
  puVar1 = PTR_DAT_000b2398;
  local_res0[0] = fd;
  e = find234(*(tree234 **)(PTR_DAT_000b2398 + 0x3710),local_res0,
              (cmpfn234)(PTR_LAB_000b2418 + 0x6334));
  if (e != (void *)0x0) {
    if (*(uxsel_id **)((int)e + 0xc) != (uxsel_id *)0x0) {
      uxsel_input_remove(*(uxsel_id **)((int)e + 0xc));
    }
    del234(*(tree234 **)(puVar1 + 0x3710),e);
    (*(code *)PTR_safefree_000b23d0)(e);
  }
  return;
}



void uxsel_del(undefined4 param_1)

{
  undefined *puVar1;
  int iVar2;
  undefined4 local_res0 [4];
  
  puVar1 = PTR_DAT_000b2398;
  local_res0[0] = param_1;
  iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);
  if (iVar2 != 0) {
    if (*(int *)(iVar2 + 0xc) != 0) {
      uxsel_input_remove();
    }
    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);
    (*(code *)PTR_safefree_000b23d0)(iVar2);
  }
  return;
}


lui gp,0x3
addiu gp,gp,0x3fd8
addu gp,gp,t9
addiu sp,sp,-0x28
lw a2,-0x7f58(gp)
lw t9,-0x7e98(gp)
addiu a1,sp,0x28
sw s1,0x20(sp)
addiu a2,a2,0x6334
sw a0,0x28(sp)
lw s1,-0x7fd8(gp)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s0,0x1c(sp)
bal 0x0007edf4
_lw a0,0x3710(s1)
beq v0,zero,0x0008641c
_lw gp,0x10(sp)
lw a0,0xc(v0)
beq a0,zero,0x000863fc
_or s0,v0,zero
lw t9,-0x76d4(gp)
bal 0x00086a54
_nop
lw gp,0x10(sp)
lw t9,-0x7eb8(gp)
or a1,s0,zero
bal 0x0007ef10
_lw a0,0x3710(s1)
lw gp,0x10(sp)
lw t9,-0x7fa0(gp)
jalr t9
_or a0,s0,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void uxsel_del(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  puVar1 = PTR_DAT_000b2398;\n  local_res0[0] = param_1;\n  iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);\n  if (iVar2 != 0) {\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }\n  return;\n}\n\n" (function_definition "void uxsel_del(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  puVar1 = PTR_DAT_000b2398;\n  local_res0[0] = param_1;\n  iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);\n  if (iVar2 != 0) {\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }\n  return;\n}" primitive_type (function_declarator "uxsel_del(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  puVar1 = PTR_DAT_000b2398;\n  local_res0[0] = param_1;\n  iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);\n  if (iVar2 != 0) {\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 local_res0 [4];" type_identifier (array_declarator "local_res0 [4]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR_DAT_000b2398;" (assignment_expression "puVar1 = PTR_DAT_000b2398" identifier = identifier) ;) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);" (assignment_expression "iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334)" identifier = (call_expression "find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334)" identifier (argument_list "(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000b2398 + 0x3710)" * (cast_expression "(undefined4 *)(PTR_DAT_000b2398 + 0x3710)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b2398 + 0x3710)" ( (binary_expression "PTR_DAT_000b2398 + 0x3710" identifier + number_literal) )))) , identifier , (binary_expression "PTR_LAB_000b2418 + 0x6334" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }" { (if_statement "if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar2 + 0xc) != 0" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uxsel_input_remove();\n    }" { (expression_statement "uxsel_input_remove();" (call_expression "uxsel_input_remove()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);" (call_expression "del234(*(undefined4 *)(puVar1 + 0x3710),iVar2)" identifier (argument_list "(*(undefined4 *)(puVar1 + 0x3710),iVar2)" ( (pointer_expression "*(undefined4 *)(puVar1 + 0x3710)" * (cast_expression "(undefined4 *)(puVar1 + 0x3710)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x3710)" ( (binary_expression "puVar1 + 0x3710" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b23d0)(iVar2);" (call_expression "(*(code *)PTR_safefree_000b23d0)(iVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void uxsel_del(int fd)\n\n{\n  undefined *puVar1;\n  void *e;\n  int local_res0 [4];\n  \n  puVar1 = PTR_DAT_000b2398;\n  local_res0[0] = fd;\n  e = find234(*(tree234 **)(PTR_DAT_000b2398 + 0x3710),local_res0,\n              (cmpfn234)(PTR_LAB_000b2418 + 0x6334));\n  if (e != (void *)0x0) {\n    if (*(uxsel_id **)((int)e + 0xc) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((int)e + 0xc));\n    }\n    del234(*(tree234 **)(puVar1 + 0x3710),e);\n    (*(code *)PTR_safefree_000b23d0)(e);\n  }\n  return;\n}\n\n" (function_definition "void uxsel_del(int fd)\n\n{\n  undefined *puVar1;\n  void *e;\n  int local_res0 [4];\n  \n  puVar1 = PTR_DAT_000b2398;\n  local_res0[0] = fd;\n  e = find234(*(tree234 **)(PTR_DAT_000b2398 + 0x3710),local_res0,\n              (cmpfn234)(PTR_LAB_000b2418 + 0x6334));\n  if (e != (void *)0x0) {\n    if (*(uxsel_id **)((int)e + 0xc) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((int)e + 0xc));\n    }\n    del234(*(tree234 **)(puVar1 + 0x3710),e);\n    (*(code *)PTR_safefree_000b23d0)(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  undefined *puVar1;\n  void *e;\n  int local_res0 [4];\n  \n  puVar1 = PTR_DAT_000b2398;\n  local_res0[0] = fd;\n  e = find234(*(tree234 **)(PTR_DAT_000b2398 + 0x3710),local_res0,\n              (cmpfn234)(PTR_LAB_000b2418 + 0x6334));\n  if (e != (void *)0x0) {\n    if (*(uxsel_id **)((int)e + 0xc) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((int)e + 0xc));\n    }\n    del234(*(tree234 **)(puVar1 + 0x3710),e);\n    (*(code *)PTR_safefree_000b23d0)(e);\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "void *e;" primitive_type (pointer_declarator "*e" * identifier) ;) (declaration "int local_res0 [4];" primitive_type (array_declarator "local_res0 [4]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR_DAT_000b2398;" (assignment_expression "puVar1 = PTR_DAT_000b2398" identifier = identifier) ;) (expression_statement "local_res0[0] = fd;" (assignment_expression "local_res0[0] = fd" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "e = find234(*(tree234 **)(PTR_DAT_000b2398 + 0x3710),local_res0,\n              (cmpfn234)(PTR_LAB_000b2418 + 0x6334));" (assignment_expression "e = find234(*(tree234 **)(PTR_DAT_000b2398 + 0x3710),local_res0,\n              (cmpfn234)(PTR_LAB_000b2418 + 0x6334))" identifier = (call_expression "find234(*(tree234 **)(PTR_DAT_000b2398 + 0x3710),local_res0,\n              (cmpfn234)(PTR_LAB_000b2418 + 0x6334))" identifier (argument_list "(*(tree234 **)(PTR_DAT_000b2398 + 0x3710),local_res0,\n              (cmpfn234)(PTR_LAB_000b2418 + 0x6334))" ( (pointer_expression "*(tree234 **)(PTR_DAT_000b2398 + 0x3710)" * (cast_expression "(tree234 **)(PTR_DAT_000b2398 + 0x3710)" ( (type_descriptor "tree234 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000b2398 + 0x3710)" ( (binary_expression "PTR_DAT_000b2398 + 0x3710" identifier + number_literal) )))) , identifier , (call_expression "(cmpfn234)(PTR_LAB_000b2418 + 0x6334)" (parenthesized_expression "(cmpfn234)" ( identifier )) (argument_list "(PTR_LAB_000b2418 + 0x6334)" ( (binary_expression "PTR_LAB_000b2418 + 0x6334" identifier + number_literal) ))) )))) ;) (if_statement "if (e != (void *)0x0) {\n    if (*(uxsel_id **)((int)e + 0xc) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((int)e + 0xc));\n    }\n    del234(*(tree234 **)(puVar1 + 0x3710),e);\n    (*(code *)PTR_safefree_000b23d0)(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 **)((int)e + 0xc) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((int)e + 0xc));\n    }\n    del234(*(tree234 **)(puVar1 + 0x3710),e);\n    (*(code *)PTR_safefree_000b23d0)(e);\n  }" { (if_statement "if (*(uxsel_id **)((int)e + 0xc) != (uxsel_id *)0x0) {\n      uxsel_input_remove(*(uxsel_id **)((int)e + 0xc));\n    }" if (parenthesized_expression "(*(uxsel_id **)((int)e + 0xc) != (uxsel_id *)0x0)" ( (binary_expression "*(uxsel_id **)((int)e + 0xc) != (uxsel_id *)0x0" (pointer_expression "*(uxsel_id **)((int)e + 0xc)" * (cast_expression "(uxsel_id **)((int)e + 0xc)" ( (type_descriptor "uxsel_id **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)e + 0xc)" ( (binary_expression "(int)e + 0xc" (cast_expression "(int)e" ( (type_descriptor "int" primitive_type) ) 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 **)((int)e + 0xc));\n    }" { (expression_statement "uxsel_input_remove(*(uxsel_id **)((int)e + 0xc));" (call_expression "uxsel_input_remove(*(uxsel_id **)((int)e + 0xc))" identifier (argument_list "(*(uxsel_id **)((int)e + 0xc))" ( (pointer_expression "*(uxsel_id **)((int)e + 0xc)" * (cast_expression "(uxsel_id **)((int)e + 0xc)" ( (type_descriptor "uxsel_id **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)e + 0xc)" ( (binary_expression "(int)e + 0xc" (cast_expression "(int)e" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) })) (expression_statement "del234(*(tree234 **)(puVar1 + 0x3710),e);" (call_expression "del234(*(tree234 **)(puVar1 + 0x3710),e)" identifier (argument_list "(*(tree234 **)(puVar1 + 0x3710),e)" ( (pointer_expression "*(tree234 **)(puVar1 + 0x3710)" * (cast_expression "(tree234 **)(puVar1 + 0x3710)" ( (type_descriptor "tree234 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x3710)" ( (binary_expression "puVar1 + 0x3710" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b23d0)(e);" (call_expression "(*(code *)PTR_safefree_000b23d0)(e)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(e)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void uxsel_del(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  puVar1 = PTR_DAT_000b2398;\n  local_res0[0] = param_1;\n  iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);\n  if (iVar2 != 0) {\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }\n  return;\n}\n\n" (function_definition "void uxsel_del(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  puVar1 = PTR_DAT_000b2398;\n  local_res0[0] = param_1;\n  iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);\n  if (iVar2 != 0) {\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }\n  return;\n}" primitive_type (function_declarator "uxsel_del(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  puVar1 = PTR_DAT_000b2398;\n  local_res0[0] = param_1;\n  iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);\n  if (iVar2 != 0) {\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 local_res0 [4];" type_identifier (array_declarator "local_res0 [4]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR_DAT_000b2398;" (assignment_expression "puVar1 = PTR_DAT_000b2398" identifier = identifier) ;) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);" (assignment_expression "iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334)" identifier = (call_expression "find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334)" identifier (argument_list "(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000b2398 + 0x3710)" * (cast_expression "(undefined4 *)(PTR_DAT_000b2398 + 0x3710)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b2398 + 0x3710)" ( (binary_expression "PTR_DAT_000b2398 + 0x3710" identifier + number_literal) )))) , identifier , (binary_expression "PTR_LAB_000b2418 + 0x6334" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }" { (if_statement "if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar2 + 0xc) != 0" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uxsel_input_remove();\n    }" { (expression_statement "uxsel_input_remove();" (call_expression "uxsel_input_remove()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);" (call_expression "del234(*(undefined4 *)(puVar1 + 0x3710),iVar2)" identifier (argument_list "(*(undefined4 *)(puVar1 + 0x3710),iVar2)" ( (pointer_expression "*(undefined4 *)(puVar1 + 0x3710)" * (cast_expression "(undefined4 *)(puVar1 + 0x3710)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x3710)" ( (binary_expression "puVar1 + 0x3710" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b23d0)(iVar2);" (call_expression "(*(code *)PTR_safefree_000b23d0)(iVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void uxsel_del(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  puVar1 = PTR_DAT_000b2398;\n  local_res0[0] = param_1;\n  iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);\n  if (iVar2 != 0) {\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "uxsel_del(undefined4 param_1)" (identifier "uxsel_del") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  puVar1 = PTR_DAT_000b2398;\n  local_res0[0] = param_1;\n  iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);\n  if (iVar2 != 0) {\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 local_res0 [4];" (type_identifier "undefined4") (array_declarator "local_res0 [4]" (identifier "local_res0") ([ "[") (number_literal "4") (] "]")) (; ";")) (expression_statement "puVar1 = PTR_DAT_000b2398;" (assignment_expression "puVar1 = PTR_DAT_000b2398" (identifier "puVar1") (= "=") (identifier "PTR_DAT_000b2398")) (; ";")) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);" (assignment_expression "iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334)" (identifier "iVar2") (= "=") (call_expression "find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334)" (identifier "find234") (argument_list "(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334)" (( "(") (pointer_expression "*(undefined4 *)(PTR_DAT_000b2398 + 0x3710)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000b2398 + 0x3710)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b2398 + 0x3710)" (( "(") (binary_expression "PTR_DAT_000b2398 + 0x3710" (identifier "PTR_DAT_000b2398") (+ "+") (number_literal "0x3710")) () ")")))) (, ",") (identifier "local_res0") (, ",") (binary_expression "PTR_LAB_000b2418 + 0x6334" (identifier "PTR_LAB_000b2418") (+ "+") (number_literal "0x6334")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }\n    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);\n    (*(code *)PTR_safefree_000b23d0)(iVar2);\n  }" ({ "{") (if_statement "if (*(int *)(iVar2 + 0xc) != 0) {\n      uxsel_input_remove();\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0xc) != 0" (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uxsel_input_remove();\n    }" ({ "{") (expression_statement "uxsel_input_remove();" (call_expression "uxsel_input_remove()" (identifier "uxsel_input_remove") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);" (call_expression "del234(*(undefined4 *)(puVar1 + 0x3710),iVar2)" (identifier "del234") (argument_list "(*(undefined4 *)(puVar1 + 0x3710),iVar2)" (( "(") (pointer_expression "*(undefined4 *)(puVar1 + 0x3710)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x3710)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x3710)" (( "(") (binary_expression "puVar1 + 0x3710" (identifier "puVar1") (+ "+") (number_literal "0x3710")) () ")")))) (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b23d0)(iVar2);" (call_expression "(*(code *)PTR_safefree_000b23d0)(iVar2)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b23d0" (* "*") (cast_expression "(code *)PTR_safefree_000b23d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b23d0"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int fd)

{
  type_1 *var_7;
  void *var_4;
  int local_res0 [4];
  
  var_7 = var_2;
  local_res0[0] = fd;
  var_4 = var_1(*(type_2 **)(var_2 + 0x3710),local_res0,
              (cmpfn234)(var_3 + 0x6334));
  if (var_4 != (void *)0x0) {
    if (*(type_3 **)((int)var_4 + 0xc) != (type_3 *)0x0) {
      var_5(*(type_3 **)((int)var_4 + 0xc));
    }
    var_6(*(type_2 **)(var_7 + 0x3710),var_4);
    (*(type_4 *)PTR_safefree_000b23d0)(var_4);
  }
  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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (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: (primitive_type) 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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (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 (identifier)))))) (return_statement))))

void MASKED(undefined4 param_1)

{
  undefined *puVar1;
  int iVar2;
  undefined4 local_res0 [4];
  
  puVar1 = PTR_DAT_000b2398;
  local_res0[0] = param_1;
  iVar2 = find234(*(undefined4 *)(PTR_DAT_000b2398 + 0x3710),local_res0,PTR_LAB_000b2418 + 0x6334);
  if (iVar2 != 0) {
    if (*(int *)(iVar2 + 0xc) != 0) {
      uxsel_input_remove();
    }
    del234(*(undefined4 *)(puVar1 + 0x3710),iVar2);
    (*(code *)PTR_safefree_000b23d0)(iVar2);
  }
  return;
}

