
void conf_checkbox_handler(control *ctrl,void *dlg,void *data,int event)

{
  int iVar1;
  uint uVar2;
  uint primary;
  
  primary = *(uint *)((int)ctrl + 0x14);
  uVar2 = primary & 0x40000000;
  if (uVar2 != 0) {
    uVar2 = 1;
    primary = primary & 0xbfffffff;
  }
  if (event != 0) {
    if (event != 2) {
      return;
    }
    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(ctrl,dlg);
    conf_set_int((Conf *)data,primary,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);
    return;
  }
  iVar1 = conf_get_int((Conf *)data,primary);
                    /* WARNING: Could not recover jumptable at 0x00026e0c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_dlg_checkbox_set_00111460)(ctrl,dlg,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);
  return;
}



void conf_checkbox_handler(int param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  
  uVar3 = *(uint *)(param_1 + 0x14);
  uVar2 = uVar3 & 0x40000000;
  if (uVar2 != 0) {
    uVar2 = 1;
    uVar3 = uVar3 & 0xbfffffff;
  }
  if (param_4 != 0) {
    if (param_4 != 2) {
      return;
    }
    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);
    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);
    return;
  }
  iVar1 = conf_get_int(param_3,uVar3);
                    /* WARNING: Could not recover jumptable at 0x00026e0c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);
  return;
}


lui gp,0xf
addiu gp,gp,0x2570
addu gp,gp,t9
addiu sp,sp,-0x30
sw s1,0x1c(sp)
sw s0,0x18(sp)
lui s0,0x4000
sw gp,0x10(sp)
sw s4,0x28(sp)
or s4,a1,zero
sw s3,0x24(sp)
or s3,a2,zero
sw s2,0x20(sp)
sw ra,0x2c(sp)
lw s1,0x14(a0)
and s0,s1,s0
beq s0,zero,0x00026d98
_or s2,a0,zero
lui v0,0xbfff
li s0,0x1
ori v0,v0,0xffff
and s1,s1,v0
beq a3,zero,0x00026dc4
_li v0,0x2
beq a3,v0,0x00026e14
_lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7efc(gp)
or a1,s1,zero
or a0,s3,zero
bal 0x000254b0
_xori s0,s0,0x1
andi s0,s0,0x1
lw gp,0x10(sp)
sltiu v0,v0,0x1
lw ra,0x2c(sp)
xor a2,v0,s0
lw s3,0x24(sp)
or a1,s4,zero
lw s1,0x1c(sp)
or a0,s2,zero
lw s4,0x28(sp)
lw s2,0x20(sp)
lw s0,0x18(sp)
lw t9,-0x7e50(gp)
jr t9
_addiu sp,sp,0x30
lw t9,-0x7e4c(gp)
or a1,s4,zero
or a0,s2,zero
jalr t9
_xori s0,s0,0x1
andi s0,s0,0x1
lw gp,0x10(sp)
sltiu v0,v0,0x1
lw ra,0x2c(sp)
xor a2,v0,s0
lw s4,0x28(sp)
or a1,s1,zero
lw s2,0x20(sp)
or a0,s3,zero
lw s1,0x1c(sp)
lw s3,0x24(sp)
lw s0,0x18(sp)
lw t9,-0x7f70(gp)
b 0x00025e3c
_addiu sp,sp,0x30
(translation_unit "void conf_checkbox_handler(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar3 & 0x40000000;\n  if (uVar2 != 0) {\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }\n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }\n  iVar1 = conf_get_int(param_3,uVar3);\n                    /* WARNING: Could not recover jumptable at 0x00026e0c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n  return;\n}\n\n" (function_definition "void conf_checkbox_handler(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar3 & 0x40000000;\n  if (uVar2 != 0) {\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }\n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }\n  iVar1 = conf_get_int(param_3,uVar3);\n                    /* WARNING: Could not recover jumptable at 0x00026e0c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n  return;\n}" primitive_type (function_declarator "conf_checkbox_handler(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar3 & 0x40000000;\n  if (uVar2 != 0) {\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }\n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }\n  iVar1 = conf_get_int(param_3,uVar3);\n                    /* WARNING: Could not recover jumptable at 0x00026e0c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = uVar3 & 0x40000000;" (assignment_expression "uVar2 = uVar3 & 0x40000000" identifier = (binary_expression "uVar3 & 0x40000000" identifier & number_literal)) ;) (if_statement "if (uVar2 != 0) {\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "uVar3 = uVar3 & 0xbfffffff;" (assignment_expression "uVar3 = uVar3 & 0xbfffffff" identifier = (binary_expression "uVar3 & 0xbfffffff" identifier & number_literal)) ;) })) (if_statement "if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }" { (if_statement "if (param_4 != 2) {\n      return;\n    }" if (parenthesized_expression "(param_4 != 2)" ( (binary_expression "param_4 != 2" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2)" identifier = (call_expression "(*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_checkbox_get_00111464)" ( (pointer_expression "*(code *)PTR_dlg_checkbox_get_00111464" * (cast_expression "(code *)PTR_dlg_checkbox_get_00111464" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);" (call_expression "conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" identifier (argument_list "(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" ( identifier , identifier , (binary_expression "(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1" (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ^ (binary_expression "(uVar2 ^ 1) & 1" (parenthesized_expression "(uVar2 ^ 1)" ( (binary_expression "uVar2 ^ 1" identifier ^ number_literal) )) & number_literal)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = conf_get_int(param_3,uVar3);" (assignment_expression "iVar1 = conf_get_int(param_3,uVar3)" identifier = (call_expression "conf_get_int(param_3,uVar3)" identifier (argument_list "(param_3,uVar3)" ( identifier , identifier )))) ;) comment comment (expression_statement "(*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);" (call_expression "(*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" (parenthesized_expression "(*(code *)PTR_dlg_checkbox_set_00111460)" ( (pointer_expression "*(code *)PTR_dlg_checkbox_set_00111460" * (cast_expression "(code *)PTR_dlg_checkbox_set_00111460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" ( identifier , identifier , (binary_expression "(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1" (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ^ (binary_expression "(uVar2 ^ 1) & 1" (parenthesized_expression "(uVar2 ^ 1)" ( (binary_expression "uVar2 ^ 1" identifier ^ number_literal) )) & number_literal)) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void conf_checkbox_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint primary;\n  \n  primary = *(uint *)((int)ctrl + 0x14);\n  uVar2 = primary & 0x40000000;\n  if (uVar2 != 0) {\n    uVar2 = 1;\n    primary = primary & 0xbfffffff;\n  }\n  if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(ctrl,dlg);\n    conf_set_int((Conf *)data,primary,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }\n  iVar1 = conf_get_int((Conf *)data,primary);\n                    /* WARNING: Could not recover jumptable at 0x00026e0c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_dlg_checkbox_set_00111460)(ctrl,dlg,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n  return;\n}\n\n" (function_definition "void conf_checkbox_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint primary;\n  \n  primary = *(uint *)((int)ctrl + 0x14);\n  uVar2 = primary & 0x40000000;\n  if (uVar2 != 0) {\n    uVar2 = 1;\n    primary = primary & 0xbfffffff;\n  }\n  if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(ctrl,dlg);\n    conf_set_int((Conf *)data,primary,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }\n  iVar1 = conf_get_int((Conf *)data,primary);\n                    /* WARNING: Could not recover jumptable at 0x00026e0c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_dlg_checkbox_set_00111460)(ctrl,dlg,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n  return;\n}" primitive_type (function_declarator "conf_checkbox_handler(control *ctrl,void *dlg,void *data,int event)" identifier (parameter_list "(control *ctrl,void *dlg,void *data,int event)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int event" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint primary;\n  \n  primary = *(uint *)((int)ctrl + 0x14);\n  uVar2 = primary & 0x40000000;\n  if (uVar2 != 0) {\n    uVar2 = 1;\n    primary = primary & 0xbfffffff;\n  }\n  if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(ctrl,dlg);\n    conf_set_int((Conf *)data,primary,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }\n  iVar1 = conf_get_int((Conf *)data,primary);\n                    /* WARNING: Could not recover jumptable at 0x00026e0c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_dlg_checkbox_set_00111460)(ctrl,dlg,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint primary;" type_identifier identifier ;) (expression_statement "primary = *(uint *)((int)ctrl + 0x14);" (assignment_expression "primary = *(uint *)((int)ctrl + 0x14)" identifier = (pointer_expression "*(uint *)((int)ctrl + 0x14)" * (cast_expression "(uint *)((int)ctrl + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctrl + 0x14)" ( (binary_expression "(int)ctrl + 0x14" (cast_expression "(int)ctrl" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = primary & 0x40000000;" (assignment_expression "uVar2 = primary & 0x40000000" identifier = (binary_expression "primary & 0x40000000" identifier & number_literal)) ;) (if_statement "if (uVar2 != 0) {\n    uVar2 = 1;\n    primary = primary & 0xbfffffff;\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = 1;\n    primary = primary & 0xbfffffff;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "primary = primary & 0xbfffffff;" (assignment_expression "primary = primary & 0xbfffffff" identifier = (binary_expression "primary & 0xbfffffff" identifier & number_literal)) ;) })) (if_statement "if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(ctrl,dlg);\n    conf_set_int((Conf *)data,primary,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }" if (parenthesized_expression "(event != 0)" ( (binary_expression "event != 0" identifier != number_literal) )) (compound_statement "{\n    if (event != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(ctrl,dlg);\n    conf_set_int((Conf *)data,primary,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }" { (if_statement "if (event != 2) {\n      return;\n    }" if (parenthesized_expression "(event != 2)" ( (binary_expression "event != 2" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(ctrl,dlg);" (assignment_expression "iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(ctrl,dlg)" identifier = (call_expression "(*(code *)PTR_dlg_checkbox_get_00111464)(ctrl,dlg)" (parenthesized_expression "(*(code *)PTR_dlg_checkbox_get_00111464)" ( (pointer_expression "*(code *)PTR_dlg_checkbox_get_00111464" * (cast_expression "(code *)PTR_dlg_checkbox_get_00111464" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg)" ( identifier , identifier )))) ;) (expression_statement "conf_set_int((Conf *)data,primary,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);" (call_expression "conf_set_int((Conf *)data,primary,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" identifier (argument_list "((Conf *)data,primary,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (binary_expression "(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1" (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ^ (binary_expression "(uVar2 ^ 1) & 1" (parenthesized_expression "(uVar2 ^ 1)" ( (binary_expression "uVar2 ^ 1" identifier ^ number_literal) )) & number_literal)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = conf_get_int((Conf *)data,primary);" (assignment_expression "iVar1 = conf_get_int((Conf *)data,primary)" identifier = (call_expression "conf_get_int((Conf *)data,primary)" identifier (argument_list "((Conf *)data,primary)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) comment comment (expression_statement "(*(code *)PTR_dlg_checkbox_set_00111460)(ctrl,dlg,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);" (call_expression "(*(code *)PTR_dlg_checkbox_set_00111460)(ctrl,dlg,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" (parenthesized_expression "(*(code *)PTR_dlg_checkbox_set_00111460)" ( (pointer_expression "*(code *)PTR_dlg_checkbox_set_00111460" * (cast_expression "(code *)PTR_dlg_checkbox_set_00111460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" ( identifier , identifier , (binary_expression "(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1" (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ^ (binary_expression "(uVar2 ^ 1) & 1" (parenthesized_expression "(uVar2 ^ 1)" ( (binary_expression "uVar2 ^ 1" identifier ^ number_literal) )) & number_literal)) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void conf_checkbox_handler(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar3 & 0x40000000;\n  if (uVar2 != 0) {\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }\n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }\n  iVar1 = conf_get_int(param_3,uVar3);\n                    \n                    \n  (*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n  return;\n}\n\n" (function_definition "void conf_checkbox_handler(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar3 & 0x40000000;\n  if (uVar2 != 0) {\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }\n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }\n  iVar1 = conf_get_int(param_3,uVar3);\n                    \n                    \n  (*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n  return;\n}" primitive_type (function_declarator "conf_checkbox_handler(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar3 & 0x40000000;\n  if (uVar2 != 0) {\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }\n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }\n  iVar1 = conf_get_int(param_3,uVar3);\n                    \n                    \n  (*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = uVar3 & 0x40000000;" (assignment_expression "uVar2 = uVar3 & 0x40000000" identifier = (binary_expression "uVar3 & 0x40000000" identifier & number_literal)) ;) (if_statement "if (uVar2 != 0) {\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "uVar3 = uVar3 & 0xbfffffff;" (assignment_expression "uVar3 = uVar3 & 0xbfffffff" identifier = (binary_expression "uVar3 & 0xbfffffff" identifier & number_literal)) ;) })) (if_statement "if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }" { (if_statement "if (param_4 != 2) {\n      return;\n    }" if (parenthesized_expression "(param_4 != 2)" ( (binary_expression "param_4 != 2" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2)" identifier = (call_expression "(*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_checkbox_get_00111464)" ( (pointer_expression "*(code *)PTR_dlg_checkbox_get_00111464" * (cast_expression "(code *)PTR_dlg_checkbox_get_00111464" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);" (call_expression "conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" identifier (argument_list "(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" ( identifier , identifier , (binary_expression "(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1" (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ^ (binary_expression "(uVar2 ^ 1) & 1" (parenthesized_expression "(uVar2 ^ 1)" ( (binary_expression "uVar2 ^ 1" identifier ^ number_literal) )) & number_literal)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = conf_get_int(param_3,uVar3);" (assignment_expression "iVar1 = conf_get_int(param_3,uVar3)" identifier = (call_expression "conf_get_int(param_3,uVar3)" identifier (argument_list "(param_3,uVar3)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);" (call_expression "(*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" (parenthesized_expression "(*(code *)PTR_dlg_checkbox_set_00111460)" ( (pointer_expression "*(code *)PTR_dlg_checkbox_set_00111460" * (cast_expression "(code *)PTR_dlg_checkbox_set_00111460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" ( identifier , identifier , (binary_expression "(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1" (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ^ (binary_expression "(uVar2 ^ 1) & 1" (parenthesized_expression "(uVar2 ^ 1)" ( (binary_expression "uVar2 ^ 1" identifier ^ number_literal) )) & number_literal)) ))) ;) (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) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))) ^ (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ LIT) )) & LIT)) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))) ^ (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ LIT) )) & LIT)) ))) ;) (return_statement return ;) })))
(function_definition "void conf_checkbox_handler(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar3 & 0x40000000;\n  if (uVar2 != 0) {\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }\n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }\n  iVar1 = conf_get_int(param_3,uVar3);\n                    \n                    \n  (*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n  return;\n}" (primitive_type "void") (function_declarator "conf_checkbox_handler(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "conf_checkbox_handler") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar3 & 0x40000000;\n  if (uVar2 != 0) {\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }\n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }\n  iVar1 = conf_get_int(param_3,uVar3);\n                    \n                    \n  (*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x14)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar2 = uVar3 & 0x40000000;" (assignment_expression "uVar2 = uVar3 & 0x40000000" (identifier "uVar2") (= "=") (binary_expression "uVar3 & 0x40000000" (identifier "uVar3") (& "&") (number_literal "0x40000000"))) (; ";")) (if_statement "if (uVar2 != 0) {\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }" (if "if") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 1;\n    uVar3 = uVar3 & 0xbfffffff;\n  }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar3 = uVar3 & 0xbfffffff;" (assignment_expression "uVar3 = uVar3 & 0xbfffffff" (identifier "uVar3") (= "=") (binary_expression "uVar3 & 0xbfffffff" (identifier "uVar3") (& "&") (number_literal "0xbfffffff"))) (; ";")) (} "}"))) (if_statement "if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);\n    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);\n    return;\n  }" ({ "{") (if_statement "if (param_4 != 2) {\n      return;\n    }" (if "if") (parenthesized_expression "(param_4 != 2)" (( "(") (binary_expression "param_4 != 2" (identifier "param_4") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_checkbox_get_00111464)" (( "(") (pointer_expression "*(code *)PTR_dlg_checkbox_get_00111464" (* "*") (cast_expression "(code *)PTR_dlg_checkbox_get_00111464" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_checkbox_get_00111464"))) () ")")) (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);" (call_expression "conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" (identifier "conf_set_int") (argument_list "(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" (( "(") (identifier "param_3") (, ",") (identifier "uVar3") (, ",") (binary_expression "(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1" (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")"))) (^ "^") (binary_expression "(uVar2 ^ 1) & 1" (parenthesized_expression "(uVar2 ^ 1)" (( "(") (binary_expression "uVar2 ^ 1" (identifier "uVar2") (^ "^") (number_literal "1")) () ")")) (& "&") (number_literal "1"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = conf_get_int(param_3,uVar3);" (assignment_expression "iVar1 = conf_get_int(param_3,uVar3)" (identifier "iVar1") (= "=") (call_expression "conf_get_int(param_3,uVar3)" (identifier "conf_get_int") (argument_list "(param_3,uVar3)" (( "(") (identifier "param_3") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);" (call_expression "(*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" (parenthesized_expression "(*(code *)PTR_dlg_checkbox_set_00111460)" (( "(") (pointer_expression "*(code *)PTR_dlg_checkbox_set_00111460" (* "*") (cast_expression "(code *)PTR_dlg_checkbox_set_00111460" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_checkbox_set_00111460"))) () ")")) (argument_list "(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (binary_expression "(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1" (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")"))) (^ "^") (binary_expression "(uVar2 ^ 1) & 1" (parenthesized_expression "(uVar2 ^ 1)" (( "(") (binary_expression "uVar2 ^ 1" (identifier "uVar2") (^ "^") (number_literal "1")) () ")")) (& "&") (number_literal "1"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *ctrl,void *dlg,void *data,int var_3)

{
  int var_5;
  type_2 var_2;
  type_2 var_1;
  
  var_1 = *(type_2 *)((int)ctrl + 0x14);
  var_2 = var_1 & 0x40000000;
  if (var_2 != 0) {
    var_2 = 1;
    var_1 = var_1 & 0xbfffffff;
  }
  if (var_3 != 0) {
    if (var_3 != 2) {
      return;
    }
    var_5 = (*(type_3 *)PTR_dlg_checkbox_get_00111464)(ctrl,dlg);
    var_4((type_4 *)data,var_1,(type_2)(var_5 == 0) ^ (var_2 ^ 1) & 1);
    return;
  }
  var_5 = var_6((type_4 *)data,var_1);
                    /* WARNING: Could not recover jumptable at 0x00026e0c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(type_3 *)PTR_dlg_checkbox_set_00111460)(ctrl,dlg,(type_2)(var_5 == 0) ^ (var_2 ^ 1) & 1);
  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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (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) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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) (identifier) (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (return_statement))))

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

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  
  uVar3 = *(uint *)(param_1 + 0x14);
  uVar2 = uVar3 & 0x40000000;
  if (uVar2 != 0) {
    uVar2 = 1;
    uVar3 = uVar3 & 0xbfffffff;
  }
  if (param_4 != 0) {
    if (param_4 != 2) {
      return;
    }
    iVar1 = (*(code *)PTR_dlg_checkbox_get_00111464)(param_1,param_2);
    conf_set_int(param_3,uVar3,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);
    return;
  }
  iVar1 = conf_get_int(param_3,uVar3);
                    /* WARNING: Could not recover jumptable at 0x00026e0c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_dlg_checkbox_set_00111460)(param_1,param_2,(uint)(iVar1 == 0) ^ (uVar2 ^ 1) & 1);
  return;
}

