
void uxsel_set(int fd,int rwx,uxsel_callback_fn callback)

{
  int *e;
  uxsel_id *puVar1;
  
  if (fd < 0) {
    (*(code *)PTR___assert_fail_000adb00)
              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0
              );
    return;
  }
  uxsel_del(fd);
  if (rwx == 0) {
    return;
  }
  e = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);
  *e = fd;
  e[1] = rwx;
  e[2] = (int)callback;
  puVar1 = uxsel_input_add(fd,rwx);
  e[3] = (int)puVar1;
  add234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b00),e);
  return;
}



void uxsel_set(int param_1,int param_2,int param_3)

{
  int *piVar1;
  int iVar2;
  
  if (param_1 < 0) {
    (*(code *)PTR___assert_fail_000adb00)
              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0
              );
    return;
  }
  uxsel_del();
  if (param_2 == 0) {
    return;
  }
  piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);
  *piVar1 = param_1;
  piVar1[1] = param_2;
  piVar1[2] = param_3;
  iVar2 = uxsel_input_add(param_1,param_2);
  piVar1[3] = iVar2;
  add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);
  return;
}


lui gp,0x3
addiu gp,gp,0x2eb0
addu gp,gp,t9
addiu sp,sp,-0x30
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
bltz a0,0x000824ac
_sw s0,0x1c(sp)
lw t9,-0x7870(gp)
or s1,a1,zero
or s0,a0,zero
bal 0x00082348
_or s3,a2,zero
bne s1,zero,0x00082444
_lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7e7c(gp)
li a1,0x10
jalr t9
_li a0,0x1
or a1,s1,zero
lw gp,0x10(sp)
or a0,s0,zero
sw s0,0x0(v0)
or s2,v0,zero
sw s1,0x4(v0)
lw t9,-0x781c(gp)
bal 0x00080f70
_sw s3,0x8(v0)
or a1,s2,zero
lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7e34(gp)
sw v0,0xc(s2)
lw v0,-0x7fd8(gp)
lw s2,0x24(sp)
addiu sp,sp,0x30
b 0x00079168
_lw a0,-0x1b00(v0)
lw a3,-0x7fc0(gp)
li a2,0x43
lw a1,-0x7fc0(gp)
lw a0,-0x7fc0(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x5bf0
addiu a1,a1,-0x5c00
jalr t9
_addiu a0,a0,-0x5ba0
(translation_unit "void uxsel_set(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if (param_1 < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }\n  uxsel_del();\n  if (param_2 == 0) {\n    return;\n  }\n  piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);\n  *piVar1 = param_1;\n  piVar1[1] = param_2;\n  piVar1[2] = param_3;\n  iVar2 = uxsel_input_add(param_1,param_2);\n  piVar1[3] = iVar2;\n  add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);\n  return;\n}\n\n" (function_definition "void uxsel_set(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if (param_1 < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }\n  uxsel_del();\n  if (param_2 == 0) {\n    return;\n  }\n  piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);\n  *piVar1 = param_1;\n  piVar1[1] = param_2;\n  piVar1[2] = param_3;\n  iVar2 = uxsel_input_add(param_1,param_2);\n  piVar1[3] = iVar2;\n  add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);\n  return;\n}" primitive_type (function_declarator "uxsel_set(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if (param_1 < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }\n  uxsel_del();\n  if (param_2 == 0) {\n    return;\n  }\n  piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);\n  *piVar1 = param_1;\n  piVar1[1] = param_2;\n  piVar1[2] = param_3;\n  iVar2 = uxsel_input_add(param_1,param_2);\n  piVar1[3] = iVar2;\n  add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );" (call_expression "(*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              )" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              )" ( (binary_expression "PTR_DAT_000ad2d0 + -0x5ba0" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x5c00" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x5bf0" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uxsel_del();" (call_expression "uxsel_del()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10)" identifier = (cast_expression "(int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000ad414)(1,0x10)" (parenthesized_expression "(*(code *)PTR_safemalloc_000ad414)" ( (pointer_expression "*(code *)PTR_safemalloc_000ad414" * (cast_expression "(code *)PTR_safemalloc_000ad414" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x10)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[1] = param_2;" (assignment_expression "piVar1[1] = param_2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[2] = param_3;" (assignment_expression "piVar1[2] = param_3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = uxsel_input_add(param_1,param_2);" (assignment_expression "iVar2 = uxsel_input_add(param_1,param_2)" identifier = (call_expression "uxsel_input_add(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "piVar1[3] = iVar2;" (assignment_expression "piVar1[3] = iVar2" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);" (call_expression "add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1)" identifier (argument_list "(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00)" * (cast_expression "(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2b8 + -0x1b00)" ( (binary_expression "PTR_DAT_000ad2b8 + -0x1b00" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void uxsel_set(int fd,int rwx,uxsel_callback_fn callback)\n\n{\n  int *e;\n  uxsel_id *puVar1;\n  \n  if (fd < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }\n  uxsel_del(fd);\n  if (rwx == 0) {\n    return;\n  }\n  e = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);\n  *e = fd;\n  e[1] = rwx;\n  e[2] = (int)callback;\n  puVar1 = uxsel_input_add(fd,rwx);\n  e[3] = (int)puVar1;\n  add234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b00),e);\n  return;\n}\n\n" (function_definition "void uxsel_set(int fd,int rwx,uxsel_callback_fn callback)\n\n{\n  int *e;\n  uxsel_id *puVar1;\n  \n  if (fd < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }\n  uxsel_del(fd);\n  if (rwx == 0) {\n    return;\n  }\n  e = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);\n  *e = fd;\n  e[1] = rwx;\n  e[2] = (int)callback;\n  puVar1 = uxsel_input_add(fd,rwx);\n  e[3] = (int)puVar1;\n  add234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b00),e);\n  return;\n}" primitive_type (function_declarator "uxsel_set(int fd,int rwx,uxsel_callback_fn callback)" identifier (parameter_list "(int fd,int rwx,uxsel_callback_fn callback)" ( (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "int rwx" primitive_type identifier) , (parameter_declaration "uxsel_callback_fn callback" type_identifier identifier) ))) (compound_statement "{\n  int *e;\n  uxsel_id *puVar1;\n  \n  if (fd < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }\n  uxsel_del(fd);\n  if (rwx == 0) {\n    return;\n  }\n  e = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);\n  *e = fd;\n  e[1] = rwx;\n  e[2] = (int)callback;\n  puVar1 = uxsel_input_add(fd,rwx);\n  e[3] = (int)puVar1;\n  add234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b00),e);\n  return;\n}" { (declaration "int *e;" primitive_type (pointer_declarator "*e" * identifier) ;) (declaration "uxsel_id *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (fd < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }" if (parenthesized_expression "(fd < 0)" ( (binary_expression "fd < 0" identifier < number_literal) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );" (call_expression "(*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              )" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              )" ( (binary_expression "PTR_DAT_000ad2d0 + -0x5ba0" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x5c00" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x5bf0" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uxsel_del(fd);" (call_expression "uxsel_del(fd)" identifier (argument_list "(fd)" ( identifier ))) ;) (if_statement "if (rwx == 0) {\n    return;\n  }" if (parenthesized_expression "(rwx == 0)" ( (binary_expression "rwx == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "e = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);" (assignment_expression "e = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10)" identifier = (cast_expression "(int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000ad414)(1,0x10)" (parenthesized_expression "(*(code *)PTR_safemalloc_000ad414)" ( (pointer_expression "*(code *)PTR_safemalloc_000ad414" * (cast_expression "(code *)PTR_safemalloc_000ad414" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x10)" ( number_literal , number_literal ))))) ;) (expression_statement "*e = fd;" (assignment_expression "*e = fd" (pointer_expression "*e" * identifier) = identifier) ;) (expression_statement "e[1] = rwx;" (assignment_expression "e[1] = rwx" (subscript_expression "e[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "e[2] = (int)callback;" (assignment_expression "e[2] = (int)callback" (subscript_expression "e[2]" identifier [ number_literal ]) = (cast_expression "(int)callback" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "puVar1 = uxsel_input_add(fd,rwx);" (assignment_expression "puVar1 = uxsel_input_add(fd,rwx)" identifier = (call_expression "uxsel_input_add(fd,rwx)" identifier (argument_list "(fd,rwx)" ( identifier , identifier )))) ;) (expression_statement "e[3] = (int)puVar1;" (assignment_expression "e[3] = (int)puVar1" (subscript_expression "e[3]" identifier [ number_literal ]) = (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "add234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b00),e);" (call_expression "add234(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b00),e)" identifier (argument_list "(*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b00),e)" ( (pointer_expression "*(tree234 **)(PTR_DAT_000ad2b8 + -0x1b00)" * (cast_expression "(tree234 **)(PTR_DAT_000ad2b8 + -0x1b00)" ( (type_descriptor "tree234 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000ad2b8 + -0x1b00)" ( (binary_expression "PTR_DAT_000ad2b8 + -0x1b00" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void uxsel_set(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if (param_1 < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }\n  uxsel_del();\n  if (param_2 == 0) {\n    return;\n  }\n  piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);\n  *piVar1 = param_1;\n  piVar1[1] = param_2;\n  piVar1[2] = param_3;\n  iVar2 = uxsel_input_add(param_1,param_2);\n  piVar1[3] = iVar2;\n  add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);\n  return;\n}\n\n" (function_definition "void uxsel_set(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if (param_1 < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }\n  uxsel_del();\n  if (param_2 == 0) {\n    return;\n  }\n  piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);\n  *piVar1 = param_1;\n  piVar1[1] = param_2;\n  piVar1[2] = param_3;\n  iVar2 = uxsel_input_add(param_1,param_2);\n  piVar1[3] = iVar2;\n  add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);\n  return;\n}" primitive_type (function_declarator "uxsel_set(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if (param_1 < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }\n  uxsel_del();\n  if (param_2 == 0) {\n    return;\n  }\n  piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);\n  *piVar1 = param_1;\n  piVar1[1] = param_2;\n  piVar1[2] = param_3;\n  iVar2 = uxsel_input_add(param_1,param_2);\n  piVar1[3] = iVar2;\n  add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );" (call_expression "(*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              )" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" ( (pointer_expression "*(code *)PTR___assert_fail_000adb00" * (cast_expression "(code *)PTR___assert_fail_000adb00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              )" ( (binary_expression "PTR_DAT_000ad2d0 + -0x5ba0" identifier + number_literal) , (binary_expression "PTR_DAT_000ad2d0 + -0x5c00" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000ad2d0 + -0x5bf0" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uxsel_del();" (call_expression "uxsel_del()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10)" identifier = (cast_expression "(int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000ad414)(1,0x10)" (parenthesized_expression "(*(code *)PTR_safemalloc_000ad414)" ( (pointer_expression "*(code *)PTR_safemalloc_000ad414" * (cast_expression "(code *)PTR_safemalloc_000ad414" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x10)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[1] = param_2;" (assignment_expression "piVar1[1] = param_2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[2] = param_3;" (assignment_expression "piVar1[2] = param_3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = uxsel_input_add(param_1,param_2);" (assignment_expression "iVar2 = uxsel_input_add(param_1,param_2)" identifier = (call_expression "uxsel_input_add(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "piVar1[3] = iVar2;" (assignment_expression "piVar1[3] = iVar2" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);" (call_expression "add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1)" identifier (argument_list "(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00)" * (cast_expression "(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2b8 + -0x1b00)" ( (binary_expression "PTR_DAT_000ad2b8 + -0x1b00" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (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) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void uxsel_set(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if (param_1 < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }\n  uxsel_del();\n  if (param_2 == 0) {\n    return;\n  }\n  piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);\n  *piVar1 = param_1;\n  piVar1[1] = param_2;\n  piVar1[2] = param_3;\n  iVar2 = uxsel_input_add(param_1,param_2);\n  piVar1[3] = iVar2;\n  add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);\n  return;\n}" (primitive_type "void") (function_declarator "uxsel_set(int param_1,int param_2,int param_3)" (identifier "uxsel_set") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if (param_1 < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }\n  uxsel_del();\n  if (param_2 == 0) {\n    return;\n  }\n  piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);\n  *piVar1 = param_1;\n  piVar1[1] = param_2;\n  piVar1[2] = param_3;\n  iVar2 = uxsel_input_add(param_1,param_2);\n  piVar1[3] = iVar2;\n  add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_1 < 0) {\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 < 0)" (( "(") (binary_expression "param_1 < 0" (identifier "param_1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              );" (call_expression "(*(code *)PTR___assert_fail_000adb00)\n              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              )" (parenthesized_expression "(*(code *)PTR___assert_fail_000adb00)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000adb00" (* "*") (cast_expression "(code *)PTR___assert_fail_000adb00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000adb00"))) () ")")) (argument_list "(PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0\n              )" (( "(") (binary_expression "PTR_DAT_000ad2d0 + -0x5ba0" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x5ba0")) (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x5c00" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x5c00")) (, ",") (number_literal "0x43") (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x5bf0" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x5bf0")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uxsel_del();" (call_expression "uxsel_del()" (identifier "uxsel_del") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (param_2 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_000ad414)(1,0x10)" (parenthesized_expression "(*(code *)PTR_safemalloc_000ad414)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000ad414" (* "*") (cast_expression "(code *)PTR_safemalloc_000ad414" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000ad414"))) () ")")) (argument_list "(1,0x10)" (( "(") (number_literal "1") (, ",") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar1[1] = param_2;" (assignment_expression "piVar1[1] = param_2" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar1[2] = param_3;" (assignment_expression "piVar1[2] = param_3" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "iVar2 = uxsel_input_add(param_1,param_2);" (assignment_expression "iVar2 = uxsel_input_add(param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "uxsel_input_add(param_1,param_2)" (identifier "uxsel_input_add") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "piVar1[3] = iVar2;" (assignment_expression "piVar1[3] = iVar2" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);" (call_expression "add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1)" (identifier "add234") (argument_list "(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1)" (( "(") (pointer_expression "*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000ad2b8 + -0x1b00)" (( "(") (binary_expression "PTR_DAT_000ad2b8 + -0x1b00" (identifier "PTR_DAT_000ad2b8") (+ "+") (number_literal "-0x1b00")) () ")")))) (, ",") (identifier "piVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int var_1,int var_4,type_1 callback)

{
  int *e;
  type_2 *puVar1;
  
  if (var_1 < 0) {
    (*(type_3 *)PTR___assert_fail_000adb00)
              (var_2 + -0x5ba0,var_2 + -0x5c00,0x43,var_2 + -0x5bf0
              );
    return;
  }
  var_3(var_1);
  if (var_4 == 0) {
    return;
  }
  e = (int *)(*(type_3 *)PTR_safemalloc_000ad414)(1,0x10);
  *e = var_1;
  e[1] = var_4;
  e[2] = (int)callback;
  puVar1 = var_5(var_1,var_4);
  e[3] = (int)puVar1;
  var_6(*(type_4 **)(var_7 + -0x1b00),e);
  return;
}


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

void MASKED(int param_1,int param_2,int param_3)

{
  int *piVar1;
  int iVar2;
  
  if (param_1 < 0) {
    (*(code *)PTR___assert_fail_000adb00)
              (PTR_DAT_000ad2d0 + -0x5ba0,PTR_DAT_000ad2d0 + -0x5c00,0x43,PTR_DAT_000ad2d0 + -0x5bf0
              );
    return;
  }
  uxsel_del();
  if (param_2 == 0) {
    return;
  }
  piVar1 = (int *)(*(code *)PTR_safemalloc_000ad414)(1,0x10);
  *piVar1 = param_1;
  piVar1[1] = param_2;
  piVar1[2] = param_3;
  iVar2 = uxsel_input_add(param_1,param_2);
  piVar1[3] = iVar2;
  add234(*(undefined4 *)(PTR_DAT_000ad2b8 + -0x1b00),piVar1);
  return;
}

