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

{
  int iVar1;
  
  if (event == 0) {
    iVar1 = conf_get_int((Conf *)data,(ctrl->generic).context.i);
    (*(code *)PTR_dlg_update_start_00121434)(ctrl,dlg);
    (*(code *)PTR_dlg_listbox_clear_00121438)(ctrl,dlg);
    (*(code *)PTR_dlg_listbox_addwithid_0012143c)
              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bb8,2);
    (*(code *)PTR_dlg_listbox_addwithid_0012143c)
              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc0,1);
    (*(code *)PTR_dlg_listbox_addwithid_0012143c)
              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc4,0);
    if (iVar1 == 1) {
      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,1);
    }
    else if (iVar1 == 2) {
      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);
    }
    else if (iVar1 == 0) {
      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);
    }
    (*(code *)PTR_dlg_update_done_00121444)(ctrl,dlg);
  }
  else if (event == 3) {
    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();
    if (iVar1 < 0) {
      iVar1 = 2;
    }
    else {
      iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);
    }
                    /* WARNING: Subroutine does not return */
    conf_set_int((Conf *)data,(ctrl->generic).context.i,iVar1);
  }
  return;
}



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

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_4 == 0) {
    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));
    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);
    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);
    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);
    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);
    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);
    if (iVar1 == 1) {
      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);
    }
    else if (iVar1 == 2) {
      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);
    }
    else if (iVar1 == 0) {
      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);
    }
    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);
  }
  else if (param_4 == 3) {
    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();
    if (iVar1 < 0) {
      uVar2 = 2;
    }
    else {
      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);
    }
    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);
  }
  return;
}


lui gp,0x10
addiu gp,gp,0x7c4
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
or s1,a1,zero
beq a3,zero,0x00028b40
_or s2,a2,zero
li v0,0x3
beq a3,v0,0x00028c98
_lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw a1,0x14(a0)
or a0,a2,zero
lw t9,-0x7fb4(gp)
bal 0x00026238
_nop
lw gp,0x10(sp)
or s2,v0,zero
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7e7c(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7e78(gp)
jalr t9
_nop
lw gp,0x10(sp)
li a3,0x2
lw a2,-0x7f68(gp)
addiu a2,a2,0x1bb8
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7e74(gp)
jalr t9
_nop
lw gp,0x10(sp)
li a3,0x1
lw a2,-0x7f68(gp)
addiu a2,a2,0x1bc0
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7e74(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a3,zero,zero
lw a2,-0x7f68(gp)
addiu a2,a2,0x1bc4
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7e74(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v0,0x1
beq s2,v0,0x00028c54
_li v0,0x2
beq s2,v0,0x00028c34
_or a2,zero,zero
beq s2,zero,0x00028c78
_lw t9,-0x7e70(gp)
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7e6c(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00028b2c
_lw ra,0x24(sp)
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7e70(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00028c18
_or a1,s1,zero
li a2,0x1
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7e70(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00028c18
_or a1,s1,zero
li a2,0x2
or a1,s1,zero
or a0,s0,zero
jalr t9
_nop
lw gp,0x10(sp)
b 0x00028c18
_or a1,s1,zero
lw t9,-0x7e68(gp)
jalr t9
_nop
lw gp,0x10(sp)
bgez v0,0x00028cd4
_lw t9,-0x7e64(gp)
li a2,0x2
lw a1,0x14(s0)
or a0,s2,zero
lw t9,-0x7f3c(gp)
bal 0x00026c44
_nop
lw gp,0x10(sp)
b 0x00028b2c
_lw ra,0x24(sp)
or a2,v0,zero
or a1,s1,zero
or a0,s0,zero
jalr t9
_nop
lw gp,0x10(sp)
b 0x00028cb4
_or a2,v0,zero
(translation_unit "void FUN_00028aec(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_4 == 0) {\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }\n  else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00028aec(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_4 == 0) {\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }\n  else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00028aec(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  undefined4 uVar2;\n  \n  if (param_4 == 0) {\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }\n  else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_4 == 0) {\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }\n  else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }" { (expression_statement "iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x14))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (expression_statement "(*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);" (call_expression "(*(code *)PTR_dlg_update_start_00121434)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_update_start_00121434)" ( (pointer_expression "*(code *)PTR_dlg_update_start_00121434" * (cast_expression "(code *)PTR_dlg_update_start_00121434" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);" (call_expression "(*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_clear_00121438)" ( (pointer_expression "*(code *)PTR_dlg_listbox_clear_00121438" * (cast_expression "(code *)PTR_dlg_listbox_clear_00121438" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" * (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2)" ( identifier , identifier , (binary_expression "PTR_DAT_00121348 + 0x1bb8" identifier + number_literal) , number_literal ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" * (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1)" ( identifier , identifier , (binary_expression "PTR_DAT_00121348 + 0x1bc0" identifier + number_literal) , number_literal ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" * (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0)" ( identifier , identifier , (binary_expression "PTR_DAT_00121348 + 0x1bc4" identifier + number_literal) , number_literal ))) ;) (if_statement "if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }" { (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" ( (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" * (cast_expression "(code *)PTR_dlg_listbox_select_00121440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,1)" ( identifier , identifier , number_literal ))) ;) }) (else_clause "else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" else (if_statement "if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }" { (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" ( (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" * (cast_expression "(code *)PTR_dlg_listbox_select_00121440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))) ;) }) (else_clause "else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" else (if_statement "if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" { (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" ( (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" * (cast_expression "(code *)PTR_dlg_listbox_select_00121440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,2)" ( identifier , identifier , number_literal ))) ;) })))))) (expression_statement "(*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);" (call_expression "(*(code *)PTR_dlg_update_done_00121444)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_update_done_00121444)" ( (pointer_expression "*(code *)PTR_dlg_update_done_00121444" * (cast_expression "(code *)PTR_dlg_update_done_00121444" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) }) (else_clause "else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" else (if_statement "if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" if (parenthesized_expression "(param_4 == 3)" ( (binary_expression "param_4 == 3" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();" (assignment_expression "iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)()" identifier = (call_expression "(*(code *)PTR_dlg_listbox_index_00121448)()" (parenthesized_expression "(*(code *)PTR_dlg_listbox_index_00121448)" ( (pointer_expression "*(code *)PTR_dlg_listbox_index_00121448" * (cast_expression "(code *)PTR_dlg_listbox_index_00121448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      uVar2 = 2;\n    }" { (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) }) (else_clause "else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }" else (compound_statement "{\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }" { (expression_statement "uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);" (assignment_expression "uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1)" identifier = (call_expression "(*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_getid_0012144c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_getid_0012144c" * (cast_expression "(code *)PTR_dlg_listbox_getid_0012144c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,iVar1)" ( identifier , identifier , identifier )))) ;) }))) (expression_statement "conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);" (call_expression "conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2)" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x14),uVar2)" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , identifier ))) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void sshbug_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  int iVar1;\n  \n  if (event == 0) {\n    iVar1 = conf_get_int((Conf *)data,(ctrl->generic).context.i);\n    (*(code *)PTR_dlg_update_start_00121434)(ctrl,dlg);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(ctrl,dlg);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(ctrl,dlg);\n  }\n  else if (event == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      iVar1 = 2;\n    }\n    else {\n      iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);\n    }\n                    /* WARNING: Subroutine does not return */\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,iVar1);\n  }\n  return;\n}\n\n" (function_definition "void sshbug_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  int iVar1;\n  \n  if (event == 0) {\n    iVar1 = conf_get_int((Conf *)data,(ctrl->generic).context.i);\n    (*(code *)PTR_dlg_update_start_00121434)(ctrl,dlg);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(ctrl,dlg);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(ctrl,dlg);\n  }\n  else if (event == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      iVar1 = 2;\n    }\n    else {\n      iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);\n    }\n                    /* WARNING: Subroutine does not return */\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,iVar1);\n  }\n  return;\n}" primitive_type (function_declarator "sshbug_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  \n  if (event == 0) {\n    iVar1 = conf_get_int((Conf *)data,(ctrl->generic).context.i);\n    (*(code *)PTR_dlg_update_start_00121434)(ctrl,dlg);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(ctrl,dlg);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(ctrl,dlg);\n  }\n  else if (event == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      iVar1 = 2;\n    }\n    else {\n      iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);\n    }\n                    /* WARNING: Subroutine does not return */\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,iVar1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (event == 0) {\n    iVar1 = conf_get_int((Conf *)data,(ctrl->generic).context.i);\n    (*(code *)PTR_dlg_update_start_00121434)(ctrl,dlg);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(ctrl,dlg);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(ctrl,dlg);\n  }\n  else if (event == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      iVar1 = 2;\n    }\n    else {\n      iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);\n    }\n                    /* WARNING: Subroutine does not return */\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,iVar1);\n  }" if (parenthesized_expression "(event == 0)" ( (binary_expression "event == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = conf_get_int((Conf *)data,(ctrl->generic).context.i);\n    (*(code *)PTR_dlg_update_start_00121434)(ctrl,dlg);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(ctrl,dlg);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(ctrl,dlg);\n  }" { (expression_statement "iVar1 = conf_get_int((Conf *)data,(ctrl->generic).context.i);" (assignment_expression "iVar1 = conf_get_int((Conf *)data,(ctrl->generic).context.i)" identifier = (call_expression "conf_get_int((Conf *)data,(ctrl->generic).context.i)" identifier (argument_list "((Conf *)data,(ctrl->generic).context.i)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (field_expression "(ctrl->generic).context.i" (field_expression "(ctrl->generic).context" (parenthesized_expression "(ctrl->generic)" ( (field_expression "ctrl->generic" identifier -> field_identifier) )) . field_identifier) . field_identifier) )))) ;) (expression_statement "(*(code *)PTR_dlg_update_start_00121434)(ctrl,dlg);" (call_expression "(*(code *)PTR_dlg_update_start_00121434)(ctrl,dlg)" (parenthesized_expression "(*(code *)PTR_dlg_update_start_00121434)" ( (pointer_expression "*(code *)PTR_dlg_update_start_00121434" * (cast_expression "(code *)PTR_dlg_update_start_00121434" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_clear_00121438)(ctrl,dlg);" (call_expression "(*(code *)PTR_dlg_listbox_clear_00121438)(ctrl,dlg)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_clear_00121438)" ( (pointer_expression "*(code *)PTR_dlg_listbox_clear_00121438" * (cast_expression "(code *)PTR_dlg_listbox_clear_00121438" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bb8,2);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bb8,2)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" * (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bb8,2)" ( identifier , identifier , (binary_expression "PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bb8" identifier + number_literal) , number_literal ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc0,1);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc0,1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" * (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc0,1)" ( identifier , identifier , (binary_expression "PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc0" identifier + number_literal) , number_literal ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc4,0);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)\n              (ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc4,0)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" * (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg,PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc4,0)" ( identifier , identifier , (binary_expression "PTR_data_CS_ISO8859_3_sbcs2ucs_105__00121348 + 0x1bc4" identifier + number_literal) , number_literal ))) ;) (if_statement "if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,1);\n    }" { (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,1);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" ( (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" * (cast_expression "(code *)PTR_dlg_listbox_select_00121440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg,1)" ( identifier , identifier , number_literal ))) ;) }) (else_clause "else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);\n    }" else (if_statement "if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);\n    }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);\n    }" { (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" ( (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" * (cast_expression "(code *)PTR_dlg_listbox_select_00121440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg,0)" ( identifier , identifier , number_literal ))) ;) }) (else_clause "else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);\n    }" else (if_statement "if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);\n    }" { (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" ( (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" * (cast_expression "(code *)PTR_dlg_listbox_select_00121440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg,2)" ( identifier , identifier , number_literal ))) ;) })))))) (expression_statement "(*(code *)PTR_dlg_update_done_00121444)(ctrl,dlg);" (call_expression "(*(code *)PTR_dlg_update_done_00121444)(ctrl,dlg)" (parenthesized_expression "(*(code *)PTR_dlg_update_done_00121444)" ( (pointer_expression "*(code *)PTR_dlg_update_done_00121444" * (cast_expression "(code *)PTR_dlg_update_done_00121444" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg)" ( identifier , identifier ))) ;) }) (else_clause "else if (event == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      iVar1 = 2;\n    }\n    else {\n      iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);\n    }\n                    /* WARNING: Subroutine does not return */\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,iVar1);\n  }" else (if_statement "if (event == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      iVar1 = 2;\n    }\n    else {\n      iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);\n    }\n                    /* WARNING: Subroutine does not return */\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,iVar1);\n  }" if (parenthesized_expression "(event == 3)" ( (binary_expression "event == 3" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      iVar1 = 2;\n    }\n    else {\n      iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);\n    }\n                    /* WARNING: Subroutine does not return */\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,iVar1);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();" (assignment_expression "iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)()" identifier = (call_expression "(*(code *)PTR_dlg_listbox_index_00121448)()" (parenthesized_expression "(*(code *)PTR_dlg_listbox_index_00121448)" ( (pointer_expression "*(code *)PTR_dlg_listbox_index_00121448" * (cast_expression "(code *)PTR_dlg_listbox_index_00121448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 < 0) {\n      iVar1 = 2;\n    }\n    else {\n      iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar1 = 2;\n    }" { (expression_statement "iVar1 = 2;" (assignment_expression "iVar1 = 2" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);\n    }" else (compound_statement "{\n      iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);\n    }" { (expression_statement "iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1);" (assignment_expression "iVar1 = (*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1)" identifier = (call_expression "(*(code *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,iVar1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_getid_0012144c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_getid_0012144c" * (cast_expression "(code *)PTR_dlg_listbox_getid_0012144c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctrl,dlg,iVar1)" ( identifier , identifier , identifier )))) ;) }))) comment (expression_statement "conf_set_int((Conf *)data,(ctrl->generic).context.i,iVar1);" (call_expression "conf_set_int((Conf *)data,(ctrl->generic).context.i,iVar1)" identifier (argument_list "((Conf *)data,(ctrl->generic).context.i,iVar1)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (field_expression "(ctrl->generic).context.i" (field_expression "(ctrl->generic).context" (parenthesized_expression "(ctrl->generic)" ( (field_expression "ctrl->generic" identifier -> field_identifier) )) . field_identifier) . field_identifier) , identifier ))) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00028aec(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_4 == 0) {\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }\n  else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00028aec(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_4 == 0) {\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }\n  else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00028aec(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  undefined4 uVar2;\n  \n  if (param_4 == 0) {\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }\n  else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_4 == 0) {\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }\n  else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }" { (expression_statement "iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x14))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (expression_statement "(*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);" (call_expression "(*(code *)PTR_dlg_update_start_00121434)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_update_start_00121434)" ( (pointer_expression "*(code *)PTR_dlg_update_start_00121434" * (cast_expression "(code *)PTR_dlg_update_start_00121434" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);" (call_expression "(*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_clear_00121438)" ( (pointer_expression "*(code *)PTR_dlg_listbox_clear_00121438" * (cast_expression "(code *)PTR_dlg_listbox_clear_00121438" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" * (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2)" ( identifier , identifier , (binary_expression "PTR_DAT_00121348 + 0x1bb8" identifier + number_literal) , number_literal ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" * (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1)" ( identifier , identifier , (binary_expression "PTR_DAT_00121348 + 0x1bc0" identifier + number_literal) , number_literal ))) ;) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" * (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0)" ( identifier , identifier , (binary_expression "PTR_DAT_00121348 + 0x1bc4" identifier + number_literal) , number_literal ))) ;) (if_statement "if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }" { (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" ( (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" * (cast_expression "(code *)PTR_dlg_listbox_select_00121440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,1)" ( identifier , identifier , number_literal ))) ;) }) (else_clause "else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" else (if_statement "if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }" { (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" ( (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" * (cast_expression "(code *)PTR_dlg_listbox_select_00121440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))) ;) }) (else_clause "else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" else (if_statement "if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" { (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" ( (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" * (cast_expression "(code *)PTR_dlg_listbox_select_00121440" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,2)" ( identifier , identifier , number_literal ))) ;) })))))) (expression_statement "(*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);" (call_expression "(*(code *)PTR_dlg_update_done_00121444)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_update_done_00121444)" ( (pointer_expression "*(code *)PTR_dlg_update_done_00121444" * (cast_expression "(code *)PTR_dlg_update_done_00121444" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) }) (else_clause "else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" else (if_statement "if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" if (parenthesized_expression "(param_4 == 3)" ( (binary_expression "param_4 == 3" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();" (assignment_expression "iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)()" identifier = (call_expression "(*(code *)PTR_dlg_listbox_index_00121448)()" (parenthesized_expression "(*(code *)PTR_dlg_listbox_index_00121448)" ( (pointer_expression "*(code *)PTR_dlg_listbox_index_00121448" * (cast_expression "(code *)PTR_dlg_listbox_index_00121448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      uVar2 = 2;\n    }" { (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) }) (else_clause "else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }" else (compound_statement "{\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }" { (expression_statement "uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);" (assignment_expression "uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1)" identifier = (call_expression "(*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_getid_0012144c)" ( (pointer_expression "*(code *)PTR_dlg_listbox_getid_0012144c" * (cast_expression "(code *)PTR_dlg_listbox_getid_0012144c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,iVar1)" ( identifier , identifier , identifier )))) ;) }))) (expression_statement "conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);" (call_expression "conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2)" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x14),uVar2)" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" 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) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) (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 ( IDENT , IDENT , LIT ))) ;) }) (else_clause else (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 ( IDENT , IDENT , LIT ))) ;) }) (else_clause else (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 ( IDENT , IDENT , LIT ))) ;) })))))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) })))) (return_statement return ;) })))
(function_definition "void FUN_00028aec(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_4 == 0) {\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }\n  else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00028aec(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "FUN_00028aec") (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  undefined4 uVar2;\n  \n  if (param_4 == 0) {\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }\n  else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_4 == 0) {\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }\n  else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));\n    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);\n    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);\n    if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }\n    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);\n  }" ({ "{") (expression_statement "iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14))" (identifier "iVar1") (= "=") (call_expression "conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14))" (identifier "conf_get_int") (argument_list "(param_3,*(undefined4 *)(param_1 + 0x14))" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);" (call_expression "(*(code *)PTR_dlg_update_start_00121434)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_update_start_00121434)" (( "(") (pointer_expression "*(code *)PTR_dlg_update_start_00121434" (* "*") (cast_expression "(code *)PTR_dlg_update_start_00121434" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_update_start_00121434"))) () ")")) (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);" (call_expression "(*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_clear_00121438)" (( "(") (pointer_expression "*(code *)PTR_dlg_listbox_clear_00121438" (* "*") (cast_expression "(code *)PTR_dlg_listbox_clear_00121438" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_listbox_clear_00121438"))) () ")")) (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" (( "(") (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" (* "*") (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_listbox_addwithid_0012143c"))) () ")")) (argument_list "(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (binary_expression "PTR_DAT_00121348 + 0x1bb8" (identifier "PTR_DAT_00121348") (+ "+") (number_literal "0x1bb8")) (, ",") (number_literal "2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" (( "(") (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" (* "*") (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_listbox_addwithid_0012143c"))) () ")")) (argument_list "(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (binary_expression "PTR_DAT_00121348 + 0x1bc0" (identifier "PTR_DAT_00121348") (+ "+") (number_literal "0x1bc0")) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);" (call_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_addwithid_0012143c)" (( "(") (pointer_expression "*(code *)PTR_dlg_listbox_addwithid_0012143c" (* "*") (cast_expression "(code *)PTR_dlg_listbox_addwithid_0012143c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_listbox_addwithid_0012143c"))) () ")")) (argument_list "(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (binary_expression "PTR_DAT_00121348 + 0x1bc4" (identifier "PTR_DAT_00121348") (+ "+") (number_literal "0x1bc4")) (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (iVar1 == 1) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }\n    else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" (if "if") (parenthesized_expression "(iVar1 == 1)" (( "(") (binary_expression "iVar1 == 1" (identifier "iVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);\n    }" ({ "{") (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" (( "(") (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" (* "*") (cast_expression "(code *)PTR_dlg_listbox_select_00121440" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_listbox_select_00121440"))) () ")")) (argument_list "(param_1,param_2,1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}")) (else_clause "else if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" (else "else") (if_statement "if (iVar1 == 2) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }\n    else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" (if "if") (parenthesized_expression "(iVar1 == 2)" (( "(") (binary_expression "iVar1 == 2" (identifier "iVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);\n    }" ({ "{") (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" (( "(") (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" (* "*") (cast_expression "(code *)PTR_dlg_listbox_select_00121440" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_listbox_select_00121440"))) () ")")) (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")) (else_clause "else if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" (else "else") (if_statement "if (iVar1 == 0) {\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);\n    }" ({ "{") (expression_statement "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);" (call_expression "(*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_select_00121440)" (( "(") (pointer_expression "*(code *)PTR_dlg_listbox_select_00121440" (* "*") (cast_expression "(code *)PTR_dlg_listbox_select_00121440" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_listbox_select_00121440"))) () ")")) (argument_list "(param_1,param_2,2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "2") () ")"))) (; ";")) (} "}"))))))) (expression_statement "(*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);" (call_expression "(*(code *)PTR_dlg_update_done_00121444)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_dlg_update_done_00121444)" (( "(") (pointer_expression "*(code *)PTR_dlg_update_done_00121444" (* "*") (cast_expression "(code *)PTR_dlg_update_done_00121444" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_update_done_00121444"))) () ")")) (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")) (else_clause "else if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" (else "else") (if_statement "if (param_4 == 3) {\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" (if "if") (parenthesized_expression "(param_4 == 3)" (( "(") (binary_expression "param_4 == 3" (identifier "param_4") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();\n    if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }\n    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();" (assignment_expression "iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_dlg_listbox_index_00121448)()" (parenthesized_expression "(*(code *)PTR_dlg_listbox_index_00121448)" (( "(") (pointer_expression "*(code *)PTR_dlg_listbox_index_00121448" (* "*") (cast_expression "(code *)PTR_dlg_listbox_index_00121448" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_listbox_index_00121448"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n      uVar2 = 2;\n    }\n    else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = 2;\n    }" ({ "{") (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" (identifier "uVar2") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }" (else "else") (compound_statement "{\n      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);\n    }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);" (assignment_expression "uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1)" (parenthesized_expression "(*(code *)PTR_dlg_listbox_getid_0012144c)" (( "(") (pointer_expression "*(code *)PTR_dlg_listbox_getid_0012144c" (* "*") (cast_expression "(code *)PTR_dlg_listbox_getid_0012144c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dlg_listbox_getid_0012144c"))) () ")")) (argument_list "(param_1,param_2,iVar1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "iVar1") () ")")))) (; ";")) (} "}")))) (expression_statement "conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);" (call_expression "conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2)" (identifier "conf_set_int") (argument_list "(param_3,*(undefined4 *)(param_1 + 0x14),uVar2)" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}"))))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

{
  int var_4;
  
  if (var_1 == 0) {
    var_4 = var_2((type_2 *)data,(ctrl->generic).context.i);
    (*(type_3 *)PTR_dlg_update_start_00121434)(ctrl,dlg);
    (*(type_3 *)PTR_dlg_listbox_clear_00121438)(ctrl,dlg);
    (*(type_3 *)PTR_dlg_listbox_addwithid_0012143c)
              (ctrl,dlg,var_3 + 0x1bb8,2);
    (*(type_3 *)PTR_dlg_listbox_addwithid_0012143c)
              (ctrl,dlg,var_3 + 0x1bc0,1);
    (*(type_3 *)PTR_dlg_listbox_addwithid_0012143c)
              (ctrl,dlg,var_3 + 0x1bc4,0);
    if (var_4 == 1) {
      (*(type_3 *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,1);
    }
    else if (var_4 == 2) {
      (*(type_3 *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,0);
    }
    else if (var_4 == 0) {
      (*(type_3 *)PTR_dlg_listbox_select_00121440)(ctrl,dlg,2);
    }
    (*(type_3 *)PTR_dlg_update_done_00121444)(ctrl,dlg);
  }
  else if (var_1 == 3) {
    var_4 = (*(type_3 *)PTR_dlg_listbox_index_00121448)();
    if (var_4 < 0) {
      var_4 = 2;
    }
    else {
      var_4 = (*(type_3 *)PTR_dlg_listbox_getid_0012144c)(ctrl,dlg,var_4);
    }
                    /* WARNING: Subroutine does not return */
    var_5((type_2 *)data,(ctrl->generic).context.i,var_4);
  }
  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)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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 (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: (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: (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: (identifier) right: (number_literal)) (number_literal)))) (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: (identifier) right: (number_literal)) (number_literal)))) (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: (identifier) right: (number_literal)) (number_literal)))) (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 (identifier) (identifier) (number_literal))))) alternative: (else_clause (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 (identifier) (identifier) (number_literal))))) alternative: (else_clause (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 (identifier) (identifier) (number_literal)))))))))) (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))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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) (identifier)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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,undefined4 param_2,undefined4 param_3,int param_4)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_4 == 0) {
    iVar1 = conf_get_int(param_3,*(undefined4 *)(param_1 + 0x14));
    (*(code *)PTR_dlg_update_start_00121434)(param_1,param_2);
    (*(code *)PTR_dlg_listbox_clear_00121438)(param_1,param_2);
    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bb8,2);
    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc0,1);
    (*(code *)PTR_dlg_listbox_addwithid_0012143c)(param_1,param_2,PTR_DAT_00121348 + 0x1bc4,0);
    if (iVar1 == 1) {
      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,1);
    }
    else if (iVar1 == 2) {
      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,0);
    }
    else if (iVar1 == 0) {
      (*(code *)PTR_dlg_listbox_select_00121440)(param_1,param_2,2);
    }
    (*(code *)PTR_dlg_update_done_00121444)(param_1,param_2);
  }
  else if (param_4 == 3) {
    iVar1 = (*(code *)PTR_dlg_listbox_index_00121448)();
    if (iVar1 < 0) {
      uVar2 = 2;
    }
    else {
      uVar2 = (*(code *)PTR_dlg_listbox_getid_0012144c)(param_1,param_2,iVar1);
    }
    conf_set_int(param_3,*(undefined4 *)(param_1 + 0x14),uVar2);
  }
  return;
}

